/** * <code>repeated .exec.shared.StreamProfile input_profile = 1;</code> */ public Builder addInputProfile( int index, com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builderForValue) { if (inputProfileBuilder_ == null) { ensureInputProfileIsMutable(); inputProfile_.add(index, builderForValue.build()); onChanged(); } else { inputProfileBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.dremio.exec.proto.UserBitShared.StreamProfile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.dremio.exec.proto.UserBitShared.StreamProfile) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public void mergeFrom(io.protostuff.Input input, com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setRecords(input.readInt64()); break; case 2: builder.setBatches(input.readInt64()); break; case 3: builder.setSchemas(input.readInt64()); break; case 4: builder.setSize(input.readInt64()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builder)
public Builder mergeFrom(com.dremio.exec.proto.UserBitShared.StreamProfile other) { if (other == com.dremio.exec.proto.UserBitShared.StreamProfile.getDefaultInstance()) return this; if (other.hasRecords()) { setRecords(other.getRecords()); } if (other.hasBatches()) { setBatches(other.getBatches()); } if (other.hasSchemas()) { setSchemas(other.getSchemas()); } if (other.hasSize()) { setSize(other.getSize()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private static Builder create() { return new Builder(); }
/** * <code>repeated .exec.shared.StreamProfile input_profile = 1;</code> */ public Builder addInputProfile( com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builderForValue) { if (inputProfileBuilder_ == null) { ensureInputProfileIsMutable(); inputProfile_.add(builderForValue.build()); onChanged(); } else { inputProfileBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.StreamProfile input_profile = 1;</code> */ public Builder setInputProfile( int index, com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builderForValue) { if (inputProfileBuilder_ == null) { ensureInputProfileIsMutable(); inputProfile_.set(index, builderForValue.build()); onChanged(); } else { inputProfileBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public static Builder newBuilder(com.dremio.exec.proto.UserBitShared.StreamProfile prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
private Builder() { maybeForceBuilderInitialization(); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.dremio.exec.proto.UserBitShared.StreamProfile) { return mergeFrom((com.dremio.exec.proto.UserBitShared.StreamProfile)other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public com.dremio.exec.proto.UserBitShared.StreamProfile build() { com.dremio.exec.proto.UserBitShared.StreamProfile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public Builder clone() { return create().mergeFrom(buildPartial()); }
public void addStreamProfile(OperatorProfile.Builder builder) { for(int i = 0; i < recordsReceivedByInput.length; i++){ builder.addInputProfile( StreamProfile.newBuilder() .setBatches(batchesReceivedByInput[i]) .setRecords(recordsReceivedByInput[i]) .setSize(sizeInBytesReceivedByInput[i]) ); } }
public boolean isInitialized(com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builder) { return builder.isInitialized(); } public com.dremio.exec.proto.UserBitShared.StreamProfile.Builder newMessage()