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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.Builder>
    • getDefaultInstanceForType

      public GenerateGroundedContentRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GenerateGroundedContentRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GenerateGroundedContentRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.Builder>
      Throws:
      IOException
    • getLocation

      public String getLocation()
       Required. Location resource.
      
       Format: `projects/{project}/locations/{location}`.
       
      string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getLocation in interface GenerateGroundedContentRequestOrBuilder
      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:
      getLocationBytes in interface GenerateGroundedContentRequestOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public GenerateGroundedContentRequest.Builder setLocation(String value)
       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:
      hasSystemInstruction in interface GenerateGroundedContentRequestOrBuilder
      Returns:
      Whether the systemInstruction field is set.
    • getSystemInstruction

      public GroundedGenerationContent 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:
      getSystemInstruction in interface GenerateGroundedContentRequestOrBuilder
      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

       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

      public GenerateGroundedContentRequest.Builder 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

      public GroundedGenerationContent.Builder 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

      public GroundedGenerationContentOrBuilder 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:
      getSystemInstructionOrBuilder in interface GenerateGroundedContentRequestOrBuilder
    • getContentsList

      public List<GroundedGenerationContent> 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:
      getContentsList in interface GenerateGroundedContentRequestOrBuilder
    • 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:
      getContentsCount in interface GenerateGroundedContentRequestOrBuilder
    • getContents

      public GroundedGenerationContent getContents(int index)
       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:
      getContents in interface GenerateGroundedContentRequestOrBuilder
    • 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

       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

       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

      public GenerateGroundedContentRequest.Builder removeContents(int index)
       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

      public GroundedGenerationContent.Builder getContentsBuilder(int index)
       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

      public GroundedGenerationContentOrBuilder getContentsOrBuilder(int index)
       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:
      getContentsOrBuilder in interface GenerateGroundedContentRequestOrBuilder
    • getContentsOrBuilderList

      public List<? extends GroundedGenerationContentOrBuilder> 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:
      getContentsOrBuilderList in interface GenerateGroundedContentRequestOrBuilder
    • addContentsBuilder

      public GroundedGenerationContent.Builder 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

      public GroundedGenerationContent.Builder addContentsBuilder(int index)
       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

      public List<GroundedGenerationContent.Builder> 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:
      hasGenerationSpec in interface GenerateGroundedContentRequestOrBuilder
      Returns:
      Whether the generationSpec field is set.
    • getGenerationSpec

       Content generation specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
      Specified by:
      getGenerationSpec in interface GenerateGroundedContentRequestOrBuilder
      Returns:
      The generationSpec.
    • setGenerationSpec

       Content generation specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
    • setGenerationSpec

       Content generation specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
    • mergeGenerationSpec

       Content generation specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
    • clearGenerationSpec

      public GenerateGroundedContentRequest.Builder clearGenerationSpec()
       Content generation specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
    • getGenerationSpecBuilder

      public GenerateGroundedContentRequest.GenerationSpec.Builder getGenerationSpecBuilder()
       Content generation specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
    • getGenerationSpecOrBuilder

      public GenerateGroundedContentRequest.GenerationSpecOrBuilder getGenerationSpecOrBuilder()
       Content generation specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
      Specified by:
      getGenerationSpecOrBuilder in interface GenerateGroundedContentRequestOrBuilder
    • hasGroundingSpec

      public boolean hasGroundingSpec()
       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
      Specified by:
      hasGroundingSpec in interface GenerateGroundedContentRequestOrBuilder
      Returns:
      Whether the groundingSpec field is set.
    • getGroundingSpec

       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
      Specified by:
      getGroundingSpec in interface GenerateGroundedContentRequestOrBuilder
      Returns:
      The groundingSpec.
    • setGroundingSpec

       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
    • setGroundingSpec

       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
    • mergeGroundingSpec

       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
    • clearGroundingSpec

      public GenerateGroundedContentRequest.Builder clearGroundingSpec()
       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
    • getGroundingSpecBuilder

      public GenerateGroundedContentRequest.GroundingSpec.Builder getGroundingSpecBuilder()
       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
    • getGroundingSpecOrBuilder

      public GenerateGroundedContentRequest.GroundingSpecOrBuilder getGroundingSpecOrBuilder()
       Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
      Specified by:
      getGroundingSpecOrBuilder in interface GenerateGroundedContentRequestOrBuilder
    • getUserLabelsCount

      public int getUserLabelsCount()
      Description copied from interface: GenerateGroundedContentRequestOrBuilder
       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:
      getUserLabelsCount in interface GenerateGroundedContentRequestOrBuilder
    • containsUserLabels

      public boolean containsUserLabels(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 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:
      containsUserLabels in interface GenerateGroundedContentRequestOrBuilder
    • getUserLabels

      @Deprecated public Map<String,String> getUserLabels()
      Deprecated.
      Use getUserLabelsMap() instead.
      Specified by:
      getUserLabels in interface GenerateGroundedContentRequestOrBuilder
    • getUserLabelsMap

      public Map<String,String> 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:
      getUserLabelsMap in interface GenerateGroundedContentRequestOrBuilder
    • getUserLabelsOrDefault

      public String getUserLabelsOrDefault(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 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:
      getUserLabelsOrDefault in interface GenerateGroundedContentRequestOrBuilder
    • getUserLabelsOrThrow

      public String getUserLabelsOrThrow(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 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:
      getUserLabelsOrThrow in interface GenerateGroundedContentRequestOrBuilder
    • clearUserLabels

      public GenerateGroundedContentRequest.Builder clearUserLabels()
    • removeUserLabels

      public GenerateGroundedContentRequest.Builder 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 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 public Map<String,String> getMutableUserLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putUserLabels

      public GenerateGroundedContentRequest.Builder putUserLabels(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 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

      public GenerateGroundedContentRequest.Builder 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 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;