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 type
clickhouse.grpc.QueryInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllExternalTables(Iterable<? extends ExternalTable> values) repeated .clickhouse.grpc.ExternalTable external_tables = 8;addExternalTables(int index, ExternalTable value) repeated .clickhouse.grpc.ExternalTable external_tables = 8;addExternalTables(int index, ExternalTable.Builder builderForValue) repeated .clickhouse.grpc.ExternalTable external_tables = 8;addExternalTables(ExternalTable value) repeated .clickhouse.grpc.ExternalTable external_tables = 8;addExternalTables(ExternalTable.Builder builderForValue) repeated .clickhouse.grpc.ExternalTable external_tables = 8;repeated .clickhouse.grpc.ExternalTable external_tables = 8;addExternalTablesBuilder(int index) repeated .clickhouse.grpc.ExternalTable external_tables = 8;addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Set `cancel` to true to stop executing the query.Default database.repeated .clickhouse.grpc.ExternalTable external_tables = 8;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Compression type for `input_data`.Input data, used both as data for INSERT query and as data for the input() function.Delimiter for input_data, inserted between input_data from adjacent QueryInfos.If true there will be at least one more QueryInfo in the input stream.string obsolete_compression_type = 18;/ Obsolete fields, should not be used in new code.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Compression level.Compression type for `output_data`, `totals` and `extremes`.Default output format.string password = 10;string query = 1;string query_id = 2;string quota = 11;Set it if you want the names and the types of output columns to be sent to the client.bool session_check = 13;Works exactly like sessions in the HTTP protocol.uint32 session_timeout = 14;int32 transport_compression_level = 23;Transport compression is an alternative way to make the server to compress its response.string user_name = 9;clone()booleancontainsSettings(String key) map<string, string> settings = 3;booleanSet `cancel` to true to stop executing the query.Default database.com.google.protobuf.ByteStringDefault database.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExternalTables(int index) repeated .clickhouse.grpc.ExternalTable external_tables = 8;getExternalTablesBuilder(int index) repeated .clickhouse.grpc.ExternalTable external_tables = 8;repeated .clickhouse.grpc.ExternalTable external_tables = 8;intrepeated .clickhouse.grpc.ExternalTable external_tables = 8;repeated .clickhouse.grpc.ExternalTable external_tables = 8;getExternalTablesOrBuilder(int index) repeated .clickhouse.grpc.ExternalTable external_tables = 8;List<? extends ExternalTableOrBuilder>repeated .clickhouse.grpc.ExternalTable external_tables = 8;Compression type for `input_data`.com.google.protobuf.ByteStringCompression type for `input_data`.com.google.protobuf.ByteStringInput data, used both as data for INSERT query and as data for the input() function.com.google.protobuf.ByteStringDelimiter for input_data, inserted between input_data from adjacent QueryInfos.Deprecated.booleanIf true there will be at least one more QueryInfo in the input stream.string obsolete_compression_type = 18;com.google.protobuf.ByteStringstring obsolete_compression_type = 18;/ Obsolete fields, should not be used in new code./ Obsolete fields, should not be used in new code./ Obsolete fields, should not be used in new code.intCompression level.Compression type for `output_data`, `totals` and `extremes`.com.google.protobuf.ByteStringCompression type for `output_data`, `totals` and `extremes`.Default output format.com.google.protobuf.ByteStringDefault output format.string password = 10;com.google.protobuf.ByteStringstring password = 10;getQuery()string query = 1;com.google.protobuf.ByteStringstring query = 1;string query_id = 2;com.google.protobuf.ByteStringstring query_id = 2;getQuota()string quota = 11;com.google.protobuf.ByteStringstring quota = 11;booleanSet it if you want the names and the types of output columns to be sent to the client.booleanbool session_check = 13;Works exactly like sessions in the HTTP protocol.com.google.protobuf.ByteStringWorks exactly like sessions in the HTTP protocol.intuint32 session_timeout = 14;Deprecated.intmap<string, string> settings = 3;map<string, string> settings = 3;getSettingsOrDefault(String key, String defaultValue) map<string, string> settings = 3;getSettingsOrThrow(String key) map<string, string> settings = 3;intint32 transport_compression_level = 23;Transport compression is an alternative way to make the server to compress its response.com.google.protobuf.ByteStringTransport compression is an alternative way to make the server to compress its response.string user_name = 9;com.google.protobuf.ByteStringstring user_name = 9;boolean/ Obsolete fields, should not be used in new code.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) / Obsolete fields, should not be used in new code.final QueryInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllSettings(Map<String, String> values) map<string, string> settings = 3;putSettings(String key, String value) map<string, string> settings = 3;removeExternalTables(int index) repeated .clickhouse.grpc.ExternalTable external_tables = 8;removeSettings(String key) map<string, string> settings = 3;setCancel(boolean value) Set `cancel` to true to stop executing the query.setDatabase(String value) Default database.setDatabaseBytes(com.google.protobuf.ByteString value) Default database.setExternalTables(int index, ExternalTable value) repeated .clickhouse.grpc.ExternalTable external_tables = 8;setExternalTables(int index, ExternalTable.Builder builderForValue) repeated .clickhouse.grpc.ExternalTable external_tables = 8;setInputCompressionType(String value) Compression type for `input_data`.setInputCompressionTypeBytes(com.google.protobuf.ByteString value) Compression type for `input_data`.setInputData(com.google.protobuf.ByteString value) Input data, used both as data for INSERT query and as data for the input() function.setInputDataDelimiter(com.google.protobuf.ByteString value) Delimiter for input_data, inserted between input_data from adjacent QueryInfos.setNextQueryInfo(boolean value) If true there will be at least one more QueryInfo in the input stream.setObsoleteCompressionType(String value) string obsolete_compression_type = 18;setObsoleteCompressionTypeBytes(com.google.protobuf.ByteString value) string obsolete_compression_type = 18;/ Obsolete fields, should not be used in new code.setObsoleteResultCompression(ObsoleteTransportCompression.Builder builderForValue) / Obsolete fields, should not be used in new code.setOutputCompressionLevel(int value) Compression level.setOutputCompressionType(String value) Compression type for `output_data`, `totals` and `extremes`.setOutputCompressionTypeBytes(com.google.protobuf.ByteString value) Compression type for `output_data`, `totals` and `extremes`.setOutputFormat(String value) Default output format.setOutputFormatBytes(com.google.protobuf.ByteString value) Default output format.setPassword(String value) string password = 10;setPasswordBytes(com.google.protobuf.ByteString value) string password = 10;string query = 1;setQueryBytes(com.google.protobuf.ByteString value) string query = 1;setQueryId(String value) string query_id = 2;setQueryIdBytes(com.google.protobuf.ByteString value) string query_id = 2;string quota = 11;setQuotaBytes(com.google.protobuf.ByteString value) string quota = 11;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSendOutputColumns(boolean value) Set it if you want the names and the types of output columns to be sent to the client.setSessionCheck(boolean value) bool session_check = 13;setSessionId(String value) Works exactly like sessions in the HTTP protocol.setSessionIdBytes(com.google.protobuf.ByteString value) Works exactly like sessions in the HTTP protocol.setSessionTimeout(int value) uint32 session_timeout = 14;setTransportCompressionLevel(int value) int32 transport_compression_level = 23;Transport compression is an alternative way to make the server to compress its response.setTransportCompressionTypeBytes(com.google.protobuf.ByteString value) Transport compression is an alternative way to make the server to compress its response.final QueryInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUserName(String value) string user_name = 9;setUserNameBytes(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, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryInfo.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryInfo.Builder>
-
mergeFrom
-
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
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
string query = 1;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
string query = 1;- Returns:
- This builder for chaining.
-
setQueryBytes
string query = 1;- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
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
string query_id = 2;- Parameters:
value- The queryId to set.- Returns:
- This builder for chaining.
-
clearQueryId
string query_id = 2;- Returns:
- This builder for chaining.
-
setQueryIdBytes
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
map<string, string> settings = 3;- Specified by:
containsSettingsin interfaceQueryInfoOrBuilder
-
getSettings
Deprecated.UsegetSettingsMap()instead.- Specified by:
getSettingsin interfaceQueryInfoOrBuilder
-
getSettingsMap
map<string, string> settings = 3;- Specified by:
getSettingsMapin interfaceQueryInfoOrBuilder
-
getSettingsOrDefault
map<string, string> settings = 3;- Specified by:
getSettingsOrDefaultin interfaceQueryInfoOrBuilder
-
getSettingsOrThrow
map<string, string> settings = 3;- Specified by:
getSettingsOrThrowin interfaceQueryInfoOrBuilder
-
clearSettings
-
removeSettings
map<string, string> settings = 3; -
getMutableSettings
Deprecated.Use alternate mutation accessors instead. -
putSettings
map<string, string> settings = 3; -
putAllSettings
map<string, string> settings = 3; -
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
Default database.
string database = 4;- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
clearDatabase
Default database.
string database = 4;- Returns:
- This builder for chaining.
-
setDatabaseBytes
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
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
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
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
Delimiter for input_data, inserted between input_data from adjacent QueryInfos.
bytes input_data_delimiter = 6;- Returns:
- This builder for chaining.
-
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
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
Default output format. If not specified, 'TabSeparated' is used.
string output_format = 7;- Returns:
- This builder for chaining.
-
setOutputFormatBytes
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.
-
getSendOutputColumns
public boolean getSendOutputColumns()Set it if you want the names and the types of output columns to be sent to the client.
bool send_output_columns = 24;- Specified by:
getSendOutputColumnsin interfaceQueryInfoOrBuilder- Returns:
- The sendOutputColumns.
-
setSendOutputColumns
Set it if you want the names and the types of output columns to be sent to the client.
bool send_output_columns = 24;- Parameters:
value- The sendOutputColumns to set.- Returns:
- This builder for chaining.
-
clearSendOutputColumns
Set it if you want the names and the types of output columns to be sent to the client.
bool send_output_columns = 24;- Returns:
- This builder for chaining.
-
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
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesin interfaceQueryInfoOrBuilder
-
setExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
setExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
addExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
addExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
addExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
addExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
addAllExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
clearExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
removeExternalTables
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
getExternalTablesBuilder
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
getExternalTablesOrBuilder
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesOrBuilderin interfaceQueryInfoOrBuilder
-
getExternalTablesOrBuilderList
repeated .clickhouse.grpc.ExternalTable external_tables = 8;- Specified by:
getExternalTablesOrBuilderListin interfaceQueryInfoOrBuilder
-
addExternalTablesBuilder
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
addExternalTablesBuilder
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
getExternalTablesBuilderList
repeated .clickhouse.grpc.ExternalTable external_tables = 8; -
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
string user_name = 9;- Parameters:
value- The userName to set.- Returns:
- This builder for chaining.
-
clearUserName
string user_name = 9;- Returns:
- This builder for chaining.
-
setUserNameBytes
string user_name = 9;- Parameters:
value- The bytes for userName to set.- Returns:
- This builder for chaining.
-
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
string password = 10;- Parameters:
value- The password to set.- Returns:
- This builder for chaining.
-
clearPassword
string password = 10;- Returns:
- This builder for chaining.
-
setPasswordBytes
string password = 10;- Parameters:
value- The bytes for password to set.- Returns:
- This builder for chaining.
-
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
string quota = 11;- Parameters:
value- The quota to set.- Returns:
- This builder for chaining.
-
clearQuota
string quota = 11;- Returns:
- This builder for chaining.
-
setQuotaBytes
string quota = 11;- Parameters:
value- The bytes for quota to set.- Returns:
- This builder for chaining.
-
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
Works exactly like sessions in the HTTP protocol.
string session_id = 12;- Parameters:
value- The sessionId to set.- Returns:
- This builder for chaining.
-
clearSessionId
Works exactly like sessions in the HTTP protocol.
string session_id = 12;- Returns:
- This builder for chaining.
-
setSessionIdBytes
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
bool session_check = 13;- Parameters:
value- The sessionCheck to set.- Returns:
- This builder for chaining.
-
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
uint32 session_timeout = 14;- Parameters:
value- The sessionTimeout to set.- Returns:
- This builder for chaining.
-
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
Set `cancel` to true to stop executing the query.
bool cancel = 15;- Parameters:
value- The cancel to set.- Returns:
- This builder for chaining.
-
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
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
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.
-
getInputCompressionType
Compression type for `input_data`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client is responsible to compress data before putting it into `input_data`.
string input_compression_type = 20;- Specified by:
getInputCompressionTypein interfaceQueryInfoOrBuilder- Returns:
- The inputCompressionType.
-
getInputCompressionTypeBytes
public com.google.protobuf.ByteString getInputCompressionTypeBytes()Compression type for `input_data`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client is responsible to compress data before putting it into `input_data`.
string input_compression_type = 20;- Specified by:
getInputCompressionTypeBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for inputCompressionType.
-
setInputCompressionType
Compression type for `input_data`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client is responsible to compress data before putting it into `input_data`.
string input_compression_type = 20;- Parameters:
value- The inputCompressionType to set.- Returns:
- This builder for chaining.
-
clearInputCompressionType
Compression type for `input_data`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client is responsible to compress data before putting it into `input_data`.
string input_compression_type = 20;- Returns:
- This builder for chaining.
-
setInputCompressionTypeBytes
Compression type for `input_data`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client is responsible to compress data before putting it into `input_data`.
string input_compression_type = 20;- Parameters:
value- The bytes for inputCompressionType to set.- Returns:
- This builder for chaining.
-
getOutputCompressionType
Compression type for `output_data`, `totals` and `extremes`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client receives compressed data and should decompress it by itself. Consider also setting `output_compression_level`.
string output_compression_type = 21;- Specified by:
getOutputCompressionTypein interfaceQueryInfoOrBuilder- Returns:
- The outputCompressionType.
-
getOutputCompressionTypeBytes
public com.google.protobuf.ByteString getOutputCompressionTypeBytes()Compression type for `output_data`, `totals` and `extremes`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client receives compressed data and should decompress it by itself. Consider also setting `output_compression_level`.
string output_compression_type = 21;- Specified by:
getOutputCompressionTypeBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for outputCompressionType.
-
setOutputCompressionType
Compression type for `output_data`, `totals` and `extremes`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client receives compressed data and should decompress it by itself. Consider also setting `output_compression_level`.
string output_compression_type = 21;- Parameters:
value- The outputCompressionType to set.- Returns:
- This builder for chaining.
-
clearOutputCompressionType
Compression type for `output_data`, `totals` and `extremes`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client receives compressed data and should decompress it by itself. Consider also setting `output_compression_level`.
string output_compression_type = 21;- Returns:
- This builder for chaining.
-
setOutputCompressionTypeBytes
Compression type for `output_data`, `totals` and `extremes`. Supported compression types: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2. The client receives compressed data and should decompress it by itself. Consider also setting `output_compression_level`.
string output_compression_type = 21;- Parameters:
value- The bytes for outputCompressionType to set.- Returns:
- This builder for chaining.
-
getOutputCompressionLevel
public int getOutputCompressionLevel()Compression level. WARNING: If it's not specified the compression level is set to zero by default which might be not the best choice for some compression types (see below). The compression level should be in the following range (the higher the number, the better the compression): none: compression level isn't used gzip: 0..9; 0 means no compression, 6 is recommended by default (compression level -1 also means 6) brotli: 0..11 lzma: 0..9; 6 is recommended by default zstd: 1..22; 3 is recommended by default (compression level 0 also means 3) lz4: 0..16; values < 0 mean fast acceleration bz2: 1..9
int32 output_compression_level = 19;- Specified by:
getOutputCompressionLevelin interfaceQueryInfoOrBuilder- Returns:
- The outputCompressionLevel.
-
setOutputCompressionLevel
Compression level. WARNING: If it's not specified the compression level is set to zero by default which might be not the best choice for some compression types (see below). The compression level should be in the following range (the higher the number, the better the compression): none: compression level isn't used gzip: 0..9; 0 means no compression, 6 is recommended by default (compression level -1 also means 6) brotli: 0..11 lzma: 0..9; 6 is recommended by default zstd: 1..22; 3 is recommended by default (compression level 0 also means 3) lz4: 0..16; values < 0 mean fast acceleration bz2: 1..9
int32 output_compression_level = 19;- Parameters:
value- The outputCompressionLevel to set.- Returns:
- This builder for chaining.
-
clearOutputCompressionLevel
Compression level. WARNING: If it's not specified the compression level is set to zero by default which might be not the best choice for some compression types (see below). The compression level should be in the following range (the higher the number, the better the compression): none: compression level isn't used gzip: 0..9; 0 means no compression, 6 is recommended by default (compression level -1 also means 6) brotli: 0..11 lzma: 0..9; 6 is recommended by default zstd: 1..22; 3 is recommended by default (compression level 0 also means 3) lz4: 0..16; values < 0 mean fast acceleration bz2: 1..9
int32 output_compression_level = 19;- Returns:
- This builder for chaining.
-
getTransportCompressionType
Transport compression is an alternative way to make the server to compress its response. This kind of compression implies that instead of compressing just `output` the server will compress whole packed messages of the `Result` type, and then gRPC implementation on client side will decompress those messages so client code won't be bothered with decompression. Here is a big difference between the transport compression and the compression enabled by setting `output_compression_type` because in case of the transport compression the client code receives already decompressed data in `output`. If the transport compression is not set here it can still be enabled by the server configuration. Supported compression types: none, deflate, gzip, stream_gzip Supported compression levels: 0..3 WARNING: Don't set `transport_compression` and `output_compression` at the same time because it will make the server to compress its output twice!
string transport_compression_type = 22;- Specified by:
getTransportCompressionTypein interfaceQueryInfoOrBuilder- Returns:
- The transportCompressionType.
-
getTransportCompressionTypeBytes
public com.google.protobuf.ByteString getTransportCompressionTypeBytes()Transport compression is an alternative way to make the server to compress its response. This kind of compression implies that instead of compressing just `output` the server will compress whole packed messages of the `Result` type, and then gRPC implementation on client side will decompress those messages so client code won't be bothered with decompression. Here is a big difference between the transport compression and the compression enabled by setting `output_compression_type` because in case of the transport compression the client code receives already decompressed data in `output`. If the transport compression is not set here it can still be enabled by the server configuration. Supported compression types: none, deflate, gzip, stream_gzip Supported compression levels: 0..3 WARNING: Don't set `transport_compression` and `output_compression` at the same time because it will make the server to compress its output twice!
string transport_compression_type = 22;- Specified by:
getTransportCompressionTypeBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for transportCompressionType.
-
setTransportCompressionType
Transport compression is an alternative way to make the server to compress its response. This kind of compression implies that instead of compressing just `output` the server will compress whole packed messages of the `Result` type, and then gRPC implementation on client side will decompress those messages so client code won't be bothered with decompression. Here is a big difference between the transport compression and the compression enabled by setting `output_compression_type` because in case of the transport compression the client code receives already decompressed data in `output`. If the transport compression is not set here it can still be enabled by the server configuration. Supported compression types: none, deflate, gzip, stream_gzip Supported compression levels: 0..3 WARNING: Don't set `transport_compression` and `output_compression` at the same time because it will make the server to compress its output twice!
string transport_compression_type = 22;- Parameters:
value- The transportCompressionType to set.- Returns:
- This builder for chaining.
-
clearTransportCompressionType
Transport compression is an alternative way to make the server to compress its response. This kind of compression implies that instead of compressing just `output` the server will compress whole packed messages of the `Result` type, and then gRPC implementation on client side will decompress those messages so client code won't be bothered with decompression. Here is a big difference between the transport compression and the compression enabled by setting `output_compression_type` because in case of the transport compression the client code receives already decompressed data in `output`. If the transport compression is not set here it can still be enabled by the server configuration. Supported compression types: none, deflate, gzip, stream_gzip Supported compression levels: 0..3 WARNING: Don't set `transport_compression` and `output_compression` at the same time because it will make the server to compress its output twice!
string transport_compression_type = 22;- Returns:
- This builder for chaining.
-
setTransportCompressionTypeBytes
Transport compression is an alternative way to make the server to compress its response. This kind of compression implies that instead of compressing just `output` the server will compress whole packed messages of the `Result` type, and then gRPC implementation on client side will decompress those messages so client code won't be bothered with decompression. Here is a big difference between the transport compression and the compression enabled by setting `output_compression_type` because in case of the transport compression the client code receives already decompressed data in `output`. If the transport compression is not set here it can still be enabled by the server configuration. Supported compression types: none, deflate, gzip, stream_gzip Supported compression levels: 0..3 WARNING: Don't set `transport_compression` and `output_compression` at the same time because it will make the server to compress its output twice!
string transport_compression_type = 22;- Parameters:
value- The bytes for transportCompressionType to set.- Returns:
- This builder for chaining.
-
getTransportCompressionLevel
public int getTransportCompressionLevel()int32 transport_compression_level = 23;- Specified by:
getTransportCompressionLevelin interfaceQueryInfoOrBuilder- Returns:
- The transportCompressionLevel.
-
setTransportCompressionLevel
int32 transport_compression_level = 23;- Parameters:
value- The transportCompressionLevel to set.- Returns:
- This builder for chaining.
-
clearTransportCompressionLevel
int32 transport_compression_level = 23;- Returns:
- This builder for chaining.
-
hasObsoleteResultCompression
public boolean hasObsoleteResultCompression()/ Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17;- Specified by:
hasObsoleteResultCompressionin interfaceQueryInfoOrBuilder- Returns:
- Whether the obsoleteResultCompression field is set.
-
getObsoleteResultCompression
/ Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17;- Specified by:
getObsoleteResultCompressionin interfaceQueryInfoOrBuilder- Returns:
- The obsoleteResultCompression.
-
setObsoleteResultCompression
/ Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17; -
setObsoleteResultCompression
public QueryInfo.Builder setObsoleteResultCompression(ObsoleteTransportCompression.Builder builderForValue) / Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17; -
mergeObsoleteResultCompression
/ Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17; -
clearObsoleteResultCompression
/ Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17; -
getObsoleteResultCompressionBuilder
/ Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17; -
getObsoleteResultCompressionOrBuilder
/ Obsolete fields, should not be used in new code.
.clickhouse.grpc.ObsoleteTransportCompression obsolete_result_compression = 17;- Specified by:
getObsoleteResultCompressionOrBuilderin interfaceQueryInfoOrBuilder
-
getObsoleteCompressionType
string obsolete_compression_type = 18;- Specified by:
getObsoleteCompressionTypein interfaceQueryInfoOrBuilder- Returns:
- The obsoleteCompressionType.
-
getObsoleteCompressionTypeBytes
public com.google.protobuf.ByteString getObsoleteCompressionTypeBytes()string obsolete_compression_type = 18;- Specified by:
getObsoleteCompressionTypeBytesin interfaceQueryInfoOrBuilder- Returns:
- The bytes for obsoleteCompressionType.
-
setObsoleteCompressionType
string obsolete_compression_type = 18;- Parameters:
value- The obsoleteCompressionType to set.- Returns:
- This builder for chaining.
-
clearObsoleteCompressionType
string obsolete_compression_type = 18;- Returns:
- This builder for chaining.
-
setObsoleteCompressionTypeBytes
string obsolete_compression_type = 18;- Parameters:
value- The bytes for obsoleteCompressionType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- 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>
-