Class FlightSql.CommandStatementUpdate.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementUpdate.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.CommandStatementUpdate.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, FlightSql.CommandStatementUpdateOrBuilder
Enclosing class:
FlightSql.CommandStatementUpdate

public static final class FlightSql.CommandStatementUpdate.Builder extends com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementUpdate.Builder> implements FlightSql.CommandStatementUpdateOrBuilder

 Represents a SQL update query. Used in the command member of FlightDescriptor
 for the RPC call DoPut to cause the server to execute the included SQL update.
 
Protobuf type arrow.flight.protocol.sql.CommandStatementUpdate
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementUpdate.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.GeneratedMessage.Builder<FlightSql.CommandStatementUpdate.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.GeneratedMessage.Builder<FlightSql.CommandStatementUpdate.Builder>
    • getDefaultInstanceForType

      public FlightSql.CommandStatementUpdate 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 FlightSql.CommandStatementUpdate buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FlightSql.CommandStatementUpdate.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<FlightSql.CommandStatementUpdate.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementUpdate.Builder>
    • mergeFrom

      public FlightSql.CommandStatementUpdate.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<FlightSql.CommandStatementUpdate.Builder>
      Throws:
      IOException
    • getQuery

      public String getQuery()
       The SQL syntax.
       
      string query = 1;
      Specified by:
      getQuery in interface FlightSql.CommandStatementUpdateOrBuilder
      Returns:
      The query.
    • getQueryBytes

      public com.google.protobuf.ByteString getQueryBytes()
       The SQL syntax.
       
      string query = 1;
      Specified by:
      getQueryBytes in interface FlightSql.CommandStatementUpdateOrBuilder
      Returns:
      The bytes for query.
    • setQuery

       The SQL syntax.
       
      string query = 1;
      Parameters:
      value - The query to set.
      Returns:
      This builder for chaining.
    • clearQuery

       The SQL syntax.
       
      string query = 1;
      Returns:
      This builder for chaining.
    • setQueryBytes

      public FlightSql.CommandStatementUpdate.Builder setQueryBytes(com.google.protobuf.ByteString value)
       The SQL syntax.
       
      string query = 1;
      Parameters:
      value - The bytes for query to set.
      Returns:
      This builder for chaining.
    • hasTransactionId

      public boolean hasTransactionId()
       Include the query as part of this transaction (if unset, the query is auto-committed).
       
      optional bytes transaction_id = 2;
      Specified by:
      hasTransactionId in interface FlightSql.CommandStatementUpdateOrBuilder
      Returns:
      Whether the transactionId field is set.
    • getTransactionId

      public com.google.protobuf.ByteString getTransactionId()
       Include the query as part of this transaction (if unset, the query is auto-committed).
       
      optional bytes transaction_id = 2;
      Specified by:
      getTransactionId in interface FlightSql.CommandStatementUpdateOrBuilder
      Returns:
      The transactionId.
    • setTransactionId

      public FlightSql.CommandStatementUpdate.Builder setTransactionId(com.google.protobuf.ByteString value)
       Include the query as part of this transaction (if unset, the query is auto-committed).
       
      optional bytes transaction_id = 2;
      Parameters:
      value - The transactionId to set.
      Returns:
      This builder for chaining.
    • clearTransactionId

      public FlightSql.CommandStatementUpdate.Builder clearTransactionId()
       Include the query as part of this transaction (if unset, the query is auto-committed).
       
      optional bytes transaction_id = 2;
      Returns:
      This builder for chaining.