Package org.apache.drill.exec.proto
Class CoordinationProtos.DrillbitEndpoint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<CoordinationProtos.DrillbitEndpoint.Builder>
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,CoordinationProtos.DrillbitEndpointOrBuilder
- Enclosing class:
- CoordinationProtos.DrillbitEndpoint
public static final class CoordinationProtos.DrillbitEndpoint.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CoordinationProtos.DrillbitEndpoint.Builder>
implements CoordinationProtos.DrillbitEndpointOrBuilder
Protobuf type
exec.DrillbitEndpoint
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
optional string address = 1;
optional int32 control_port = 3;
optional int32 data_port = 4;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional int32 http_port = 8;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .exec.Roles roles = 5;
optional .exec.DrillbitEndpoint.State state = 7;
optional int32 user_port = 2;
optional string version = 6;
clone()
optional string address = 1;
com.google.protobuf.ByteString
optional string address = 1;
int
optional int32 control_port = 3;
int
optional int32 data_port = 4;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
optional int32 http_port = 8;
getRoles()
optional .exec.Roles roles = 5;
optional .exec.Roles roles = 5;
optional .exec.Roles roles = 5;
getState()
optional .exec.DrillbitEndpoint.State state = 7;
int
optional int32 user_port = 2;
optional string version = 6;
com.google.protobuf.ByteString
optional string version = 6;
boolean
optional string address = 1;
boolean
optional int32 control_port = 3;
boolean
optional int32 data_port = 4;
boolean
optional int32 http_port = 8;
boolean
hasRoles()
optional .exec.Roles roles = 5;
boolean
hasState()
optional .exec.DrillbitEndpoint.State state = 7;
boolean
optional int32 user_port = 2;
boolean
optional string version = 6;
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.Roles roles = 5;
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAddress
(String value) optional string address = 1;
setAddressBytes
(com.google.protobuf.ByteString value) optional string address = 1;
setControlPort
(int value) optional int32 control_port = 3;
setDataPort
(int value) optional int32 data_port = 4;
setHttpPort
(int value) optional int32 http_port = 8;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRoles
(CoordinationProtos.Roles value) optional .exec.Roles roles = 5;
setRoles
(CoordinationProtos.Roles.Builder builderForValue) optional .exec.Roles roles = 5;
optional .exec.DrillbitEndpoint.State state = 7;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUserPort
(int value) optional int32 user_port = 2;
setVersion
(String value) optional string version = 6;
setVersionBytes
(com.google.protobuf.ByteString value) optional string version = 6;
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<CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.Builder>
-
setField
public CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.Builder>
-
clearField
public CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.Builder>
-
clearOneof
public CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.Builder>
-
setRepeatedField
public CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.Builder>
-
addRepeatedField
public CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CoordinationProtos.DrillbitEndpoint.Builder>
-
mergeFrom
public CoordinationProtos.DrillbitEndpoint.Builder mergeFrom(CoordinationProtos.DrillbitEndpoint other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationProtos.DrillbitEndpoint.Builder>
-
mergeFrom
public CoordinationProtos.DrillbitEndpoint.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<CoordinationProtos.DrillbitEndpoint.Builder>
- Throws:
IOException
-
hasAddress
public boolean hasAddress()optional string address = 1;
- Specified by:
hasAddress
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the address field is set.
-
getAddress
optional string address = 1;
- Specified by:
getAddress
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()optional string address = 1;
- Specified by:
getAddressBytes
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The bytes for address.
-
setAddress
optional string address = 1;
- Parameters:
value
- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
optional string address = 1;
- Returns:
- This builder for chaining.
-
setAddressBytes
public CoordinationProtos.DrillbitEndpoint.Builder setAddressBytes(com.google.protobuf.ByteString value) optional string address = 1;
- Parameters:
value
- The bytes for address to set.- Returns:
- This builder for chaining.
-
hasUserPort
public boolean hasUserPort()optional int32 user_port = 2;
- Specified by:
hasUserPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the userPort field is set.
-
getUserPort
public int getUserPort()optional int32 user_port = 2;
- Specified by:
getUserPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The userPort.
-
setUserPort
optional int32 user_port = 2;
- Parameters:
value
- The userPort to set.- Returns:
- This builder for chaining.
-
clearUserPort
optional int32 user_port = 2;
- Returns:
- This builder for chaining.
-
hasControlPort
public boolean hasControlPort()optional int32 control_port = 3;
- Specified by:
hasControlPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the controlPort field is set.
-
getControlPort
public int getControlPort()optional int32 control_port = 3;
- Specified by:
getControlPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The controlPort.
-
setControlPort
optional int32 control_port = 3;
- Parameters:
value
- The controlPort to set.- Returns:
- This builder for chaining.
-
clearControlPort
optional int32 control_port = 3;
- Returns:
- This builder for chaining.
-
hasDataPort
public boolean hasDataPort()optional int32 data_port = 4;
- Specified by:
hasDataPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the dataPort field is set.
-
getDataPort
public int getDataPort()optional int32 data_port = 4;
- Specified by:
getDataPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The dataPort.
-
setDataPort
optional int32 data_port = 4;
- Parameters:
value
- The dataPort to set.- Returns:
- This builder for chaining.
-
clearDataPort
optional int32 data_port = 4;
- Returns:
- This builder for chaining.
-
hasRoles
public boolean hasRoles()optional .exec.Roles roles = 5;
- Specified by:
hasRoles
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the roles field is set.
-
getRoles
optional .exec.Roles roles = 5;
- Specified by:
getRoles
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The roles.
-
setRoles
optional .exec.Roles roles = 5;
-
setRoles
public CoordinationProtos.DrillbitEndpoint.Builder setRoles(CoordinationProtos.Roles.Builder builderForValue) optional .exec.Roles roles = 5;
-
mergeRoles
optional .exec.Roles roles = 5;
-
clearRoles
optional .exec.Roles roles = 5;
-
getRolesBuilder
optional .exec.Roles roles = 5;
-
getRolesOrBuilder
optional .exec.Roles roles = 5;
- Specified by:
getRolesOrBuilder
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
-
hasVersion
public boolean hasVersion()optional string version = 6;
- Specified by:
hasVersion
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
optional string version = 6;
- Specified by:
getVersion
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()optional string version = 6;
- Specified by:
getVersionBytes
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The bytes for version.
-
setVersion
optional string version = 6;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
optional string version = 6;
- Returns:
- This builder for chaining.
-
setVersionBytes
public CoordinationProtos.DrillbitEndpoint.Builder setVersionBytes(com.google.protobuf.ByteString value) optional string version = 6;
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()optional .exec.DrillbitEndpoint.State state = 7;
- Specified by:
hasState
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the state field is set.
-
getState
optional .exec.DrillbitEndpoint.State state = 7;
- Specified by:
getState
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The state.
-
setState
public CoordinationProtos.DrillbitEndpoint.Builder setState(CoordinationProtos.DrillbitEndpoint.State value) optional .exec.DrillbitEndpoint.State state = 7;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
optional .exec.DrillbitEndpoint.State state = 7;
- Returns:
- This builder for chaining.
-
hasHttpPort
public boolean hasHttpPort()optional int32 http_port = 8;
- Specified by:
hasHttpPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- Whether the httpPort field is set.
-
getHttpPort
public int getHttpPort()optional int32 http_port = 8;
- Specified by:
getHttpPort
in interfaceCoordinationProtos.DrillbitEndpointOrBuilder
- Returns:
- The httpPort.
-
setHttpPort
optional int32 http_port = 8;
- Parameters:
value
- The httpPort to set.- Returns:
- This builder for chaining.
-
clearHttpPort
optional int32 http_port = 8;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CoordinationProtos.DrillbitEndpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationProtos.DrillbitEndpoint.Builder>
-
mergeUnknownFields
public final CoordinationProtos.DrillbitEndpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationProtos.DrillbitEndpoint.Builder>
-