Package org.apache.drill.exec.proto
Class GeneralRPCProtos.RpcHeader.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,GeneralRPCProtos.RpcHeaderOrBuilder
- Enclosing class:
- GeneralRPCProtos.RpcHeader
public static final class GeneralRPCProtos.RpcHeader.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
implements GeneralRPCProtos.RpcHeaderOrBuilder
Protobuf type
exec.rpc.RpcHeader
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
reusable coordination identifier.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional .exec.rpc.RpcMode mode = 1;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) a rpc mode specific rpc type.clone()
int
reusable coordination identifier.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getMode()
optional .exec.rpc.RpcMode mode = 1;
int
a rpc mode specific rpc type.boolean
reusable coordination identifier.boolean
hasMode()
optional .exec.rpc.RpcMode mode = 1;
boolean
a rpc mode specific rpc type.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) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCoordinationId
(int value) reusable coordination identifier.setMode
(GeneralRPCProtos.RpcMode value) optional .exec.rpc.RpcMode mode = 1;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRpcType
(int value) a rpc mode specific rpc type.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<GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.Builder>
-
setField
public GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.Builder>
-
clearField
public GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.Builder>
-
clearOneof
public GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.Builder>
-
setRepeatedField
public GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.Builder>
-
addRepeatedField
public GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GeneralRPCProtos.RpcHeader.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
-
mergeFrom
public GeneralRPCProtos.RpcHeader.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<GeneralRPCProtos.RpcHeader.Builder>
- Throws:
IOException
-
hasMode
public boolean hasMode()optional .exec.rpc.RpcMode mode = 1;
- Specified by:
hasMode
in interfaceGeneralRPCProtos.RpcHeaderOrBuilder
- Returns:
- Whether the mode field is set.
-
getMode
optional .exec.rpc.RpcMode mode = 1;
- Specified by:
getMode
in interfaceGeneralRPCProtos.RpcHeaderOrBuilder
- Returns:
- The mode.
-
setMode
optional .exec.rpc.RpcMode mode = 1;
- Parameters:
value
- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
optional .exec.rpc.RpcMode mode = 1;
- Returns:
- This builder for chaining.
-
hasCoordinationId
public boolean hasCoordinationId()reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
optional int32 coordination_id = 2;
- Specified by:
hasCoordinationId
in interfaceGeneralRPCProtos.RpcHeaderOrBuilder
- Returns:
- Whether the coordinationId field is set.
-
getCoordinationId
public int getCoordinationId()reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
optional int32 coordination_id = 2;
- Specified by:
getCoordinationId
in interfaceGeneralRPCProtos.RpcHeaderOrBuilder
- Returns:
- The coordinationId.
-
setCoordinationId
reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
optional int32 coordination_id = 2;
- Parameters:
value
- The coordinationId to set.- Returns:
- This builder for chaining.
-
clearCoordinationId
reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
optional int32 coordination_id = 2;
- Returns:
- This builder for chaining.
-
hasRpcType
public boolean hasRpcType()a rpc mode specific rpc type.
optional int32 rpc_type = 3;
- Specified by:
hasRpcType
in interfaceGeneralRPCProtos.RpcHeaderOrBuilder
- Returns:
- Whether the rpcType field is set.
-
getRpcType
public int getRpcType()a rpc mode specific rpc type.
optional int32 rpc_type = 3;
- Specified by:
getRpcType
in interfaceGeneralRPCProtos.RpcHeaderOrBuilder
- Returns:
- The rpcType.
-
setRpcType
a rpc mode specific rpc type.
optional int32 rpc_type = 3;
- Parameters:
value
- The rpcType to set.- Returns:
- This builder for chaining.
-
clearRpcType
a rpc mode specific rpc type.
optional int32 rpc_type = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final GeneralRPCProtos.RpcHeader.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
-
mergeUnknownFields
public final GeneralRPCProtos.RpcHeader.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
-