public Builder mergeFrom(org.apache.drill.exec.proto.BitControl.BitControlHandshake other) { if (other == org.apache.drill.exec.proto.BitControl.BitControlHandshake.getDefaultInstance()) return this; if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (other.hasChannel()) { setChannel(other.getChannel()); } if (other.hasEndpoint()) { mergeEndpoint(other.getEndpoint()); } if (!other.authenticationMechanisms_.isEmpty()) { if (authenticationMechanisms_.isEmpty()) { authenticationMechanisms_ = other.authenticationMechanisms_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.addAll(other.authenticationMechanisms_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .exec.DrillbitEndpoint endpoint = 3;</code> */ public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder getEndpointBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEndpointFieldBuilder().getBuilder(); } /**
builder.setRpcVersion(ControlRpcConfig.RPC_VERSION); if (config.getAuthMechanismToUse() != null) { builder.addAllAuthenticationMechanisms(config.getAuthProvider().getAllFactoryNames()); return builder.build();
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.BitControl.BitControlHandshake.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setRpcVersion(input.readInt32()); break; case 2: builder.setChannel(org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(input.readEnum())); break; case 3: builder.setEndpoint(input.mergeObject(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(), org.apache.drill.exec.proto.SchemaCoordinationProtos.DrillbitEndpoint.MERGE)); break; case 4: builder.addAuthenticationMechanisms(input.readString()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.BitControl.BitControlHandshake.Builder builder)
public Builder mergeFrom(org.apache.drill.exec.proto.BitControl.BitControlHandshake other) { if (other == org.apache.drill.exec.proto.BitControl.BitControlHandshake.getDefaultInstance()) return this; if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (other.hasChannel()) { setChannel(other.getChannel()); } if (other.hasEndpoint()) { mergeEndpoint(other.getEndpoint()); } if (!other.authenticationMechanisms_.isEmpty()) { if (authenticationMechanisms_.isEmpty()) { authenticationMechanisms_ = other.authenticationMechanisms_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.addAll(other.authenticationMechanisms_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>repeated string authenticationMechanisms = 4;</code> */ public Builder addAuthenticationMechanisms( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.add(value); onChanged(); return this; } /**
private static Builder create() { return new Builder(); }
/** * <code>repeated string authenticationMechanisms = 4;</code> */ public Builder setAuthenticationMechanisms( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.set(index, value); onChanged(); return this; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
/** * <code>repeated string authenticationMechanisms = 4;</code> */ public Builder addAuthenticationMechanismsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.add(value); onChanged(); return this; }
/** * <code>optional .exec.DrillbitEndpoint endpoint = 3;</code> */ public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder getEndpointBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEndpointFieldBuilder().getBuilder(); } /**
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public org.apache.drill.exec.proto.BitControl.BitControlHandshake build() { org.apache.drill.exec.proto.BitControl.BitControlHandshake result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>repeated string authenticationMechanisms = 4;</code> */ public Builder addAllAuthenticationMechanisms( java.lang.Iterable<java.lang.String> values) { ensureAuthenticationMechanismsIsMutable(); super.addAll(values, authenticationMechanisms_); onChanged(); return this; } /**
private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEndpointFieldBuilder(); } } private static Builder create() {
public ControlConnectionManager(DrillbitEndpoint localEndpoint, DrillbitEndpoint remoteEndpoint) { super( BitControlHandshake.newBuilder() .setRpcVersion(ControlRpcConfig.RPC_VERSION) .setEndpoint(localEndpoint) .build(), remoteEndpoint.getAddress(), remoteEndpoint.getControlPort()); }
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.BitControl.BitControlHandshake.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setRpcVersion(input.readInt32()); break; case 2: builder.setChannel(org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(input.readEnum())); break; case 3: builder.setEndpoint(input.mergeObject(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(), org.apache.drill.exec.proto.SchemaCoordinationProtos.DrillbitEndpoint.MERGE)); break; case 4: builder.addAuthenticationMechanisms(input.readString()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.BitControl.BitControlHandshake.Builder builder)
private static Builder create() { return new Builder(); }
/** * <code>repeated string authenticationMechanisms = 4;</code> */ public Builder setAuthenticationMechanisms( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.set(index, value); onChanged(); return this; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }