Class ExternalTable.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
com.clickhouse.client.grpc.impl.ExternalTable.Builder
All Implemented Interfaces:
ExternalTableOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExternalTable

public static final class ExternalTable.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder> implements ExternalTableOrBuilder
 Describes an external table - a table which will exists only while a query is executing.
 
Protobuf type clickhouse.grpc.ExternalTable
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
    • internalGetFieldAccessorTable

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

      public ExternalTable.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<ExternalTable.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<ExternalTable.Builder>
    • getDefaultInstanceForType

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

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

      public ExternalTable buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ExternalTable.Builder mergeFrom(ExternalTable other)
    • isInitialized

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

      public ExternalTable.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<ExternalTable.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name of the table. If omitted, "_data" is used.
       
      string name = 1;
      Specified by:
      getName in interface ExternalTableOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the table. If omitted, "_data" is used.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ExternalTableOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExternalTable.Builder setName(String value)
       Name of the table. If omitted, "_data" is used.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExternalTable.Builder clearName()
       Name of the table. If omitted, "_data" is used.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExternalTable.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the table. If omitted, "_data" is used.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getColumnsList

      public List<NameAndType> getColumnsList()
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
      Specified by:
      getColumnsList in interface ExternalTableOrBuilder
    • getColumnsCount

      public int getColumnsCount()
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
      Specified by:
      getColumnsCount in interface ExternalTableOrBuilder
    • getColumns

      public NameAndType getColumns(int index)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
      Specified by:
      getColumns in interface ExternalTableOrBuilder
    • setColumns

      public ExternalTable.Builder setColumns(int index, NameAndType value)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • setColumns

      public ExternalTable.Builder setColumns(int index, NameAndType.Builder builderForValue)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • addColumns

      public ExternalTable.Builder addColumns(NameAndType value)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • addColumns

      public ExternalTable.Builder addColumns(int index, NameAndType value)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • addColumns

      public ExternalTable.Builder addColumns(NameAndType.Builder builderForValue)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • addColumns

      public ExternalTable.Builder addColumns(int index, NameAndType.Builder builderForValue)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • addAllColumns

      public ExternalTable.Builder addAllColumns(Iterable<? extends NameAndType> values)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • clearColumns

      public ExternalTable.Builder clearColumns()
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • removeColumns

      public ExternalTable.Builder removeColumns(int index)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • getColumnsBuilder

      public NameAndType.Builder getColumnsBuilder(int index)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • getColumnsOrBuilder

      public NameAndTypeOrBuilder getColumnsOrBuilder(int index)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
      Specified by:
      getColumnsOrBuilder in interface ExternalTableOrBuilder
    • getColumnsOrBuilderList

      public List<? extends NameAndTypeOrBuilder> getColumnsOrBuilderList()
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
      Specified by:
      getColumnsOrBuilderList in interface ExternalTableOrBuilder
    • addColumnsBuilder

      public NameAndType.Builder addColumnsBuilder()
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • addColumnsBuilder

      public NameAndType.Builder addColumnsBuilder(int index)
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • getColumnsBuilderList

      public List<NameAndType.Builder> getColumnsBuilderList()
       Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
       
      repeated .clickhouse.grpc.NameAndType columns = 2;
    • getData

      public com.google.protobuf.ByteString getData()
       Data to insert to the external table.
       If a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used,
       then data for insertion to the same external table can be split between multiple QueryInfos.
       
      bytes data = 3;
      Specified by:
      getData in interface ExternalTableOrBuilder
      Returns:
      The data.
    • setData

      public ExternalTable.Builder setData(com.google.protobuf.ByteString value)
       Data to insert to the external table.
       If a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used,
       then data for insertion to the same external table can be split between multiple QueryInfos.
       
      bytes data = 3;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public ExternalTable.Builder clearData()
       Data to insert to the external table.
       If a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used,
       then data for insertion to the same external table can be split between multiple QueryInfos.
       
      bytes data = 3;
      Returns:
      This builder for chaining.
    • getFormat

      public String getFormat()
       Format of the data to insert to the external table.
       
      string format = 4;
      Specified by:
      getFormat in interface ExternalTableOrBuilder
      Returns:
      The format.
    • getFormatBytes

      public com.google.protobuf.ByteString getFormatBytes()
       Format of the data to insert to the external table.
       
      string format = 4;
      Specified by:
      getFormatBytes in interface ExternalTableOrBuilder
      Returns:
      The bytes for format.
    • setFormat

      public ExternalTable.Builder setFormat(String value)
       Format of the data to insert to the external table.
       
      string format = 4;
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public ExternalTable.Builder clearFormat()
       Format of the data to insert to the external table.
       
      string format = 4;
      Returns:
      This builder for chaining.
    • setFormatBytes

      public ExternalTable.Builder setFormatBytes(com.google.protobuf.ByteString value)
       Format of the data to insert to the external table.
       
      string format = 4;
      Parameters:
      value - The bytes for format to set.
      Returns:
      This builder for chaining.
    • getCompressionType

      public String getCompressionType()
       Compression type used to compress `data`.
       Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
       
      string compression_type = 6;
      Specified by:
      getCompressionType in interface ExternalTableOrBuilder
      Returns:
      The compressionType.
    • getCompressionTypeBytes

      public com.google.protobuf.ByteString getCompressionTypeBytes()
       Compression type used to compress `data`.
       Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
       
      string compression_type = 6;
      Specified by:
      getCompressionTypeBytes in interface ExternalTableOrBuilder
      Returns:
      The bytes for compressionType.
    • setCompressionType

      public ExternalTable.Builder setCompressionType(String value)
       Compression type used to compress `data`.
       Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
       
      string compression_type = 6;
      Parameters:
      value - The compressionType to set.
      Returns:
      This builder for chaining.
    • clearCompressionType

      public ExternalTable.Builder clearCompressionType()
       Compression type used to compress `data`.
       Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
       
      string compression_type = 6;
      Returns:
      This builder for chaining.
    • setCompressionTypeBytes

      public ExternalTable.Builder setCompressionTypeBytes(com.google.protobuf.ByteString value)
       Compression type used to compress `data`.
       Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
       
      string compression_type = 6;
      Parameters:
      value - The bytes for compressionType to set.
      Returns:
      This builder for chaining.
    • getSettingsCount

      public int getSettingsCount()
      Description copied from interface: ExternalTableOrBuilder
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
      Specified by:
      getSettingsCount in interface ExternalTableOrBuilder
    • containsSettings

      public boolean containsSettings(String key)
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
      Specified by:
      containsSettings in interface ExternalTableOrBuilder
    • getSettings

      @Deprecated public Map<String,String> getSettings()
      Deprecated.
      Use getSettingsMap() instead.
      Specified by:
      getSettings in interface ExternalTableOrBuilder
    • getSettingsMap

      public Map<String,String> getSettingsMap()
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
      Specified by:
      getSettingsMap in interface ExternalTableOrBuilder
    • getSettingsOrDefault

      public String getSettingsOrDefault(String key, String defaultValue)
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
      Specified by:
      getSettingsOrDefault in interface ExternalTableOrBuilder
    • getSettingsOrThrow

      public String getSettingsOrThrow(String key)
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
      Specified by:
      getSettingsOrThrow in interface ExternalTableOrBuilder
    • clearSettings

      public ExternalTable.Builder clearSettings()
    • removeSettings

      public ExternalTable.Builder removeSettings(String key)
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
    • getMutableSettings

      @Deprecated public Map<String,String> getMutableSettings()
      Deprecated.
      Use alternate mutation accessors instead.
    • putSettings

      public ExternalTable.Builder putSettings(String key, String value)
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
    • putAllSettings

      public ExternalTable.Builder putAllSettings(Map<String,String> values)
       Settings for executing that insertion, applied after QueryInfo.settings.
       
      map<string, string> settings = 5;
    • setUnknownFields

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

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