Package com.clickhouse.client.grpc.impl
Class QueryInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
- com.clickhouse.client.grpc.impl.QueryInfo.Builder
-
- All Implemented Interfaces:
QueryInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueryInfo
public static final class QueryInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder> implements QueryInfoOrBuilder
Information about a query which a client sends to a ClickHouse server. The first QueryInfo can set any of the following fields. Extra QueryInfos only add extra data. In extra QueryInfos only `input_data`, `external_tables`, `next_query_info` and `cancel` fields can be set.
Protobuf typeclickhouse.grpc.QueryInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description QueryInfo.BuilderaddAllExternalTables(Iterable<? extends ExternalTable> values)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuilderaddExternalTables(int index, ExternalTable value)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuilderaddExternalTables(int index, ExternalTable.Builder builderForValue)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuilderaddExternalTables(ExternalTable value)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuilderaddExternalTables(ExternalTable.Builder builderForValue)repeated .clickhouse.grpc.ExternalTable external_tables = 8;ExternalTable.BuilderaddExternalTablesBuilder()repeated .clickhouse.grpc.ExternalTable external_tables = 8;ExternalTable.BuilderaddExternalTablesBuilder(int index)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueryInfobuild()QueryInfobuildPartial()QueryInfo.Builderclear()QueryInfo.BuilderclearCancel()Set `cancel` to true to stop executing the query.QueryInfo.BuilderclearDatabase()Default database.QueryInfo.BuilderclearExternalTables()repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)QueryInfo.BuilderclearInputData()Input data, used both as data for INSERT query and as data for the input() function.QueryInfo.BuilderclearInputDataDelimiter()Delimiter for input_data, inserted between input_data from adjacent QueryInfos.QueryInfo.BuilderclearNextQueryInfo()If true there will be at least one more QueryInfo in the input stream.QueryInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)QueryInfo.BuilderclearOutputFormat()Default output format.QueryInfo.BuilderclearPassword()string password = 10;QueryInfo.BuilderclearQuery()string query = 1;QueryInfo.BuilderclearQueryId()string query_id = 2;QueryInfo.BuilderclearQuota()string quota = 11;QueryInfo.BuilderclearResultCompression()/ Controls how a ClickHouse server will compress query execution results before sending back to the client.QueryInfo.BuilderclearSessionCheck()bool session_check = 13;QueryInfo.BuilderclearSessionId()Works exactly like sessions in the HTTP protocol.QueryInfo.BuilderclearSessionTimeout()uint32 session_timeout = 14;QueryInfo.BuilderclearSettings()QueryInfo.BuilderclearUserName()string user_name = 9;QueryInfo.Builderclone()booleancontainsSettings(String key)map<string, string> settings = 3;booleangetCancel()Set `cancel` to true to stop executing the query.StringgetDatabase()Default database.com.google.protobuf.ByteStringgetDatabaseBytes()Default database.QueryInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ExternalTablegetExternalTables(int index)repeated .clickhouse.grpc.ExternalTable external_tables = 8;ExternalTable.BuildergetExternalTablesBuilder(int index)repeated .clickhouse.grpc.ExternalTable external_tables = 8;List<ExternalTable.Builder>getExternalTablesBuilderList()repeated .clickhouse.grpc.ExternalTable external_tables = 8;intgetExternalTablesCount()repeated .clickhouse.grpc.ExternalTable external_tables = 8;List<ExternalTable>getExternalTablesList()repeated .clickhouse.grpc.ExternalTable external_tables = 8;ExternalTableOrBuildergetExternalTablesOrBuilder(int index)repeated .clickhouse.grpc.ExternalTable external_tables = 8;List<? extends ExternalTableOrBuilder>getExternalTablesOrBuilderList()repeated .clickhouse.grpc.ExternalTable external_tables = 8;com.google.protobuf.ByteStringgetInputData()Input data, used both as data for INSERT query and as data for the input() function.com.google.protobuf.ByteStringgetInputDataDelimiter()Delimiter for input_data, inserted between input_data from adjacent QueryInfos.Map<String,String>getMutableSettings()Deprecated.booleangetNextQueryInfo()If true there will be at least one more QueryInfo in the input stream.StringgetOutputFormat()Default output format.com.google.protobuf.ByteStringgetOutputFormatBytes()Default output format.StringgetPassword()string password = 10;com.google.protobuf.ByteStringgetPasswordBytes()string password = 10;StringgetQuery()string query = 1;com.google.protobuf.ByteStringgetQueryBytes()string query = 1;StringgetQueryId()string query_id = 2;com.google.protobuf.ByteStringgetQueryIdBytes()string query_id = 2;StringgetQuota()string quota = 11;com.google.protobuf.ByteStringgetQuotaBytes()string quota = 11;CompressiongetResultCompression()/ Controls how a ClickHouse server will compress query execution results before sending back to the client.Compression.BuildergetResultCompressionBuilder()/ Controls how a ClickHouse server will compress query execution results before sending back to the client.CompressionOrBuildergetResultCompressionOrBuilder()/ Controls how a ClickHouse server will compress query execution results before sending back to the client.booleangetSessionCheck()bool session_check = 13;StringgetSessionId()Works exactly like sessions in the HTTP protocol.com.google.protobuf.ByteStringgetSessionIdBytes()Works exactly like sessions in the HTTP protocol.intgetSessionTimeout()uint32 session_timeout = 14;Map<String,String>getSettings()Deprecated.intgetSettingsCount()map<string, string> settings = 3;Map<String,String>getSettingsMap()map<string, string> settings = 3;StringgetSettingsOrDefault(String key, String defaultValue)map<string, string> settings = 3;StringgetSettingsOrThrow(String key)map<string, string> settings = 3;StringgetUserName()string user_name = 9;com.google.protobuf.ByteStringgetUserNameBytes()string user_name = 9;booleanhasResultCompression()/ Controls how a ClickHouse server will compress query execution results before sending back to the client.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()QueryInfo.BuildermergeFrom(QueryInfo other)QueryInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)QueryInfo.BuildermergeFrom(com.google.protobuf.Message other)QueryInfo.BuildermergeResultCompression(Compression value)/ Controls how a ClickHouse server will compress query execution results before sending back to the client.QueryInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QueryInfo.BuilderputAllSettings(Map<String,String> values)map<string, string> settings = 3;QueryInfo.BuilderputSettings(String key, String value)map<string, string> settings = 3;QueryInfo.BuilderremoveExternalTables(int index)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuilderremoveSettings(String key)map<string, string> settings = 3;QueryInfo.BuildersetCancel(boolean value)Set `cancel` to true to stop executing the query.QueryInfo.BuildersetDatabase(String value)Default database.QueryInfo.BuildersetDatabaseBytes(com.google.protobuf.ByteString value)Default database.QueryInfo.BuildersetExternalTables(int index, ExternalTable value)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuildersetExternalTables(int index, ExternalTable.Builder builderForValue)repeated .clickhouse.grpc.ExternalTable external_tables = 8;QueryInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueryInfo.BuildersetInputData(com.google.protobuf.ByteString value)Input data, used both as data for INSERT query and as data for the input() function.QueryInfo.BuildersetInputDataDelimiter(com.google.protobuf.ByteString value)Delimiter for input_data, inserted between input_data from adjacent QueryInfos.QueryInfo.BuildersetNextQueryInfo(boolean value)If true there will be at least one more QueryInfo in the input stream.QueryInfo.BuildersetOutputFormat(String value)Default output format.QueryInfo.BuildersetOutputFormatBytes(com.google.protobuf.ByteString value)Default output format.QueryInfo.BuildersetPassword(String value)string password = 10;QueryInfo.BuildersetPasswordBytes(com.google.protobuf.ByteString value)string password = 10;QueryInfo.BuildersetQuery(String value)string query = 1;QueryInfo.BuildersetQueryBytes(com.google.protobuf.ByteString value)string query = 1;QueryInfo.BuildersetQueryId(String value)string query_id = 2;QueryInfo.BuildersetQueryIdBytes(com.google.protobuf.ByteString value)string query_id = 2;QueryInfo.BuildersetQuota(String value)string quota = 11;QueryInfo.BuildersetQuotaBytes(com.google.protobuf.ByteString value)string quota = 11;QueryInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)QueryInfo.BuildersetResultCompression(Compression value)/ Controls how a ClickHouse server will compress query execution results before sending back to the client.QueryInfo.BuildersetResultCompression(Compression.Builder builderForValue)/ Controls how a ClickHouse server will compress query execution results before sending back to the client.QueryInfo.BuildersetSessionCheck(boolean value)bool session_check = 13;QueryInfo.BuildersetSessionId(String value)Works exactly like sessions in the HTTP protocol.QueryInfo.BuildersetSessionIdBytes(com.google.protobuf.ByteString value)Works exactly like sessions in the HTTP protocol.QueryInfo.BuildersetSessionTimeout(int value)uint32 session_timeout = 14;QueryInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QueryInfo.BuildersetUserName(String value)string user_name = 9;QueryInfo.BuildersetUserNameBytes(com.google.protobuf.ByteString value)string user_name = 9;-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
clear
public QueryInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
getDefaultInstanceForType
public QueryInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public QueryInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QueryInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QueryInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
setField
public QueryInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
clearField
public QueryInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
clearOneof
public QueryInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
setRepeatedField
public QueryInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
addRepeatedField
public QueryInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
mergeFrom
public QueryInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryInfo.Builder>
-
mergeFrom
public QueryInfo.Builder mergeFrom(QueryInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
mergeFrom
public QueryInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryInfo.Builder>- Throws:
IOException
-
getQuery
public String getQuery()
string query = 1;- Specified by:
getQueryin interfaceQueryInfoOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()
string query = 1;- Specified by:
getQueryBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for query.
-
setQuery
public QueryInfo.Builder setQuery(String value)
string query = 1;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
public QueryInfo.Builder clearQuery()
string query = 1;- Returns:
- This builder for chaining.
-
setQueryBytes
public QueryInfo.Builder setQueryBytes(com.google.protobuf.ByteString value)
string query = 1;- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
getQueryId
public String getQueryId()
string query_id = 2;- Specified by:
getQueryIdin interfaceQueryInfoOrBuilder- Returns:
- The queryId.
-
getQueryIdBytes
public com.google.protobuf.ByteString getQueryIdBytes()
string query_id = 2;- Specified by:
getQueryIdBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for queryId.
-
setQueryId
public QueryInfo.Builder setQueryId(String value)
string query_id = 2;- Parameters:
value- The queryId to set.- Returns:
- This builder for chaining.
-
clearQueryId
public QueryInfo.Builder clearQueryId()
string query_id = 2;- Returns:
- This builder for chaining.
-
setQueryIdBytes
public QueryInfo.Builder setQueryIdBytes(com.google.protobuf.ByteString value)
string query_id = 2;- Parameters:
value- The bytes for queryId to set.- Returns:
- This builder for chaining.
-
getSettingsCount
public int getSettingsCount()
Description copied from interface:QueryInfoOrBuildermap<string, string> settings = 3;- Specified by:
getSettingsCountin interfaceQueryInfoOrBuilder
-
containsSettings
public boolean containsSettings(String key)
map<string, string> settings = 3;- Specified by:
containsSettingsin interfaceQueryInfoOrBuilder
-
getSettings
@Deprecated public Map<String,String> getSettings()
Deprecated.UsegetSettingsMap()instead.- Specified by:
getSettingsin interfaceQueryInfoOrBuilder
-
getSettingsMap
public Map<String,String> getSettingsMap()
map<string, string> settings = 3;- Specified by:
getSettingsMapin interfaceQueryInfoOrBuilder
-
getSettingsOrDefault
public String getSettingsOrDefault(String key, String defaultValue)
map<string, string> settings = 3;- Specified by:
getSettingsOrDefaultin interfaceQueryInfoOrBuilder
-
getSettingsOrThrow
public String getSettingsOrThrow(String key)
map<string, string> settings = 3;- Specified by:
getSettingsOrThrowin interfaceQueryInfoOrBuilder
-
clearSettings
public QueryInfo.Builder clearSettings()
-
removeSettings
public QueryInfo.Builder removeSettings(String key)
map<string, string> settings = 3;
-
getMutableSettings
@Deprecated public Map<String,String> getMutableSettings()
Deprecated.Use alternate mutation accessors instead.
-
putSettings
public QueryInfo.Builder putSettings(String key, String value)
map<string, string> settings = 3;
-
putAllSettings
public QueryInfo.Builder putAllSettings(Map<String,String> values)
map<string, string> settings = 3;
-
getDatabase
public String getDatabase()
Default database.
string database = 4;- Specified by:
getDatabasein interfaceQueryInfoOrBuilder- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.ByteString getDatabaseBytes()
Default database.
string database = 4;- Specified by:
getDatabaseBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for database.
-
setDatabase
public QueryInfo.Builder setDatabase(String value)
Default database.
string database = 4;- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
clearDatabase
public QueryInfo.Builder clearDatabase()
Default database.
string database = 4;- Returns:
- This builder for chaining.
-
setDatabaseBytes
public QueryInfo.Builder setDatabaseBytes(com.google.protobuf.ByteString value)
Default database.
string database = 4;- Parameters:
value- The bytes for database to set.- Returns:
- This builder for chaining.
-
getInputData
public com.google.protobuf.ByteString getInputData()
Input data, used both as data for INSERT query and as data for the input() function.
bytes input_data = 5;- Specified by:
getInputDatain interfaceQueryInfoOrBuilder- Returns:
- The inputData.
-
setInputData
public QueryInfo.Builder setInputData(com.google.protobuf.ByteString value)
Input data, used both as data for INSERT query and as data for the input() function.
bytes input_data = 5;- Parameters:
value- The inputData to set.- Returns:
- This builder for chaining.
-
clearInputData
public QueryInfo.Builder clearInputData()
Input data, used both as data for INSERT query and as data for the input() function.
bytes input_data = 5;- Returns:
- This builder for chaining.
-
getInputDataDelimiter
public com.google.protobuf.ByteString getInputDataDelimiter()
Delimiter for input_data, inserted between input_data from adjacent QueryInfos.
bytes input_data_delimiter = 6;- Specified by:
getInputDataDelimiterin interfaceQueryInfoOrBuilder- Returns:
- The inputDataDelimiter.
-
setInputDataDelimiter
public QueryInfo.Builder setInputDataDelimiter(com.google.protobuf.ByteString value)
Delimiter for input_data, inserted between input_data from adjacent QueryInfos.
bytes input_data_delimiter = 6;- Parameters:
value- The inputDataDelimiter to set.- Returns:
- This builder for chaining.
-
clearInputDataDelimiter
public QueryInfo.Builder clearInputDataDelimiter()
Delimiter for input_data, inserted between input_data from adjacent QueryInfos.
bytes input_data_delimiter = 6;- Returns:
- This builder for chaining.
-
getOutputFormat
public String getOutputFormat()
Default output format. If not specified, 'TabSeparated' is used.
string output_format = 7;- Specified by:
getOutputFormatin interfaceQueryInfoOrBuilder- Returns:
- The outputFormat.
-
getOutputFormatBytes
public com.google.protobuf.ByteString getOutputFormatBytes()
Default output format. If not specified, 'TabSeparated' is used.
string output_format = 7;- Specified by:
getOutputFormatBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for outputFormat.
-
setOutputFormat
public QueryInfo.Builder setOutputFormat(String value)
Default output format. If not specified, 'TabSeparated' is used.
string output_format = 7;- Parameters:
value- The outputFormat to set.- Returns:
- This builder for chaining.
-
clearOutputFormat
public QueryInfo.Builder clearOutputFormat()
Default output format. If not specified, 'TabSeparated' is used.
string output_format = 7;- Returns:
- This builder for chaining.
-
setOutputFormatBytes
public QueryInfo.Builder setOutputFormatBytes(com.google.protobuf.ByteString value)
Default output format. If not specified, 'TabSeparated' is used.
string output_format = 7;- Parameters:
value- The bytes for outputFormat to set.- Returns:
- This builder for chaining.
-
getExternalTablesList
public List<ExternalTable> getExternalTablesList()
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesListin interfaceQueryInfoOrBuilder
-
getExternalTablesCount
public int getExternalTablesCount()
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesCountin interfaceQueryInfoOrBuilder
-
getExternalTables
public ExternalTable getExternalTables(int index)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesin interfaceQueryInfoOrBuilder
-
setExternalTables
public QueryInfo.Builder setExternalTables(int index, ExternalTable value)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
setExternalTables
public QueryInfo.Builder setExternalTables(int index, ExternalTable.Builder builderForValue)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
addExternalTables
public QueryInfo.Builder addExternalTables(ExternalTable value)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
addExternalTables
public QueryInfo.Builder addExternalTables(int index, ExternalTable value)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
addExternalTables
public QueryInfo.Builder addExternalTables(ExternalTable.Builder builderForValue)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
addExternalTables
public QueryInfo.Builder addExternalTables(int index, ExternalTable.Builder builderForValue)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
addAllExternalTables
public QueryInfo.Builder addAllExternalTables(Iterable<? extends ExternalTable> values)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
clearExternalTables
public QueryInfo.Builder clearExternalTables()
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
removeExternalTables
public QueryInfo.Builder removeExternalTables(int index)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
getExternalTablesBuilder
public ExternalTable.Builder getExternalTablesBuilder(int index)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
getExternalTablesOrBuilder
public ExternalTableOrBuilder getExternalTablesOrBuilder(int index)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesOrBuilderin interfaceQueryInfoOrBuilder
-
getExternalTablesOrBuilderList
public List<? extends ExternalTableOrBuilder> getExternalTablesOrBuilderList()
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesOrBuilderListin interfaceQueryInfoOrBuilder
-
addExternalTablesBuilder
public ExternalTable.Builder addExternalTablesBuilder()
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
addExternalTablesBuilder
public ExternalTable.Builder addExternalTablesBuilder(int index)
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
getExternalTablesBuilderList
public List<ExternalTable.Builder> getExternalTablesBuilderList()
repeated .clickhouse.grpc.ExternalTable external_tables = 8;
-
getUserName
public String getUserName()
string user_name = 9;- Specified by:
getUserNamein interfaceQueryInfoOrBuilder- Returns:
- The userName.
-
getUserNameBytes
public com.google.protobuf.ByteString getUserNameBytes()
string user_name = 9;- Specified by:
getUserNameBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for userName.
-
setUserName
public QueryInfo.Builder setUserName(String value)
string user_name = 9;- Parameters:
value- The userName to set.- Returns:
- This builder for chaining.
-
clearUserName
public QueryInfo.Builder clearUserName()
string user_name = 9;- Returns:
- This builder for chaining.
-
setUserNameBytes
public QueryInfo.Builder setUserNameBytes(com.google.protobuf.ByteString value)
string user_name = 9;- Parameters:
value- The bytes for userName to set.- Returns:
- This builder for chaining.
-
getPassword
public String getPassword()
string password = 10;- Specified by:
getPasswordin interfaceQueryInfoOrBuilder- Returns:
- The password.
-
getPasswordBytes
public com.google.protobuf.ByteString getPasswordBytes()
string password = 10;- Specified by:
getPasswordBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for password.
-
setPassword
public QueryInfo.Builder setPassword(String value)
string password = 10;- Parameters:
value- The password to set.- Returns:
- This builder for chaining.
-
clearPassword
public QueryInfo.Builder clearPassword()
string password = 10;- Returns:
- This builder for chaining.
-
setPasswordBytes
public QueryInfo.Builder setPasswordBytes(com.google.protobuf.ByteString value)
string password = 10;- Parameters:
value- The bytes for password to set.- Returns:
- This builder for chaining.
-
getQuota
public String getQuota()
string quota = 11;- Specified by:
getQuotain interfaceQueryInfoOrBuilder- Returns:
- The quota.
-
getQuotaBytes
public com.google.protobuf.ByteString getQuotaBytes()
string quota = 11;- Specified by:
getQuotaBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for quota.
-
setQuota
public QueryInfo.Builder setQuota(String value)
string quota = 11;- Parameters:
value- The quota to set.- Returns:
- This builder for chaining.
-
clearQuota
public QueryInfo.Builder clearQuota()
string quota = 11;- Returns:
- This builder for chaining.
-
setQuotaBytes
public QueryInfo.Builder setQuotaBytes(com.google.protobuf.ByteString value)
string quota = 11;- Parameters:
value- The bytes for quota to set.- Returns:
- This builder for chaining.
-
getSessionId
public String getSessionId()
Works exactly like sessions in the HTTP protocol.
string session_id = 12;- Specified by:
getSessionIdin interfaceQueryInfoOrBuilder- Returns:
- The sessionId.
-
getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
Works exactly like sessions in the HTTP protocol.
string session_id = 12;- Specified by:
getSessionIdBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for sessionId.
-
setSessionId
public QueryInfo.Builder setSessionId(String value)
Works exactly like sessions in the HTTP protocol.
string session_id = 12;- Parameters:
value- The sessionId to set.- Returns:
- This builder for chaining.
-
clearSessionId
public QueryInfo.Builder clearSessionId()
Works exactly like sessions in the HTTP protocol.
string session_id = 12;- Returns:
- This builder for chaining.
-
setSessionIdBytes
public QueryInfo.Builder setSessionIdBytes(com.google.protobuf.ByteString value)
Works exactly like sessions in the HTTP protocol.
string session_id = 12;- Parameters:
value- The bytes for sessionId to set.- Returns:
- This builder for chaining.
-
getSessionCheck
public boolean getSessionCheck()
bool session_check = 13;- Specified by:
getSessionCheckin interfaceQueryInfoOrBuilder- Returns:
- The sessionCheck.
-
setSessionCheck
public QueryInfo.Builder setSessionCheck(boolean value)
bool session_check = 13;- Parameters:
value- The sessionCheck to set.- Returns:
- This builder for chaining.
-
clearSessionCheck
public QueryInfo.Builder clearSessionCheck()
bool session_check = 13;- Returns:
- This builder for chaining.
-
getSessionTimeout
public int getSessionTimeout()
uint32 session_timeout = 14;- Specified by:
getSessionTimeoutin interfaceQueryInfoOrBuilder- Returns:
- The sessionTimeout.
-
setSessionTimeout
public QueryInfo.Builder setSessionTimeout(int value)
uint32 session_timeout = 14;- Parameters:
value- The sessionTimeout to set.- Returns:
- This builder for chaining.
-
clearSessionTimeout
public QueryInfo.Builder clearSessionTimeout()
uint32 session_timeout = 14;- Returns:
- This builder for chaining.
-
getCancel
public boolean getCancel()
Set `cancel` to true to stop executing the query.
bool cancel = 15;- Specified by:
getCancelin interfaceQueryInfoOrBuilder- Returns:
- The cancel.
-
setCancel
public QueryInfo.Builder setCancel(boolean value)
Set `cancel` to true to stop executing the query.
bool cancel = 15;- Parameters:
value- The cancel to set.- Returns:
- This builder for chaining.
-
clearCancel
public QueryInfo.Builder clearCancel()
Set `cancel` to true to stop executing the query.
bool cancel = 15;- Returns:
- This builder for chaining.
-
getNextQueryInfo
public boolean getNextQueryInfo()
If true there will be at least one more QueryInfo in the input stream. `next_query_info` is allowed to be set only if a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used.
bool next_query_info = 16;- Specified by:
getNextQueryInfoin interfaceQueryInfoOrBuilder- Returns:
- The nextQueryInfo.
-
setNextQueryInfo
public QueryInfo.Builder setNextQueryInfo(boolean value)
If true there will be at least one more QueryInfo in the input stream. `next_query_info` is allowed to be set only if a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used.
bool next_query_info = 16;- Parameters:
value- The nextQueryInfo to set.- Returns:
- This builder for chaining.
-
clearNextQueryInfo
public QueryInfo.Builder clearNextQueryInfo()
If true there will be at least one more QueryInfo in the input stream. `next_query_info` is allowed to be set only if a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used.
bool next_query_info = 16;- Returns:
- This builder for chaining.
-
hasResultCompression
public boolean hasResultCompression()
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;- Specified by:
hasResultCompressionin interfaceQueryInfoOrBuilder- Returns:
- Whether the resultCompression field is set.
-
getResultCompression
public Compression getResultCompression()
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;- Specified by:
getResultCompressionin interfaceQueryInfoOrBuilder- Returns:
- The resultCompression.
-
setResultCompression
public QueryInfo.Builder setResultCompression(Compression value)
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;
-
setResultCompression
public QueryInfo.Builder setResultCompression(Compression.Builder builderForValue)
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;
-
mergeResultCompression
public QueryInfo.Builder mergeResultCompression(Compression value)
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;
-
clearResultCompression
public QueryInfo.Builder clearResultCompression()
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;
-
getResultCompressionBuilder
public Compression.Builder getResultCompressionBuilder()
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;
-
getResultCompressionOrBuilder
public CompressionOrBuilder getResultCompressionOrBuilder()
/ Controls how a ClickHouse server will compress query execution results before sending back to the client. / If not set the compression settings from the configuration file will be used.
.clickhouse.grpc.Compression result_compression = 17;- Specified by:
getResultCompressionOrBuilderin interfaceQueryInfoOrBuilder
-
setUnknownFields
public final QueryInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
mergeUnknownFields
public final QueryInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
-