Package org.apache.drill.exec.proto
Class UserProtos.BitToUserHandshake.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,UserProtos.BitToUserHandshakeOrBuilder
- Enclosing class:
- UserProtos.BitToUserHandshake
public static final class UserProtos.BitToUserHandshake.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
implements UserProtos.BitToUserHandshakeOrBuilder
Protobuf type
exec.user.BitToUserHandshake
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAuthenticationMechanisms
(Iterable<String> values) repeated string authenticationMechanisms = 7;
addAllSupportedMethods
(Iterable<? extends UserProtos.RpcType> values) repeated .exec.user.RpcType supported_methods = 8;
repeated string authenticationMechanisms = 7;
addAuthenticationMechanismsBytes
(com.google.protobuf.ByteString value) repeated string authenticationMechanisms = 7;
addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) repeated .exec.user.RpcType supported_methods = 8;
build()
clear()
repeated string authenticationMechanisms = 7;
optional bool encrypted = 9;
optional string errorId = 4;
optional string errorMessage = 5;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional int32 maxWrappedSize = 10;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional int32 rpc_version = 2;
optional .exec.user.RpcEndpointInfos server_infos = 6;
optional .exec.user.HandshakeStatus status = 3;
repeated .exec.user.RpcType supported_methods = 8;
clone()
getAuthenticationMechanisms
(int index) repeated string authenticationMechanisms = 7;
com.google.protobuf.ByteString
getAuthenticationMechanismsBytes
(int index) repeated string authenticationMechanisms = 7;
int
repeated string authenticationMechanisms = 7;
com.google.protobuf.ProtocolStringList
repeated string authenticationMechanisms = 7;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
optional bool encrypted = 9;
optional string errorId = 4;
com.google.protobuf.ByteString
optional string errorId = 4;
optional string errorMessage = 5;
com.google.protobuf.ByteString
optional string errorMessage = 5;
int
optional int32 maxWrappedSize = 10;
int
optional int32 rpc_version = 2;
optional .exec.user.RpcEndpointInfos server_infos = 6;
optional .exec.user.RpcEndpointInfos server_infos = 6;
optional .exec.user.RpcEndpointInfos server_infos = 6;
optional .exec.user.HandshakeStatus status = 3;
getSupportedMethods
(int index) repeated .exec.user.RpcType supported_methods = 8;
int
repeated .exec.user.RpcType supported_methods = 8;
repeated .exec.user.RpcType supported_methods = 8;
boolean
optional bool encrypted = 9;
boolean
optional string errorId = 4;
boolean
optional string errorMessage = 5;
boolean
optional int32 maxWrappedSize = 10;
boolean
optional int32 rpc_version = 2;
boolean
optional .exec.user.RpcEndpointInfos server_infos = 6;
boolean
optional .exec.user.HandshakeStatus status = 3;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) optional .exec.user.RpcEndpointInfos server_infos = 6;
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAuthenticationMechanisms
(int index, String value) repeated string authenticationMechanisms = 7;
setEncrypted
(boolean value) optional bool encrypted = 9;
setErrorId
(String value) optional string errorId = 4;
setErrorIdBytes
(com.google.protobuf.ByteString value) optional string errorId = 4;
setErrorMessage
(String value) optional string errorMessage = 5;
setErrorMessageBytes
(com.google.protobuf.ByteString value) optional string errorMessage = 5;
setMaxWrappedSize
(int value) optional int32 maxWrappedSize = 10;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRpcVersion
(int value) optional int32 rpc_version = 2;
optional .exec.user.RpcEndpointInfos server_infos = 6;
setServerInfos
(UserProtos.RpcEndpointInfos.Builder builderForValue) optional .exec.user.RpcEndpointInfos server_infos = 6;
optional .exec.user.HandshakeStatus status = 3;
setSupportedMethods
(int index, UserProtos.RpcType value) repeated .exec.user.RpcType supported_methods = 8;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
setField
public UserProtos.BitToUserHandshake.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
clearField
public UserProtos.BitToUserHandshake.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
clearOneof
public UserProtos.BitToUserHandshake.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
setRepeatedField
public UserProtos.BitToUserHandshake.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
addRepeatedField
public UserProtos.BitToUserHandshake.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserProtos.BitToUserHandshake.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
mergeFrom
public UserProtos.BitToUserHandshake.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserProtos.BitToUserHandshake.Builder>
- Throws:
IOException
-
hasRpcVersion
public boolean hasRpcVersion()optional int32 rpc_version = 2;
- Specified by:
hasRpcVersion
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- Whether the rpcVersion field is set.
-
getRpcVersion
public int getRpcVersion()optional int32 rpc_version = 2;
- Specified by:
getRpcVersion
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The rpcVersion.
-
setRpcVersion
optional int32 rpc_version = 2;
- Parameters:
value
- The rpcVersion to set.- Returns:
- This builder for chaining.
-
clearRpcVersion
optional int32 rpc_version = 2;
- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()optional .exec.user.HandshakeStatus status = 3;
- Specified by:
hasStatus
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
optional .exec.user.HandshakeStatus status = 3;
- Specified by:
getStatus
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The status.
-
setStatus
optional .exec.user.HandshakeStatus status = 3;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
optional .exec.user.HandshakeStatus status = 3;
- Returns:
- This builder for chaining.
-
hasErrorId
public boolean hasErrorId()optional string errorId = 4;
- Specified by:
hasErrorId
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- Whether the errorId field is set.
-
getErrorId
optional string errorId = 4;
- Specified by:
getErrorId
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The errorId.
-
getErrorIdBytes
public com.google.protobuf.ByteString getErrorIdBytes()optional string errorId = 4;
- Specified by:
getErrorIdBytes
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The bytes for errorId.
-
setErrorId
optional string errorId = 4;
- Parameters:
value
- The errorId to set.- Returns:
- This builder for chaining.
-
clearErrorId
optional string errorId = 4;
- Returns:
- This builder for chaining.
-
setErrorIdBytes
optional string errorId = 4;
- Parameters:
value
- The bytes for errorId to set.- Returns:
- This builder for chaining.
-
hasErrorMessage
public boolean hasErrorMessage()optional string errorMessage = 5;
- Specified by:
hasErrorMessage
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- Whether the errorMessage field is set.
-
getErrorMessage
optional string errorMessage = 5;
- Specified by:
getErrorMessage
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()optional string errorMessage = 5;
- Specified by:
getErrorMessageBytes
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The bytes for errorMessage.
-
setErrorMessage
optional string errorMessage = 5;
- Parameters:
value
- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
optional string errorMessage = 5;
- Returns:
- This builder for chaining.
-
setErrorMessageBytes
public UserProtos.BitToUserHandshake.Builder setErrorMessageBytes(com.google.protobuf.ByteString value) optional string errorMessage = 5;
- Parameters:
value
- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
hasServerInfos
public boolean hasServerInfos()optional .exec.user.RpcEndpointInfos server_infos = 6;
- Specified by:
hasServerInfos
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- Whether the serverInfos field is set.
-
getServerInfos
optional .exec.user.RpcEndpointInfos server_infos = 6;
- Specified by:
getServerInfos
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The serverInfos.
-
setServerInfos
optional .exec.user.RpcEndpointInfos server_infos = 6;
-
setServerInfos
public UserProtos.BitToUserHandshake.Builder setServerInfos(UserProtos.RpcEndpointInfos.Builder builderForValue) optional .exec.user.RpcEndpointInfos server_infos = 6;
-
mergeServerInfos
optional .exec.user.RpcEndpointInfos server_infos = 6;
-
clearServerInfos
optional .exec.user.RpcEndpointInfos server_infos = 6;
-
getServerInfosBuilder
optional .exec.user.RpcEndpointInfos server_infos = 6;
-
getServerInfosOrBuilder
optional .exec.user.RpcEndpointInfos server_infos = 6;
- Specified by:
getServerInfosOrBuilder
in interfaceUserProtos.BitToUserHandshakeOrBuilder
-
getAuthenticationMechanismsList
public com.google.protobuf.ProtocolStringList getAuthenticationMechanismsList()repeated string authenticationMechanisms = 7;
- Specified by:
getAuthenticationMechanismsList
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- A list containing the authenticationMechanisms.
-
getAuthenticationMechanismsCount
public int getAuthenticationMechanismsCount()repeated string authenticationMechanisms = 7;
- Specified by:
getAuthenticationMechanismsCount
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The count of authenticationMechanisms.
-
getAuthenticationMechanisms
repeated string authenticationMechanisms = 7;
- Specified by:
getAuthenticationMechanisms
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The authenticationMechanisms at the given index.
-
getAuthenticationMechanismsBytes
public com.google.protobuf.ByteString getAuthenticationMechanismsBytes(int index) repeated string authenticationMechanisms = 7;
- Specified by:
getAuthenticationMechanismsBytes
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the authenticationMechanisms at the given index.
-
setAuthenticationMechanisms
repeated string authenticationMechanisms = 7;
- Parameters:
index
- The index to set the value at.value
- The authenticationMechanisms to set.- Returns:
- This builder for chaining.
-
addAuthenticationMechanisms
repeated string authenticationMechanisms = 7;
- Parameters:
value
- The authenticationMechanisms to add.- Returns:
- This builder for chaining.
-
addAllAuthenticationMechanisms
public UserProtos.BitToUserHandshake.Builder addAllAuthenticationMechanisms(Iterable<String> values) repeated string authenticationMechanisms = 7;
- Parameters:
values
- The authenticationMechanisms to add.- Returns:
- This builder for chaining.
-
clearAuthenticationMechanisms
repeated string authenticationMechanisms = 7;
- Returns:
- This builder for chaining.
-
addAuthenticationMechanismsBytes
public UserProtos.BitToUserHandshake.Builder addAuthenticationMechanismsBytes(com.google.protobuf.ByteString value) repeated string authenticationMechanisms = 7;
- Parameters:
value
- The bytes of the authenticationMechanisms to add.- Returns:
- This builder for chaining.
-
getSupportedMethodsList
repeated .exec.user.RpcType supported_methods = 8;
- Specified by:
getSupportedMethodsList
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- A list containing the supportedMethods.
-
getSupportedMethodsCount
public int getSupportedMethodsCount()repeated .exec.user.RpcType supported_methods = 8;
- Specified by:
getSupportedMethodsCount
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The count of supportedMethods.
-
getSupportedMethods
repeated .exec.user.RpcType supported_methods = 8;
- Specified by:
getSupportedMethods
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The supportedMethods at the given index.
-
setSupportedMethods
public UserProtos.BitToUserHandshake.Builder setSupportedMethods(int index, UserProtos.RpcType value) repeated .exec.user.RpcType supported_methods = 8;
- Parameters:
index
- The index to set the value at.value
- The supportedMethods to set.- Returns:
- This builder for chaining.
-
addSupportedMethods
repeated .exec.user.RpcType supported_methods = 8;
- Parameters:
value
- The supportedMethods to add.- Returns:
- This builder for chaining.
-
addAllSupportedMethods
public UserProtos.BitToUserHandshake.Builder addAllSupportedMethods(Iterable<? extends UserProtos.RpcType> values) repeated .exec.user.RpcType supported_methods = 8;
- Parameters:
values
- The supportedMethods to add.- Returns:
- This builder for chaining.
-
clearSupportedMethods
repeated .exec.user.RpcType supported_methods = 8;
- Returns:
- This builder for chaining.
-
hasEncrypted
public boolean hasEncrypted()optional bool encrypted = 9;
- Specified by:
hasEncrypted
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- Whether the encrypted field is set.
-
getEncrypted
public boolean getEncrypted()optional bool encrypted = 9;
- Specified by:
getEncrypted
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The encrypted.
-
setEncrypted
optional bool encrypted = 9;
- Parameters:
value
- The encrypted to set.- Returns:
- This builder for chaining.
-
clearEncrypted
optional bool encrypted = 9;
- Returns:
- This builder for chaining.
-
hasMaxWrappedSize
public boolean hasMaxWrappedSize()optional int32 maxWrappedSize = 10;
- Specified by:
hasMaxWrappedSize
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- Whether the maxWrappedSize field is set.
-
getMaxWrappedSize
public int getMaxWrappedSize()optional int32 maxWrappedSize = 10;
- Specified by:
getMaxWrappedSize
in interfaceUserProtos.BitToUserHandshakeOrBuilder
- Returns:
- The maxWrappedSize.
-
setMaxWrappedSize
optional int32 maxWrappedSize = 10;
- Parameters:
value
- The maxWrappedSize to set.- Returns:
- This builder for chaining.
-
clearMaxWrappedSize
optional int32 maxWrappedSize = 10;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final UserProtos.BitToUserHandshake.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-
mergeUnknownFields
public final UserProtos.BitToUserHandshake.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.BitToUserHandshake.Builder>
-