Class UserProtos.RunQuery.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
org.apache.drill.exec.proto.UserProtos.RunQuery.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, UserProtos.RunQueryOrBuilder
Enclosing class:
UserProtos.RunQuery

public static final class UserProtos.RunQuery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder> implements UserProtos.RunQueryOrBuilder
 Request message for running a query.
 
Protobuf type exec.user.RunQuery
  • 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<UserProtos.RunQuery.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<UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • getDefaultInstanceForType

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

      public UserProtos.RunQuery build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UserProtos.RunQuery 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<UserProtos.RunQuery.Builder>
    • setField

      public UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • clearField

      public UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • clearOneof

      public UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • setRepeatedField

      public UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • addRepeatedField

      public UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • mergeFrom

      public UserProtos.RunQuery.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<UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • mergeFrom

      public UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
      Throws:
      IOException
    • hasResultsMode

      public boolean hasResultsMode()
      optional .exec.user.QueryResultsMode results_mode = 1;
      Specified by:
      hasResultsMode in interface UserProtos.RunQueryOrBuilder
      Returns:
      Whether the resultsMode field is set.
    • getResultsMode

      public UserProtos.QueryResultsMode getResultsMode()
      optional .exec.user.QueryResultsMode results_mode = 1;
      Specified by:
      getResultsMode in interface UserProtos.RunQueryOrBuilder
      Returns:
      The resultsMode.
    • setResultsMode

      optional .exec.user.QueryResultsMode results_mode = 1;
      Parameters:
      value - The resultsMode to set.
      Returns:
      This builder for chaining.
    • clearResultsMode

      public UserProtos.RunQuery.Builder clearResultsMode()
      optional .exec.user.QueryResultsMode results_mode = 1;
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
      optional .exec.shared.QueryType type = 2;
      Specified by:
      hasType in interface UserProtos.RunQueryOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public UserBitShared.QueryType getType()
      optional .exec.shared.QueryType type = 2;
      Specified by:
      getType in interface UserProtos.RunQueryOrBuilder
      Returns:
      The type.
    • setType

      optional .exec.shared.QueryType type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public UserProtos.RunQuery.Builder clearType()
      optional .exec.shared.QueryType type = 2;
      Returns:
      This builder for chaining.
    • hasPlan

      public boolean hasPlan()
       Input for query type LOGICAL, PHYSICAL or SQL.
       
      optional string plan = 3;
      Specified by:
      hasPlan in interface UserProtos.RunQueryOrBuilder
      Returns:
      Whether the plan field is set.
    • getPlan

      public String getPlan()
       Input for query type LOGICAL, PHYSICAL or SQL.
       
      optional string plan = 3;
      Specified by:
      getPlan in interface UserProtos.RunQueryOrBuilder
      Returns:
      The plan.
    • getPlanBytes

      public com.google.protobuf.ByteString getPlanBytes()
       Input for query type LOGICAL, PHYSICAL or SQL.
       
      optional string plan = 3;
      Specified by:
      getPlanBytes in interface UserProtos.RunQueryOrBuilder
      Returns:
      The bytes for plan.
    • setPlan

      public UserProtos.RunQuery.Builder setPlan(String value)
       Input for query type LOGICAL, PHYSICAL or SQL.
       
      optional string plan = 3;
      Parameters:
      value - The plan to set.
      Returns:
      This builder for chaining.
    • clearPlan

      public UserProtos.RunQuery.Builder clearPlan()
       Input for query type LOGICAL, PHYSICAL or SQL.
       
      optional string plan = 3;
      Returns:
      This builder for chaining.
    • setPlanBytes

      public UserProtos.RunQuery.Builder setPlanBytes(com.google.protobuf.ByteString value)
       Input for query type LOGICAL, PHYSICAL or SQL.
       
      optional string plan = 3;
      Parameters:
      value - The bytes for plan to set.
      Returns:
      This builder for chaining.
    • getFragmentsList

      public List<BitControl.PlanFragment> getFragmentsList()
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
      Specified by:
      getFragmentsList in interface UserProtos.RunQueryOrBuilder
    • getFragmentsCount

      public int getFragmentsCount()
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
      Specified by:
      getFragmentsCount in interface UserProtos.RunQueryOrBuilder
    • getFragments

      public BitControl.PlanFragment getFragments(int index)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
      Specified by:
      getFragments in interface UserProtos.RunQueryOrBuilder
    • setFragments

      public UserProtos.RunQuery.Builder setFragments(int index, BitControl.PlanFragment value)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • setFragments

      public UserProtos.RunQuery.Builder setFragments(int index, BitControl.PlanFragment.Builder builderForValue)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • addFragments

       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • addFragments

      public UserProtos.RunQuery.Builder addFragments(int index, BitControl.PlanFragment value)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • addFragments

      public UserProtos.RunQuery.Builder addFragments(BitControl.PlanFragment.Builder builderForValue)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • addFragments

      public UserProtos.RunQuery.Builder addFragments(int index, BitControl.PlanFragment.Builder builderForValue)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • addAllFragments

      public UserProtos.RunQuery.Builder addAllFragments(Iterable<? extends BitControl.PlanFragment> values)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • clearFragments

      public UserProtos.RunQuery.Builder clearFragments()
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • removeFragments

      public UserProtos.RunQuery.Builder removeFragments(int index)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • getFragmentsBuilder

      public BitControl.PlanFragment.Builder getFragmentsBuilder(int index)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • getFragmentsOrBuilder

      public BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder(int index)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
      Specified by:
      getFragmentsOrBuilder in interface UserProtos.RunQueryOrBuilder
    • getFragmentsOrBuilderList

      public List<? extends BitControl.PlanFragmentOrBuilder> getFragmentsOrBuilderList()
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
      Specified by:
      getFragmentsOrBuilderList in interface UserProtos.RunQueryOrBuilder
    • addFragmentsBuilder

      public BitControl.PlanFragment.Builder addFragmentsBuilder()
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • addFragmentsBuilder

      public BitControl.PlanFragment.Builder addFragmentsBuilder(int index)
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • getFragmentsBuilderList

      public List<BitControl.PlanFragment.Builder> getFragmentsBuilderList()
       Input for query type EXECUTION. Input is a set of executable fragments.
       
      repeated .exec.bit.control.PlanFragment fragments = 4;
    • hasPreparedStatementHandle

      public boolean hasPreparedStatementHandle()
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
      Specified by:
      hasPreparedStatementHandle in interface UserProtos.RunQueryOrBuilder
      Returns:
      Whether the preparedStatementHandle field is set.
    • getPreparedStatementHandle

      public UserProtos.PreparedStatementHandle getPreparedStatementHandle()
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
      Specified by:
      getPreparedStatementHandle in interface UserProtos.RunQueryOrBuilder
      Returns:
      The preparedStatementHandle.
    • setPreparedStatementHandle

      public UserProtos.RunQuery.Builder setPreparedStatementHandle(UserProtos.PreparedStatementHandle value)
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
    • setPreparedStatementHandle

      public UserProtos.RunQuery.Builder setPreparedStatementHandle(UserProtos.PreparedStatementHandle.Builder builderForValue)
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
    • mergePreparedStatementHandle

      public UserProtos.RunQuery.Builder mergePreparedStatementHandle(UserProtos.PreparedStatementHandle value)
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
    • clearPreparedStatementHandle

      public UserProtos.RunQuery.Builder clearPreparedStatementHandle()
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
    • getPreparedStatementHandleBuilder

      public UserProtos.PreparedStatementHandle.Builder getPreparedStatementHandleBuilder()
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
    • getPreparedStatementHandleOrBuilder

      public UserProtos.PreparedStatementHandleOrBuilder getPreparedStatementHandleOrBuilder()
       Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
       to state on server side which is returned in response to CreatePreparedStatementReq.
       
      optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
      Specified by:
      getPreparedStatementHandleOrBuilder in interface UserProtos.RunQueryOrBuilder
    • hasAutolimitRowcount

      public boolean hasAutolimitRowcount()
       Input for indicating the limit on a query's result set.
       
      optional int32 autolimit_rowcount = 6;
      Specified by:
      hasAutolimitRowcount in interface UserProtos.RunQueryOrBuilder
      Returns:
      Whether the autolimitRowcount field is set.
    • getAutolimitRowcount

      public int getAutolimitRowcount()
       Input for indicating the limit on a query's result set.
       
      optional int32 autolimit_rowcount = 6;
      Specified by:
      getAutolimitRowcount in interface UserProtos.RunQueryOrBuilder
      Returns:
      The autolimitRowcount.
    • setAutolimitRowcount

      public UserProtos.RunQuery.Builder setAutolimitRowcount(int value)
       Input for indicating the limit on a query's result set.
       
      optional int32 autolimit_rowcount = 6;
      Parameters:
      value - The autolimitRowcount to set.
      Returns:
      This builder for chaining.
    • clearAutolimitRowcount

      public UserProtos.RunQuery.Builder clearAutolimitRowcount()
       Input for indicating the limit on a query's result set.
       
      optional int32 autolimit_rowcount = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>
    • mergeUnknownFields

      public final UserProtos.RunQuery.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<UserProtos.RunQuery.Builder>