Class AnswerQueryRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest
- All Implemented Interfaces:
AnswerQueryRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AnswerQueryRequest
extends com.google.protobuf.GeneratedMessage
implements AnswerQueryRequestOrBuilder
Request message for [ConversationalSearchService.AnswerQuery][google.cloud.discoveryengine.v1beta.ConversationalSearchService.AnswerQuery] method.Protobuf type
google.cloud.discoveryengine.v1beta.AnswerQueryRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAnswer generation specification.static interfacestatic final classRequest message for [ConversationalSearchService.AnswerQuery][google.cloud.discoveryengine.v1beta.ConversationalSearchService.AnswerQuery] method.static final classGrounding specification.static interfacestatic final classQuery understanding specification.static interfacestatic final classRelated questions specification.static interfacestatic final classSafety specification.static interfacestatic final classSearch specification.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested 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 intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsUserLabels(String key) The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64booleanAnswer generation specification.Answer generation specification.booleanDeprecated.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is deprecated.static AnswerQueryRequeststatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.com.google.protobuf.Parser<AnswerQueryRequest>getQuery()Required.Required.Query understanding specification.Query understanding specification.Related questions specification.Related questions specification.Model specification.Model specification.Search specification.Search specification.intRequired.com.google.protobuf.ByteStringRequired.The session resource name.com.google.protobuf.ByteStringThe session resource name.Deprecated.intThe user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64getUserLabelsOrDefault(String key, String defaultValue) The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64A unique identifier for tracking visitors.com.google.protobuf.ByteStringA unique identifier for tracking visitors.booleanAnswer generation specification.booleanOptional.inthashCode()booleanhasQuery()Required.booleanQuery understanding specification.booleanRelated questions specification.booleanModel specification.booleanSearch specification.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic AnswerQueryRequest.Builderstatic AnswerQueryRequest.BuildernewBuilder(AnswerQueryRequest prototype) protected AnswerQueryRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AnswerQueryRequestparseDelimitedFrom(InputStream input) static AnswerQueryRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerQueryRequestparseFrom(byte[] data) static AnswerQueryRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerQueryRequestparseFrom(com.google.protobuf.ByteString data) static AnswerQueryRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerQueryRequestparseFrom(com.google.protobuf.CodedInputStream input) static AnswerQueryRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerQueryRequestparseFrom(InputStream input) static AnswerQueryRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerQueryRequestparseFrom(ByteBuffer data) static AnswerQueryRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AnswerQueryRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
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
-
SERVING_CONFIG_FIELD_NUMBER
public static final int SERVING_CONFIG_FIELD_NUMBER- See Also:
-
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER- See Also:
-
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER- See Also:
-
SAFETY_SPEC_FIELD_NUMBER
public static final int SAFETY_SPEC_FIELD_NUMBER- See Also:
-
RELATED_QUESTIONS_SPEC_FIELD_NUMBER
public static final int RELATED_QUESTIONS_SPEC_FIELD_NUMBER- See Also:
-
GROUNDING_SPEC_FIELD_NUMBER
public static final int GROUNDING_SPEC_FIELD_NUMBER- See Also:
-
ANSWER_GENERATION_SPEC_FIELD_NUMBER
public static final int ANSWER_GENERATION_SPEC_FIELD_NUMBER- See Also:
-
SEARCH_SPEC_FIELD_NUMBER
public static final int SEARCH_SPEC_FIELD_NUMBER- See Also:
-
QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER
public static final int QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER- See Also:
-
ASYNCHRONOUS_MODE_FIELD_NUMBER
public static final int ASYNCHRONOUS_MODE_FIELD_NUMBER- See Also:
-
USER_PSEUDO_ID_FIELD_NUMBER
public static final int USER_PSEUDO_ID_FIELD_NUMBER- See Also:
-
USER_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getServingConfig
Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getServingConfigin interfaceAnswerQueryRequestOrBuilder- Returns:
- The servingConfig.
-
getServingConfigBytes
public com.google.protobuf.ByteString getServingConfigBytes()Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getServingConfigBytesin interfaceAnswerQueryRequestOrBuilder- Returns:
- The bytes for servingConfig.
-
hasQuery
public boolean hasQuery()Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasQueryin interfaceAnswerQueryRequestOrBuilder- Returns:
- Whether the query field is set.
-
getQuery
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryin interfaceAnswerQueryRequestOrBuilder- Returns:
- The query.
-
getQueryOrBuilder
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryOrBuilderin interfaceAnswerQueryRequestOrBuilder
-
getSession
The session resource name. Not required. When session field is not set, the API is in sessionless mode. We support auto session mode: users can use the wildcard symbol `-` as session ID. A new ID will be automatically generated and assigned.
string session = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getSessionin interfaceAnswerQueryRequestOrBuilder- Returns:
- The session.
-
getSessionBytes
public com.google.protobuf.ByteString getSessionBytes()The session resource name. Not required. When session field is not set, the API is in sessionless mode. We support auto session mode: users can use the wildcard symbol `-` as session ID. A new ID will be automatically generated and assigned.
string session = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getSessionBytesin interfaceAnswerQueryRequestOrBuilder- Returns:
- The bytes for session.
-
hasSafetySpec
public boolean hasSafetySpec()Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;- Specified by:
hasSafetySpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- Whether the safetySpec field is set.
-
getSafetySpec
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;- Specified by:
getSafetySpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- The safetySpec.
-
getSafetySpecOrBuilder
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;- Specified by:
getSafetySpecOrBuilderin interfaceAnswerQueryRequestOrBuilder
-
hasRelatedQuestionsSpec
public boolean hasRelatedQuestionsSpec()Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;- Specified by:
hasRelatedQuestionsSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- Whether the relatedQuestionsSpec field is set.
-
getRelatedQuestionsSpec
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;- Specified by:
getRelatedQuestionsSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- The relatedQuestionsSpec.
-
getRelatedQuestionsSpecOrBuilder
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;- Specified by:
getRelatedQuestionsSpecOrBuilderin interfaceAnswerQueryRequestOrBuilder
-
hasGroundingSpec
public boolean hasGroundingSpec()Optional. Grounding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasGroundingSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- Whether the groundingSpec field is set.
-
getGroundingSpec
Optional. Grounding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- The groundingSpec.
-
getGroundingSpecOrBuilder
Optional. Grounding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingSpecOrBuilderin interfaceAnswerQueryRequestOrBuilder
-
hasAnswerGenerationSpec
public boolean hasAnswerGenerationSpec()Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;- Specified by:
hasAnswerGenerationSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- Whether the answerGenerationSpec field is set.
-
getAnswerGenerationSpec
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;- Specified by:
getAnswerGenerationSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- The answerGenerationSpec.
-
getAnswerGenerationSpecOrBuilder
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;- Specified by:
getAnswerGenerationSpecOrBuilderin interfaceAnswerQueryRequestOrBuilder
-
hasSearchSpec
public boolean hasSearchSpec()Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;- Specified by:
hasSearchSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- Whether the searchSpec field is set.
-
getSearchSpec
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;- Specified by:
getSearchSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- The searchSpec.
-
getSearchSpecOrBuilder
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;- Specified by:
getSearchSpecOrBuilderin interfaceAnswerQueryRequestOrBuilder
-
hasQueryUnderstandingSpec
public boolean hasQueryUnderstandingSpec()Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;- Specified by:
hasQueryUnderstandingSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- Whether the queryUnderstandingSpec field is set.
-
getQueryUnderstandingSpec
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;- Specified by:
getQueryUnderstandingSpecin interfaceAnswerQueryRequestOrBuilder- Returns:
- The queryUnderstandingSpec.
-
getQueryUnderstandingSpecOrBuilder
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;- Specified by:
getQueryUnderstandingSpecOrBuilderin interfaceAnswerQueryRequestOrBuilder
-
getAsynchronousMode
Deprecated.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is deprecated. See google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861Deprecated: This field is deprecated. Streaming Answer API will be supported. Asynchronous mode control. If enabled, the response will be returned with answer/session resource name without final answer. The API users need to do the polling to get the latest status of answer/session by calling [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer] or [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession] method.
bool asynchronous_mode = 10 [deprecated = true];- Specified by:
getAsynchronousModein interfaceAnswerQueryRequestOrBuilder- Returns:
- The asynchronousMode.
-
getUserPseudoId
A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
string user_pseudo_id = 12;- Specified by:
getUserPseudoIdin interfaceAnswerQueryRequestOrBuilder- Returns:
- The userPseudoId.
-
getUserPseudoIdBytes
public com.google.protobuf.ByteString getUserPseudoIdBytes()A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
string user_pseudo_id = 12;- Specified by:
getUserPseudoIdBytesin interfaceAnswerQueryRequestOrBuilder- Returns:
- The bytes for userPseudoId.
-
getUserLabelsCount
public int getUserLabelsCount()Description copied from interface:AnswerQueryRequestOrBuilderThe user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 13;- Specified by:
getUserLabelsCountin interfaceAnswerQueryRequestOrBuilder
-
containsUserLabels
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 13;- Specified by:
containsUserLabelsin interfaceAnswerQueryRequestOrBuilder
-
getUserLabels
Deprecated.UsegetUserLabelsMap()instead.- Specified by:
getUserLabelsin interfaceAnswerQueryRequestOrBuilder
-
getUserLabelsMap
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 13;- Specified by:
getUserLabelsMapin interfaceAnswerQueryRequestOrBuilder
-
getUserLabelsOrDefault
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 13;- Specified by:
getUserLabelsOrDefaultin interfaceAnswerQueryRequestOrBuilder
-
getUserLabelsOrThrow
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 13;- Specified by:
getUserLabelsOrThrowin interfaceAnswerQueryRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 AnswerQueryRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AnswerQueryRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AnswerQueryRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AnswerQueryRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AnswerQueryRequest 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 AnswerQueryRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-