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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • getDefaultInstanceForType

      public GeneralRPCProtos.RpcHeader getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GeneralRPCProtos.RpcHeader buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • clearField

      public GeneralRPCProtos.RpcHeader.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • clearOneof

      public GeneralRPCProtos.RpcHeader.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • mergeFrom

      public GeneralRPCProtos.RpcHeader.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeneralRPCProtos.RpcHeader.Builder>
      Throws:
      IOException
    • hasMode

      public boolean hasMode()
      optional .exec.rpc.RpcMode mode = 1;
      Specified by:
      hasMode in interface GeneralRPCProtos.RpcHeaderOrBuilder
      Returns:
      Whether the mode field is set.
    • getMode

      public GeneralRPCProtos.RpcMode getMode()
      optional .exec.rpc.RpcMode mode = 1;
      Specified by:
      getMode in interface GeneralRPCProtos.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 interface GeneralRPCProtos.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 interface GeneralRPCProtos.RpcHeaderOrBuilder
      Returns:
      The coordinationId.
    • setCoordinationId

      public GeneralRPCProtos.RpcHeader.Builder setCoordinationId(int value)
       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

      public GeneralRPCProtos.RpcHeader.Builder 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 interface GeneralRPCProtos.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 interface GeneralRPCProtos.RpcHeaderOrBuilder
      Returns:
      The rpcType.
    • setRpcType

      public GeneralRPCProtos.RpcHeader.Builder setRpcType(int value)
       a rpc mode specific rpc type.
       
      optional int32 rpc_type = 3;
      Parameters:
      value - The rpcType to set.
      Returns:
      This builder for chaining.
    • clearRpcType

      public GeneralRPCProtos.RpcHeader.Builder 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>
    • mergeUnknownFields

      public final GeneralRPCProtos.RpcHeader.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GeneralRPCProtos.RpcHeader.Builder>