.setMode(msg.mode) // .setCoordinationId(msg.coordinationId) // .setRpcType(msg.rpcType).build();
subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial();
subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial();
/** * <code>optional .exec.rpc.RpcHeader header = 1;</code> * * <pre> * required * </pre> */ public Builder mergeHeader(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader value) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && header_ != org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance()) { header_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setMode(org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.valueOf(input.readEnum())); break; case 2: builder.setCoordinationId(input.readInt32()); break; case 3: builder.setRpcType(input.readInt32()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builder)
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional .exec.rpc.RpcHeader header = 1;</code> * * <pre> * required * </pre> */ public Builder setHeader( org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }
public static Builder newBuilder(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder mergeFrom(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader other) { if (other == org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance()) return this; if (other.hasMode()) { setMode(other.getMode()); } if (other.hasCoordinationId()) { setCoordinationId(other.getCoordinationId()); } if (other.hasRpcType()) { setRpcType(other.getRpcType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader) { return mergeFrom((org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader)other); } else { super.mergeFrom(other); return this; } }
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader build() { org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public boolean isInitialized(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builder) { return builder.isInitialized(); } public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder newMessage()
/** * <code>optional .exec.rpc.RpcHeader header = 1;</code> * * <pre> * required * </pre> */ public Builder mergeHeader(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader value) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && header_ != org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance()) { header_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setMode(org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.valueOf(input.readEnum())); break; case 2: builder.setCoordinationId(input.readInt32()); break; case 3: builder.setRpcType(input.readInt32()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builder)
/** * <code>optional .exec.rpc.RpcHeader header = 1;</code> * * <pre> * required * </pre> */ public Builder setHeader( org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**