Class GenerateGroundedContentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.Builder
- All Implemented Interfaces:
GenerateGroundedContentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateGroundedContentRequest
public static final class GenerateGroundedContentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
implements GenerateGroundedContentRequestOrBuilder
Top-level message sent by the client for the `GenerateGroundedContent` method.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllContents(Iterable<? extends GroundedGenerationContent> values) Content of the current conversation with the model.addContents(int index, GroundedGenerationContent value) Content of the current conversation with the model.addContents(int index, GroundedGenerationContent.Builder builderForValue) Content of the current conversation with the model.Content of the current conversation with the model.addContents(GroundedGenerationContent.Builder builderForValue) Content of the current conversation with the model.Content of the current conversation with the model.addContentsBuilder(int index) Content of the current conversation with the model.build()clear()Content of the current conversation with the model.Content generation specification.Grounding specification.Required.Content of the system instruction for the current API.booleancontainsUserLabels(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 64getContents(int index) Content of the current conversation with the model.getContentsBuilder(int index) Content of the current conversation with the model.Content of the current conversation with the model.intContent of the current conversation with the model.Content of the current conversation with the model.getContentsOrBuilder(int index) Content of the current conversation with the model.List<? extends GroundedGenerationContentOrBuilder>Content of the current conversation with the model.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorContent generation specification.Content generation specification.Content generation specification.Grounding specification.Grounding specification.Grounding specification.Required.com.google.protobuf.ByteStringRequired.Deprecated.Content of the system instruction for the current API.Content of the system instruction for the current API.Content of the system instruction for the current API.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 64booleanContent generation specification.booleanGrounding specification.booleanContent of the system instruction for the current API.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Content generation specification.Grounding specification.Content of the system instruction for the current API.putAllUserLabels(Map<String, String> values) The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64putUserLabels(String key, String value) The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64removeContents(int index) Content of the current conversation with the model.removeUserLabels(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 64setContents(int index, GroundedGenerationContent value) Content of the current conversation with the model.setContents(int index, GroundedGenerationContent.Builder builderForValue) Content of the current conversation with the model.Content generation specification.setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.Builder builderForValue) Content generation specification.Grounding specification.setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.Builder builderForValue) Grounding specification.setLocation(String value) Required.setLocationBytes(com.google.protobuf.ByteString value) Required.Content of the system instruction for the current API.setSystemInstruction(GroundedGenerationContent.Builder builderForValue) Content of the system instruction for the current API.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.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.GeneratedMessage.Builder<GenerateGroundedContentRequest.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
-
mergeFrom
public GenerateGroundedContentRequest.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<GenerateGroundedContentRequest.Builder>- Throws:
IOException
-
getLocation
Required. Location resource. Format: `projects/{project}/locations/{location}`.string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getLocationin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Required. Location resource. Format: `projects/{project}/locations/{location}`.string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getLocationBytesin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- The bytes for location.
-
setLocation
Required. Location resource. Format: `projects/{project}/locations/{location}`.string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Required. Location resource. Format: `projects/{project}/locations/{location}`.string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setLocationBytes
public GenerateGroundedContentRequest.Builder setLocationBytes(com.google.protobuf.ByteString value) Required. Location resource. Format: `projects/{project}/locations/{location}`.string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
hasSystemInstruction
public boolean hasSystemInstruction()Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;- Specified by:
hasSystemInstructionin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- Whether the systemInstruction field is set.
-
getSystemInstruction
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;- Specified by:
getSystemInstructionin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- The systemInstruction.
-
setSystemInstruction
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5; -
setSystemInstruction
public GenerateGroundedContentRequest.Builder setSystemInstruction(GroundedGenerationContent.Builder builderForValue) Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5; -
mergeSystemInstruction
public GenerateGroundedContentRequest.Builder mergeSystemInstruction(GroundedGenerationContent value) Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5; -
clearSystemInstruction
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5; -
getSystemInstructionBuilder
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5; -
getSystemInstructionOrBuilder
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;- Specified by:
getSystemInstructionOrBuilderin interfaceGenerateGroundedContentRequestOrBuilder
-
getContentsList
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;- Specified by:
getContentsListin interfaceGenerateGroundedContentRequestOrBuilder
-
getContentsCount
public int getContentsCount()Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;- Specified by:
getContentsCountin interfaceGenerateGroundedContentRequestOrBuilder
-
getContents
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;- Specified by:
getContentsin interfaceGenerateGroundedContentRequestOrBuilder
-
setContents
public GenerateGroundedContentRequest.Builder setContents(int index, GroundedGenerationContent value) Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
setContents
public GenerateGroundedContentRequest.Builder setContents(int index, GroundedGenerationContent.Builder builderForValue) Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
addContents
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
addContents
public GenerateGroundedContentRequest.Builder addContents(int index, GroundedGenerationContent value) Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
addContents
public GenerateGroundedContentRequest.Builder addContents(GroundedGenerationContent.Builder builderForValue) Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
addContents
public GenerateGroundedContentRequest.Builder addContents(int index, GroundedGenerationContent.Builder builderForValue) Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
addAllContents
public GenerateGroundedContentRequest.Builder addAllContents(Iterable<? extends GroundedGenerationContent> values) Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
clearContents
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
removeContents
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
getContentsBuilder
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
getContentsOrBuilder
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;- Specified by:
getContentsOrBuilderin interfaceGenerateGroundedContentRequestOrBuilder
-
getContentsOrBuilderList
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;- Specified by:
getContentsOrBuilderListin interfaceGenerateGroundedContentRequestOrBuilder
-
addContentsBuilder
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
addContentsBuilder
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
getContentsBuilderList
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2; -
hasGenerationSpec
public boolean hasGenerationSpec()Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;- Specified by:
hasGenerationSpecin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- Whether the generationSpec field is set.
-
getGenerationSpec
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;- Specified by:
getGenerationSpecin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- The generationSpec.
-
setGenerationSpec
public GenerateGroundedContentRequest.Builder setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec value) Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; -
setGenerationSpec
public GenerateGroundedContentRequest.Builder setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.Builder builderForValue) Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; -
mergeGenerationSpec
public GenerateGroundedContentRequest.Builder mergeGenerationSpec(GenerateGroundedContentRequest.GenerationSpec value) Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; -
clearGenerationSpec
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; -
getGenerationSpecBuilder
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; -
getGenerationSpecOrBuilder
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;- Specified by:
getGenerationSpecOrBuilderin interfaceGenerateGroundedContentRequestOrBuilder
-
hasGroundingSpec
public boolean hasGroundingSpec()Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;- Specified by:
hasGroundingSpecin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- Whether the groundingSpec field is set.
-
getGroundingSpec
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;- Specified by:
getGroundingSpecin interfaceGenerateGroundedContentRequestOrBuilder- Returns:
- The groundingSpec.
-
setGroundingSpec
public GenerateGroundedContentRequest.Builder setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec value) Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; -
setGroundingSpec
public GenerateGroundedContentRequest.Builder setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.Builder builderForValue) Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; -
mergeGroundingSpec
public GenerateGroundedContentRequest.Builder mergeGroundingSpec(GenerateGroundedContentRequest.GroundingSpec value) Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; -
clearGroundingSpec
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; -
getGroundingSpecBuilder
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; -
getGroundingSpecOrBuilder
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;- Specified by:
getGroundingSpecOrBuilderin interfaceGenerateGroundedContentRequestOrBuilder
-
getUserLabelsCount
public int getUserLabelsCount()Description copied from interface:GenerateGroundedContentRequestOrBuilderThe 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 = 6;- Specified by:
getUserLabelsCountin interfaceGenerateGroundedContentRequestOrBuilder
-
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 = 6;- Specified by:
containsUserLabelsin interfaceGenerateGroundedContentRequestOrBuilder
-
getUserLabels
Deprecated.UsegetUserLabelsMap()instead.- Specified by:
getUserLabelsin interfaceGenerateGroundedContentRequestOrBuilder
-
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 = 6;- Specified by:
getUserLabelsMapin interfaceGenerateGroundedContentRequestOrBuilder
-
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 = 6;- Specified by:
getUserLabelsOrDefaultin interfaceGenerateGroundedContentRequestOrBuilder
-
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 = 6;- Specified by:
getUserLabelsOrThrowin interfaceGenerateGroundedContentRequestOrBuilder
-
clearUserLabels
-
removeUserLabels
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 = 6; -
getMutableUserLabels
Deprecated.Use alternate mutation accessors instead. -
putUserLabels
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 = 6; -
putAllUserLabels
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 = 6;
-