Package com.google.bigtable.v2
Class ExecuteQueryRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.bigtable.v2.ExecuteQueryRequest
- All Implemented Interfaces:
ExecuteQueryRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ExecuteQueryRequest
extends com.google.protobuf.GeneratedMessageV3
implements ExecuteQueryRequestOrBuilder
Request message for Bigtable.ExecuteQueryProtobuf type
google.bigtable.v2.ExecuteQueryRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for Bigtable.ExecuteQuerystatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParams(String key) Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string.booleanOptional.com.google.protobuf.ByteStringOptional.static ExecuteQueryRequeststatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Deprecated.intRequired. params contains string type keys and Bigtable type values that bind to placeholders in the query string.Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string.getParamsOrDefault(String key, Value defaultValue) Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string.getParamsOrThrow(String key) Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string.com.google.protobuf.Parser<ExecuteQueryRequest>com.google.protobuf.ByteStringA prepared query that was returned from `PrepareQueryResponse`.Deprecated.google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated.Deprecated.getQuery()Deprecated.google.bigtable.v2.ExecuteQueryRequest.query is deprecated.com.google.protobuf.ByteStringDeprecated.google.bigtable.v2.ExecuteQueryRequest.query is deprecated.com.google.protobuf.ByteStringOptional.intinthashCode()booleanDeprecated.google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ExecuteQueryRequest.Builderstatic ExecuteQueryRequest.BuildernewBuilder(ExecuteQueryRequest prototype) protected ExecuteQueryRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ExecuteQueryRequestparseDelimitedFrom(InputStream input) static ExecuteQueryRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExecuteQueryRequestparseFrom(byte[] data) static ExecuteQueryRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExecuteQueryRequestparseFrom(com.google.protobuf.ByteString data) static ExecuteQueryRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExecuteQueryRequestparseFrom(com.google.protobuf.CodedInputStream input) static ExecuteQueryRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExecuteQueryRequestparseFrom(InputStream input) static ExecuteQueryRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExecuteQueryRequestparseFrom(ByteBuffer data) static ExecuteQueryRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ExecuteQueryRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INSTANCE_NAME_FIELD_NUMBER
public static final int INSTANCE_NAME_FIELD_NUMBER- See Also:
-
APP_PROFILE_ID_FIELD_NUMBER
public static final int APP_PROFILE_ID_FIELD_NUMBER- See Also:
-
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER- See Also:
-
PREPARED_QUERY_FIELD_NUMBER
public static final int PREPARED_QUERY_FIELD_NUMBER- See Also:
-
PROTO_FORMAT_FIELD_NUMBER
public static final int PROTO_FORMAT_FIELD_NUMBER- See Also:
-
RESUME_TOKEN_FIELD_NUMBER
public static final int RESUME_TOKEN_FIELD_NUMBER- See Also:
-
PARAMS_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDataFormatCase
- Specified by:
getDataFormatCasein interfaceExecuteQueryRequestOrBuilder
-
getInstanceName
Required. The unique name of the instance against which the query should be executed. Values are of the form `projects/<project>/instances/<instance>`
string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getInstanceNamein interfaceExecuteQueryRequestOrBuilder- Returns:
- The instanceName.
-
getInstanceNameBytes
public com.google.protobuf.ByteString getInstanceNameBytes()Required. The unique name of the instance against which the query should be executed. Values are of the form `projects/<project>/instances/<instance>`
string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getInstanceNameBytesin interfaceExecuteQueryRequestOrBuilder- Returns:
- The bytes for instanceName.
-
getAppProfileId
Optional. This value specifies routing for replication. If not specified, the `default` application profile will be used.
string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAppProfileIdin interfaceExecuteQueryRequestOrBuilder- Returns:
- The appProfileId.
-
getAppProfileIdBytes
public com.google.protobuf.ByteString getAppProfileIdBytes()Optional. This value specifies routing for replication. If not specified, the `default` application profile will be used.
string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAppProfileIdBytesin interfaceExecuteQueryRequestOrBuilder- Returns:
- The bytes for appProfileId.
-
getQuery
Deprecated.google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See google/bigtable/v2/bigtable.proto;l=1086Required. The query string. Exactly one of `query` and `prepared_query` is required. Setting both or neither is an `INVALID_ARGUMENT`.
string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryin interfaceExecuteQueryRequestOrBuilder- Returns:
- The query.
-
getQueryBytes
Deprecated.google.bigtable.v2.ExecuteQueryRequest.query is deprecated. See google/bigtable/v2/bigtable.proto;l=1086Required. The query string. Exactly one of `query` and `prepared_query` is required. Setting both or neither is an `INVALID_ARGUMENT`.
string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryBytesin interfaceExecuteQueryRequestOrBuilder- Returns:
- The bytes for query.
-
getPreparedQuery
public com.google.protobuf.ByteString getPreparedQuery()A prepared query that was returned from `PrepareQueryResponse`. Exactly one of `query` and `prepared_query` is required. Setting both or neither is an `INVALID_ARGUMENT`. Setting this field also places restrictions on several other fields: - `data_format` must be empty. - `validate_only` must be false. - `params` must match the `param_types` set in the `PrepareQueryRequest`.
bytes prepared_query = 9;- Specified by:
getPreparedQueryin interfaceExecuteQueryRequestOrBuilder- Returns:
- The preparedQuery.
-
hasProtoFormat
Deprecated.google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See google/bigtable/v2/bigtable.proto;l=1107Protocol buffer format as described by ProtoSchema and ProtoRows messages.
.google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true];- Specified by:
hasProtoFormatin interfaceExecuteQueryRequestOrBuilder- Returns:
- Whether the protoFormat field is set.
-
getProtoFormat
Deprecated.google.bigtable.v2.ExecuteQueryRequest.proto_format is deprecated. See google/bigtable/v2/bigtable.proto;l=1107Protocol buffer format as described by ProtoSchema and ProtoRows messages.
.google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true];- Specified by:
getProtoFormatin interfaceExecuteQueryRequestOrBuilder- Returns:
- The protoFormat.
-
getProtoFormatOrBuilder
Deprecated.Protocol buffer format as described by ProtoSchema and ProtoRows messages.
.google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true];- Specified by:
getProtoFormatOrBuilderin interfaceExecuteQueryRequestOrBuilder
-
getResumeToken
public com.google.protobuf.ByteString getResumeToken()Optional. If this request is resuming a previously interrupted query execution, `resume_token` should be copied from the last PartialResultSet yielded before the interruption. Doing this enables the query execution to resume where the last one left off. The rest of the request parameters must exactly match the request that yielded this token. Otherwise the request will fail.
bytes resume_token = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResumeTokenin interfaceExecuteQueryRequestOrBuilder- Returns:
- The resumeToken.
-
getParamsCount
public int getParamsCount()Description copied from interface:ExecuteQueryRequestOrBuilderRequired. params contains string type keys and Bigtable type values that bind to placeholders in the query string. In query string, a parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`) in the query string. For example, if `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` then `@firstName` will be replaced with googlesql bytes value "foo" in the query string during query evaluation. If `Value.kind` is not set, the value is treated as a NULL value of the given type. For example, if `params["firstName"] = type {string_type {}}` then `@firstName` will be replaced with googlesql null string. If `query` is set, any empty `Value.type` in the map will be rejected with `INVALID_ARGUMENT`. If `prepared_query` is set, any empty `Value.type` in the map will be inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty `Value.type` must match the corresponding `param_types` entry, or be rejected with `INVALID_ARGUMENT`.map<string, .google.bigtable.v2.Value> params = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParamsCountin interfaceExecuteQueryRequestOrBuilder
-
containsParams
Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string. In query string, a parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`) in the query string. For example, if `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` then `@firstName` will be replaced with googlesql bytes value "foo" in the query string during query evaluation. If `Value.kind` is not set, the value is treated as a NULL value of the given type. For example, if `params["firstName"] = type {string_type {}}` then `@firstName` will be replaced with googlesql null string. If `query` is set, any empty `Value.type` in the map will be rejected with `INVALID_ARGUMENT`. If `prepared_query` is set, any empty `Value.type` in the map will be inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty `Value.type` must match the corresponding `param_types` entry, or be rejected with `INVALID_ARGUMENT`.map<string, .google.bigtable.v2.Value> params = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
containsParamsin interfaceExecuteQueryRequestOrBuilder
-
getParams
Deprecated.UsegetParamsMap()instead.- Specified by:
getParamsin interfaceExecuteQueryRequestOrBuilder
-
getParamsMap
Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string. In query string, a parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`) in the query string. For example, if `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` then `@firstName` will be replaced with googlesql bytes value "foo" in the query string during query evaluation. If `Value.kind` is not set, the value is treated as a NULL value of the given type. For example, if `params["firstName"] = type {string_type {}}` then `@firstName` will be replaced with googlesql null string. If `query` is set, any empty `Value.type` in the map will be rejected with `INVALID_ARGUMENT`. If `prepared_query` is set, any empty `Value.type` in the map will be inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty `Value.type` must match the corresponding `param_types` entry, or be rejected with `INVALID_ARGUMENT`.map<string, .google.bigtable.v2.Value> params = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParamsMapin interfaceExecuteQueryRequestOrBuilder
-
getParamsOrDefault
Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string. In query string, a parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`) in the query string. For example, if `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` then `@firstName` will be replaced with googlesql bytes value "foo" in the query string during query evaluation. If `Value.kind` is not set, the value is treated as a NULL value of the given type. For example, if `params["firstName"] = type {string_type {}}` then `@firstName` will be replaced with googlesql null string. If `query` is set, any empty `Value.type` in the map will be rejected with `INVALID_ARGUMENT`. If `prepared_query` is set, any empty `Value.type` in the map will be inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty `Value.type` must match the corresponding `param_types` entry, or be rejected with `INVALID_ARGUMENT`.map<string, .google.bigtable.v2.Value> params = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParamsOrDefaultin interfaceExecuteQueryRequestOrBuilder
-
getParamsOrThrow
Required. params contains string type keys and Bigtable type values that bind to placeholders in the query string. In query string, a parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`) in the query string. For example, if `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` then `@firstName` will be replaced with googlesql bytes value "foo" in the query string during query evaluation. If `Value.kind` is not set, the value is treated as a NULL value of the given type. For example, if `params["firstName"] = type {string_type {}}` then `@firstName` will be replaced with googlesql null string. If `query` is set, any empty `Value.type` in the map will be rejected with `INVALID_ARGUMENT`. If `prepared_query` is set, any empty `Value.type` in the map will be inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty `Value.type` must match the corresponding `param_types` entry, or be rejected with `INVALID_ARGUMENT`.map<string, .google.bigtable.v2.Value> params = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParamsOrThrowin interfaceExecuteQueryRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExecuteQueryRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteQueryRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteQueryRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteQueryRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteQueryRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ExecuteQueryRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ExecuteQueryRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ExecuteQueryRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ExecuteQueryRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExecuteQueryRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-