Class FlightSql.CommandGetPrimaryKeys.Builder

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

public static final class FlightSql.CommandGetPrimaryKeys.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetPrimaryKeys.Builder> implements FlightSql.CommandGetPrimaryKeysOrBuilder

 Represents a request to retrieve the primary keys of a table on a Flight SQL enabled backend.
 Used in the command member of FlightDescriptor for the following RPC calls:
  - GetSchema: return the Arrow schema of the query.
  - GetFlightInfo: execute the catalog metadata request.

 The returned Arrow schema will be:
 <
  catalog_name: utf8,
  db_schema_name: utf8,
  table_name: utf8 not null,
  column_name: utf8 not null,
  key_name: utf8,
  key_sequence: int32 not null
 >
 The returned data should be ordered by catalog_name, db_schema_name, table_name, key_name, then key_sequence.
 
Protobuf type arrow.flight.protocol.sql.CommandGetPrimaryKeys
  • 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<FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.Builder>
    • getDefaultInstanceForType

      public FlightSql.CommandGetPrimaryKeys 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.CommandGetPrimaryKeys 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<FlightSql.CommandGetPrimaryKeys.Builder>
    • setField

      public FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.Builder>
    • clearField

      public FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.Builder>
    • clearOneof

      public FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.Builder>
    • setRepeatedField

      public FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.Builder>
    • addRepeatedField

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

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

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

      public boolean hasCatalog()
      
       Specifies the catalog to search for the table.
       An empty string retrieves those without a catalog.
       If omitted the catalog name should not be used to narrow the search.
       
      optional string catalog = 1;
      Specified by:
      hasCatalog in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      Whether the catalog field is set.
    • getCatalog

      public String getCatalog()
      
       Specifies the catalog to search for the table.
       An empty string retrieves those without a catalog.
       If omitted the catalog name should not be used to narrow the search.
       
      optional string catalog = 1;
      Specified by:
      getCatalog in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      The catalog.
    • getCatalogBytes

      public com.google.protobuf.ByteString getCatalogBytes()
      
       Specifies the catalog to search for the table.
       An empty string retrieves those without a catalog.
       If omitted the catalog name should not be used to narrow the search.
       
      optional string catalog = 1;
      Specified by:
      getCatalogBytes in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      The bytes for catalog.
    • setCatalog

      
       Specifies the catalog to search for the table.
       An empty string retrieves those without a catalog.
       If omitted the catalog name should not be used to narrow the search.
       
      optional string catalog = 1;
      Parameters:
      value - The catalog to set.
      Returns:
      This builder for chaining.
    • clearCatalog

      
       Specifies the catalog to search for the table.
       An empty string retrieves those without a catalog.
       If omitted the catalog name should not be used to narrow the search.
       
      optional string catalog = 1;
      Returns:
      This builder for chaining.
    • setCatalogBytes

      public FlightSql.CommandGetPrimaryKeys.Builder setCatalogBytes(com.google.protobuf.ByteString value)
      
       Specifies the catalog to search for the table.
       An empty string retrieves those without a catalog.
       If omitted the catalog name should not be used to narrow the search.
       
      optional string catalog = 1;
      Parameters:
      value - The bytes for catalog to set.
      Returns:
      This builder for chaining.
    • hasDbSchema

      public boolean hasDbSchema()
      
       Specifies the schema to search for the table.
       An empty string retrieves those without a schema.
       If omitted the schema name should not be used to narrow the search.
       
      optional string db_schema = 2;
      Specified by:
      hasDbSchema in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      Whether the dbSchema field is set.
    • getDbSchema

      public String getDbSchema()
      
       Specifies the schema to search for the table.
       An empty string retrieves those without a schema.
       If omitted the schema name should not be used to narrow the search.
       
      optional string db_schema = 2;
      Specified by:
      getDbSchema in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      The dbSchema.
    • getDbSchemaBytes

      public com.google.protobuf.ByteString getDbSchemaBytes()
      
       Specifies the schema to search for the table.
       An empty string retrieves those without a schema.
       If omitted the schema name should not be used to narrow the search.
       
      optional string db_schema = 2;
      Specified by:
      getDbSchemaBytes in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      The bytes for dbSchema.
    • setDbSchema

      public FlightSql.CommandGetPrimaryKeys.Builder setDbSchema(String value)
      
       Specifies the schema to search for the table.
       An empty string retrieves those without a schema.
       If omitted the schema name should not be used to narrow the search.
       
      optional string db_schema = 2;
      Parameters:
      value - The dbSchema to set.
      Returns:
      This builder for chaining.
    • clearDbSchema

      
       Specifies the schema to search for the table.
       An empty string retrieves those without a schema.
       If omitted the schema name should not be used to narrow the search.
       
      optional string db_schema = 2;
      Returns:
      This builder for chaining.
    • setDbSchemaBytes

      public FlightSql.CommandGetPrimaryKeys.Builder setDbSchemaBytes(com.google.protobuf.ByteString value)
      
       Specifies the schema to search for the table.
       An empty string retrieves those without a schema.
       If omitted the schema name should not be used to narrow the search.
       
      optional string db_schema = 2;
      Parameters:
      value - The bytes for dbSchema to set.
      Returns:
      This builder for chaining.
    • getTable

      public String getTable()
       Specifies the table to get the primary keys for.
       
      string table = 3;
      Specified by:
      getTable in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       Specifies the table to get the primary keys for.
       
      string table = 3;
      Specified by:
      getTableBytes in interface FlightSql.CommandGetPrimaryKeysOrBuilder
      Returns:
      The bytes for table.
    • setTable

       Specifies the table to get the primary keys for.
       
      string table = 3;
      Parameters:
      value - The table to set.
      Returns:
      This builder for chaining.
    • clearTable

       Specifies the table to get the primary keys for.
       
      string table = 3;
      Returns:
      This builder for chaining.
    • setTableBytes

      public FlightSql.CommandGetPrimaryKeys.Builder setTableBytes(com.google.protobuf.ByteString value)
       Specifies the table to get the primary keys for.
       
      string table = 3;
      Parameters:
      value - The bytes for table to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.Builder>
    • mergeUnknownFields

      public final FlightSql.CommandGetPrimaryKeys.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<FlightSql.CommandGetPrimaryKeys.Builder>