Class FlightSql.CommandGetDbSchemas.Builder

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

public static final class FlightSql.CommandGetDbSchemas.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetDbSchemas.Builder> implements FlightSql.CommandGetDbSchemasOrBuilder

 Represents a request to retrieve the list of database schemas on a Flight SQL enabled backend.
 The definition of a database schema depends on vendor/implementation. It is usually a collection of tables.
 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 not null
 >
 The returned data should be ordered by catalog_name, then db_schema_name.
 
Protobuf type arrow.flight.protocol.sql.CommandGetDbSchemas
  • 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.CommandGetDbSchemas.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.CommandGetDbSchemas.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.CommandGetDbSchemas.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasCatalog()
      
       Specifies the Catalog to search for the tables.
       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.CommandGetDbSchemasOrBuilder
      Returns:
      Whether the catalog field is set.
    • getCatalog

      public String getCatalog()
      
       Specifies the Catalog to search for the tables.
       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.CommandGetDbSchemasOrBuilder
      Returns:
      The catalog.
    • getCatalogBytes

      public com.google.protobuf.ByteString getCatalogBytes()
      
       Specifies the Catalog to search for the tables.
       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.CommandGetDbSchemasOrBuilder
      Returns:
      The bytes for catalog.
    • setCatalog

      public FlightSql.CommandGetDbSchemas.Builder setCatalog(String value)
      
       Specifies the Catalog to search for the tables.
       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 tables.
       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.CommandGetDbSchemas.Builder setCatalogBytes(com.google.protobuf.ByteString value)
      
       Specifies the Catalog to search for the tables.
       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.
    • hasDbSchemaFilterPattern

      public boolean hasDbSchemaFilterPattern()
      
       Specifies a filter pattern for schemas to search for.
       When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search.
       In the pattern string, two special characters can be used to denote matching rules:
          - "%" means to match any substring with 0 or more characters.
          - "_" means to match any one character.
       
      optional string db_schema_filter_pattern = 2;
      Specified by:
      hasDbSchemaFilterPattern in interface FlightSql.CommandGetDbSchemasOrBuilder
      Returns:
      Whether the dbSchemaFilterPattern field is set.
    • getDbSchemaFilterPattern

      public String getDbSchemaFilterPattern()
      
       Specifies a filter pattern for schemas to search for.
       When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search.
       In the pattern string, two special characters can be used to denote matching rules:
          - "%" means to match any substring with 0 or more characters.
          - "_" means to match any one character.
       
      optional string db_schema_filter_pattern = 2;
      Specified by:
      getDbSchemaFilterPattern in interface FlightSql.CommandGetDbSchemasOrBuilder
      Returns:
      The dbSchemaFilterPattern.
    • getDbSchemaFilterPatternBytes

      public com.google.protobuf.ByteString getDbSchemaFilterPatternBytes()
      
       Specifies a filter pattern for schemas to search for.
       When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search.
       In the pattern string, two special characters can be used to denote matching rules:
          - "%" means to match any substring with 0 or more characters.
          - "_" means to match any one character.
       
      optional string db_schema_filter_pattern = 2;
      Specified by:
      getDbSchemaFilterPatternBytes in interface FlightSql.CommandGetDbSchemasOrBuilder
      Returns:
      The bytes for dbSchemaFilterPattern.
    • setDbSchemaFilterPattern

      public FlightSql.CommandGetDbSchemas.Builder setDbSchemaFilterPattern(String value)
      
       Specifies a filter pattern for schemas to search for.
       When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search.
       In the pattern string, two special characters can be used to denote matching rules:
          - "%" means to match any substring with 0 or more characters.
          - "_" means to match any one character.
       
      optional string db_schema_filter_pattern = 2;
      Parameters:
      value - The dbSchemaFilterPattern to set.
      Returns:
      This builder for chaining.
    • clearDbSchemaFilterPattern

      public FlightSql.CommandGetDbSchemas.Builder clearDbSchemaFilterPattern()
      
       Specifies a filter pattern for schemas to search for.
       When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search.
       In the pattern string, two special characters can be used to denote matching rules:
          - "%" means to match any substring with 0 or more characters.
          - "_" means to match any one character.
       
      optional string db_schema_filter_pattern = 2;
      Returns:
      This builder for chaining.
    • setDbSchemaFilterPatternBytes

      public FlightSql.CommandGetDbSchemas.Builder setDbSchemaFilterPatternBytes(com.google.protobuf.ByteString value)
      
       Specifies a filter pattern for schemas to search for.
       When no db_schema_filter_pattern is provided, the pattern will not be used to narrow the search.
       In the pattern string, two special characters can be used to denote matching rules:
          - "%" means to match any substring with 0 or more characters.
          - "_" means to match any one character.
       
      optional string db_schema_filter_pattern = 2;
      Parameters:
      value - The bytes for dbSchemaFilterPattern to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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