/** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public Builder clearSupportedMethods() { supportedMethods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; }
/** * <code>optional string errorMessage = 5;</code> */ public Builder setErrorMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; errorMessage_ = value; onChanged(); return this; }
/** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder addAuthenticationMechanismsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.add(value); onChanged(); return this; }
/** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public Builder setSupportedMethods( int index, org.apache.drill.exec.proto.UserProtos.RpcType value) { if (value == null) { throw new NullPointerException(); } ensureSupportedMethodsIsMutable(); supportedMethods_.set(index, value); onChanged(); return this; } /**
/** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public Builder clearServerInfos() { if (serverInfosBuilder_ == null) { serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); onChanged(); } else { serverInfosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
/** * <code>optional string errorId = 4;</code> */ public Builder setErrorIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; errorId_ = value; onChanged(); return this; }
/** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.HandshakeStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /**
/** * <code>optional bool encrypted = 9;</code> */ public Builder setEncrypted(boolean value) { bitField0_ |= 0x00000080; encrypted_ = value; onChanged(); return this; } /**
/** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder clearAuthenticationMechanisms() { authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /**
/** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder getServerInfosBuilder() { bitField0_ |= 0x00000010; onChanged(); return getServerInfosFieldBuilder().getBuilder(); } /**
/** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS; onChanged(); return this; }
/** * <code>optional int32 rpc_version = 2;</code> */ public Builder clearRpcVersion() { bitField0_ = (bitField0_ & ~0x00000001); rpcVersion_ = 0; onChanged(); return this; }
/** * <code>optional int32 maxWrappedSize = 10;</code> */ public Builder setMaxWrappedSize(int value) { bitField0_ |= 0x00000100; maxWrappedSize_ = value; onChanged(); return this; } /**
/** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public Builder addAllSupportedMethods( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.RpcType> values) { ensureSupportedMethodsIsMutable(); super.addAll(values, supportedMethods_); onChanged(); return this; } /**
/** * <code>optional string errorMessage = 5;</code> */ public Builder clearErrorMessage() { bitField0_ = (bitField0_ & ~0x00000008); errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /**
/** * <code>optional int32 maxWrappedSize = 10;</code> */ public Builder clearMaxWrappedSize() { bitField0_ = (bitField0_ & ~0x00000100); maxWrappedSize_ = 0; onChanged(); return this; }
/** * <code>optional bool encrypted = 9;</code> */ public Builder clearEncrypted() { bitField0_ = (bitField0_ & ~0x00000080); encrypted_ = false; onChanged(); return this; }
/** * <code>optional int32 rpc_version = 2;</code> */ public Builder setRpcVersion(int value) { bitField0_ |= 0x00000001; rpcVersion_ = value; onChanged(); return this; } /**
/** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder addAllAuthenticationMechanisms( java.lang.Iterable<java.lang.String> values) { ensureAuthenticationMechanismsIsMutable(); super.addAll(values, authenticationMechanisms_); onChanged(); return this; } /**
/** * <code>optional string errorId = 4;</code> */ public Builder clearErrorId() { bitField0_ = (bitField0_ & ~0x00000004); errorId_ = getDefaultInstance().getErrorId(); onChanged(); return this; } /**