Class Result.Builder

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

public static final class Result.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Result.Builder> implements ResultOrBuilder
 Result of execution of a query which is sent back by the ClickHouse server to the client.
 
Protobuf type clickhouse.grpc.Result
  • 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<Result.Builder>
    • clear

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

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

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

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

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

      public Result.Builder mergeFrom(Result other)
    • isInitialized

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

      public Result.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<Result.Builder>
      Throws:
      IOException
    • getQueryId

      public String getQueryId()
      string query_id = 9;
      Specified by:
      getQueryId in interface ResultOrBuilder
      Returns:
      The queryId.
    • getQueryIdBytes

      public com.google.protobuf.ByteString getQueryIdBytes()
      string query_id = 9;
      Specified by:
      getQueryIdBytes in interface ResultOrBuilder
      Returns:
      The bytes for queryId.
    • setQueryId

      public Result.Builder setQueryId(String value)
      string query_id = 9;
      Parameters:
      value - The queryId to set.
      Returns:
      This builder for chaining.
    • clearQueryId

      public Result.Builder clearQueryId()
      string query_id = 9;
      Returns:
      This builder for chaining.
    • setQueryIdBytes

      public Result.Builder setQueryIdBytes(com.google.protobuf.ByteString value)
      string query_id = 9;
      Parameters:
      value - The bytes for queryId to set.
      Returns:
      This builder for chaining.
    • getTimeZone

      public String getTimeZone()
      string time_zone = 10;
      Specified by:
      getTimeZone in interface ResultOrBuilder
      Returns:
      The timeZone.
    • getTimeZoneBytes

      public com.google.protobuf.ByteString getTimeZoneBytes()
      string time_zone = 10;
      Specified by:
      getTimeZoneBytes in interface ResultOrBuilder
      Returns:
      The bytes for timeZone.
    • setTimeZone

      public Result.Builder setTimeZone(String value)
      string time_zone = 10;
      Parameters:
      value - The timeZone to set.
      Returns:
      This builder for chaining.
    • clearTimeZone

      public Result.Builder clearTimeZone()
      string time_zone = 10;
      Returns:
      This builder for chaining.
    • setTimeZoneBytes

      public Result.Builder setTimeZoneBytes(com.google.protobuf.ByteString value)
      string time_zone = 10;
      Parameters:
      value - The bytes for timeZone to set.
      Returns:
      This builder for chaining.
    • getOutputFormat

      public String getOutputFormat()
       The format in which `output`, `totals` and `extremes` are written.
       It's either the same as `output_format` specified in `QueryInfo` or the format specified in the query itself.
       
      string output_format = 11;
      Specified by:
      getOutputFormat in interface ResultOrBuilder
      Returns:
      The outputFormat.
    • getOutputFormatBytes

      public com.google.protobuf.ByteString getOutputFormatBytes()
       The format in which `output`, `totals` and `extremes` are written.
       It's either the same as `output_format` specified in `QueryInfo` or the format specified in the query itself.
       
      string output_format = 11;
      Specified by:
      getOutputFormatBytes in interface ResultOrBuilder
      Returns:
      The bytes for outputFormat.
    • setOutputFormat

      public Result.Builder setOutputFormat(String value)
       The format in which `output`, `totals` and `extremes` are written.
       It's either the same as `output_format` specified in `QueryInfo` or the format specified in the query itself.
       
      string output_format = 11;
      Parameters:
      value - The outputFormat to set.
      Returns:
      This builder for chaining.
    • clearOutputFormat

      public Result.Builder clearOutputFormat()
       The format in which `output`, `totals` and `extremes` are written.
       It's either the same as `output_format` specified in `QueryInfo` or the format specified in the query itself.
       
      string output_format = 11;
      Returns:
      This builder for chaining.
    • setOutputFormatBytes

      public Result.Builder setOutputFormatBytes(com.google.protobuf.ByteString value)
       The format in which `output`, `totals` and `extremes` are written.
       It's either the same as `output_format` specified in `QueryInfo` or the format specified in the query itself.
       
      string output_format = 11;
      Parameters:
      value - The bytes for outputFormat to set.
      Returns:
      This builder for chaining.
    • getOutputColumnsList

      public List<NameAndType> getOutputColumnsList()
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
      Specified by:
      getOutputColumnsList in interface ResultOrBuilder
    • getOutputColumnsCount

      public int getOutputColumnsCount()
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
      Specified by:
      getOutputColumnsCount in interface ResultOrBuilder
    • getOutputColumns

      public NameAndType getOutputColumns(int index)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
      Specified by:
      getOutputColumns in interface ResultOrBuilder
    • setOutputColumns

      public Result.Builder setOutputColumns(int index, NameAndType value)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • setOutputColumns

      public Result.Builder setOutputColumns(int index, NameAndType.Builder builderForValue)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • addOutputColumns

      public Result.Builder addOutputColumns(NameAndType value)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • addOutputColumns

      public Result.Builder addOutputColumns(int index, NameAndType value)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • addOutputColumns

      public Result.Builder addOutputColumns(NameAndType.Builder builderForValue)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • addOutputColumns

      public Result.Builder addOutputColumns(int index, NameAndType.Builder builderForValue)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • addAllOutputColumns

      public Result.Builder addAllOutputColumns(Iterable<? extends NameAndType> values)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • clearOutputColumns

      public Result.Builder clearOutputColumns()
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • removeOutputColumns

      public Result.Builder removeOutputColumns(int index)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • getOutputColumnsBuilder

      public NameAndType.Builder getOutputColumnsBuilder(int index)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • getOutputColumnsOrBuilder

      public NameAndTypeOrBuilder getOutputColumnsOrBuilder(int index)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
      Specified by:
      getOutputColumnsOrBuilder in interface ResultOrBuilder
    • getOutputColumnsOrBuilderList

      public List<? extends NameAndTypeOrBuilder> getOutputColumnsOrBuilderList()
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
      Specified by:
      getOutputColumnsOrBuilderList in interface ResultOrBuilder
    • addOutputColumnsBuilder

      public NameAndType.Builder addOutputColumnsBuilder()
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • addOutputColumnsBuilder

      public NameAndType.Builder addOutputColumnsBuilder(int index)
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • getOutputColumnsBuilderList

      public List<NameAndType.Builder> getOutputColumnsBuilderList()
       The names and types of columns of the result written in `output`.
       
      repeated .clickhouse.grpc.NameAndType output_columns = 12;
    • getOutput

      public com.google.protobuf.ByteString getOutput()
       Output of the query, represented in the `output_format`.
       
      bytes output = 1;
      Specified by:
      getOutput in interface ResultOrBuilder
      Returns:
      The output.
    • setOutput

      public Result.Builder setOutput(com.google.protobuf.ByteString value)
       Output of the query, represented in the `output_format`.
       
      bytes output = 1;
      Parameters:
      value - The output to set.
      Returns:
      This builder for chaining.
    • clearOutput

      public Result.Builder clearOutput()
       Output of the query, represented in the `output_format`.
       
      bytes output = 1;
      Returns:
      This builder for chaining.
    • getTotals

      public com.google.protobuf.ByteString getTotals()
      bytes totals = 2;
      Specified by:
      getTotals in interface ResultOrBuilder
      Returns:
      The totals.
    • setTotals

      public Result.Builder setTotals(com.google.protobuf.ByteString value)
      bytes totals = 2;
      Parameters:
      value - The totals to set.
      Returns:
      This builder for chaining.
    • clearTotals

      public Result.Builder clearTotals()
      bytes totals = 2;
      Returns:
      This builder for chaining.
    • getExtremes

      public com.google.protobuf.ByteString getExtremes()
      bytes extremes = 3;
      Specified by:
      getExtremes in interface ResultOrBuilder
      Returns:
      The extremes.
    • setExtremes

      public Result.Builder setExtremes(com.google.protobuf.ByteString value)
      bytes extremes = 3;
      Parameters:
      value - The extremes to set.
      Returns:
      This builder for chaining.
    • clearExtremes

      public Result.Builder clearExtremes()
      bytes extremes = 3;
      Returns:
      This builder for chaining.
    • getLogsList

      public List<LogEntry> getLogsList()
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsList in interface ResultOrBuilder
    • getLogsCount

      public int getLogsCount()
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsCount in interface ResultOrBuilder
    • getLogs

      public LogEntry getLogs(int index)
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogs in interface ResultOrBuilder
    • setLogs

      public Result.Builder setLogs(int index, LogEntry value)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • setLogs

      public Result.Builder setLogs(int index, LogEntry.Builder builderForValue)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • addLogs

      public Result.Builder addLogs(LogEntry value)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • addLogs

      public Result.Builder addLogs(int index, LogEntry value)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • addLogs

      public Result.Builder addLogs(LogEntry.Builder builderForValue)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • addLogs

      public Result.Builder addLogs(int index, LogEntry.Builder builderForValue)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • addAllLogs

      public Result.Builder addAllLogs(Iterable<? extends LogEntry> values)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • clearLogs

      public Result.Builder clearLogs()
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • removeLogs

      public Result.Builder removeLogs(int index)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • getLogsBuilder

      public LogEntry.Builder getLogsBuilder(int index)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • getLogsOrBuilder

      public LogEntryOrBuilder getLogsOrBuilder(int index)
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsOrBuilder in interface ResultOrBuilder
    • getLogsOrBuilderList

      public List<? extends LogEntryOrBuilder> getLogsOrBuilderList()
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsOrBuilderList in interface ResultOrBuilder
    • addLogsBuilder

      public LogEntry.Builder addLogsBuilder()
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • addLogsBuilder

      public LogEntry.Builder addLogsBuilder(int index)
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • getLogsBuilderList

      public List<LogEntry.Builder> getLogsBuilderList()
      repeated .clickhouse.grpc.LogEntry logs = 4;
    • hasProgress

      public boolean hasProgress()
      .clickhouse.grpc.Progress progress = 5;
      Specified by:
      hasProgress in interface ResultOrBuilder
      Returns:
      Whether the progress field is set.
    • getProgress

      public Progress getProgress()
      .clickhouse.grpc.Progress progress = 5;
      Specified by:
      getProgress in interface ResultOrBuilder
      Returns:
      The progress.
    • setProgress

      public Result.Builder setProgress(Progress value)
      .clickhouse.grpc.Progress progress = 5;
    • setProgress

      public Result.Builder setProgress(Progress.Builder builderForValue)
      .clickhouse.grpc.Progress progress = 5;
    • mergeProgress

      public Result.Builder mergeProgress(Progress value)
      .clickhouse.grpc.Progress progress = 5;
    • clearProgress

      public Result.Builder clearProgress()
      .clickhouse.grpc.Progress progress = 5;
    • getProgressBuilder

      public Progress.Builder getProgressBuilder()
      .clickhouse.grpc.Progress progress = 5;
    • getProgressOrBuilder

      public ProgressOrBuilder getProgressOrBuilder()
      .clickhouse.grpc.Progress progress = 5;
      Specified by:
      getProgressOrBuilder in interface ResultOrBuilder
    • hasStats

      public boolean hasStats()
      .clickhouse.grpc.Stats stats = 6;
      Specified by:
      hasStats in interface ResultOrBuilder
      Returns:
      Whether the stats field is set.
    • getStats

      public Stats getStats()
      .clickhouse.grpc.Stats stats = 6;
      Specified by:
      getStats in interface ResultOrBuilder
      Returns:
      The stats.
    • setStats

      public Result.Builder setStats(Stats value)
      .clickhouse.grpc.Stats stats = 6;
    • setStats

      public Result.Builder setStats(Stats.Builder builderForValue)
      .clickhouse.grpc.Stats stats = 6;
    • mergeStats

      public Result.Builder mergeStats(Stats value)
      .clickhouse.grpc.Stats stats = 6;
    • clearStats

      public Result.Builder clearStats()
      .clickhouse.grpc.Stats stats = 6;
    • getStatsBuilder

      public Stats.Builder getStatsBuilder()
      .clickhouse.grpc.Stats stats = 6;
    • getStatsOrBuilder

      public StatsOrBuilder getStatsOrBuilder()
      .clickhouse.grpc.Stats stats = 6;
      Specified by:
      getStatsOrBuilder in interface ResultOrBuilder
    • hasException

      public boolean hasException()
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
      Specified by:
      hasException in interface ResultOrBuilder
      Returns:
      Whether the exception field is set.
    • getException

      public Exception getException()
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
      Specified by:
      getException in interface ResultOrBuilder
      Returns:
      The exception.
    • setException

      public Result.Builder setException(Exception value)
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
    • setException

      public Result.Builder setException(Exception.Builder builderForValue)
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
    • mergeException

      public Result.Builder mergeException(Exception value)
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
    • clearException

      public Result.Builder clearException()
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
    • getExceptionBuilder

      public Exception.Builder getExceptionBuilder()
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
    • getExceptionOrBuilder

      public ExceptionOrBuilder getExceptionOrBuilder()
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
      Specified by:
      getExceptionOrBuilder in interface ResultOrBuilder
    • getCancelled

      public boolean getCancelled()
       Set by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.
       
      bool cancelled = 8;
      Specified by:
      getCancelled in interface ResultOrBuilder
      Returns:
      The cancelled.
    • setCancelled

      public Result.Builder setCancelled(boolean value)
       Set by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.
       
      bool cancelled = 8;
      Parameters:
      value - The cancelled to set.
      Returns:
      This builder for chaining.
    • clearCancelled

      public Result.Builder clearCancelled()
       Set by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.
       
      bool cancelled = 8;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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