Class GenerateTextRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
com.google.ads.googleads.v22.services.GenerateTextRequest.Builder
All Implemented Interfaces:
GenerateTextRequestOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenerateTextRequest

public static final class GenerateTextRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder> implements GenerateTextRequestOrBuilder
 Request message for
 [AssetGenerationService.GenerateText][google.ads.googleads.v22.services.AssetGenerationService.GenerateText]
 
Protobuf type google.ads.googleads.v22.services.GenerateTextRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.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.GeneratedMessageV3.Builder<GenerateTextRequest.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<GenerateTextRequest.Builder>
    • getDefaultInstanceForType

      public GenerateTextRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
    • setField

      public GenerateTextRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
    • clearField

      public GenerateTextRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
    • clearOneof

      public GenerateTextRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
    • setRepeatedField

      public GenerateTextRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
    • addRepeatedField

      public GenerateTextRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
    • mergeFrom

      public GenerateTextRequest.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<GenerateTextRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,GenerateTextRequest.Builder>
    • mergeFrom

      public GenerateTextRequest.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<GenerateTextRequest.Builder>
      Throws:
      IOException
    • getContextCase

      public GenerateTextRequest.ContextCase getContextCase()
      Specified by:
      getContextCase in interface GenerateTextRequestOrBuilder
    • clearContext

      public GenerateTextRequest.Builder clearContext()
    • getCustomerId

      public String getCustomerId()
       Required. The ID of the customer to generate assets for. Required.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerId in interface GenerateTextRequestOrBuilder
      Returns:
      The customerId.
    • getCustomerIdBytes

      public com.google.protobuf.ByteString getCustomerIdBytes()
       Required. The ID of the customer to generate assets for. Required.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerIdBytes in interface GenerateTextRequestOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

      public GenerateTextRequest.Builder setCustomerId(String value)
       Required. The ID of the customer to generate assets for. Required.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customerId to set.
      Returns:
      This builder for chaining.
    • clearCustomerId

      public GenerateTextRequest.Builder clearCustomerId()
       Required. The ID of the customer to generate assets for. Required.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public GenerateTextRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the customer to generate assets for. Required.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for customerId to set.
      Returns:
      This builder for chaining.
    • getAssetFieldTypesList

      public List<AssetFieldTypeEnum.AssetFieldType> getAssetFieldTypesList()
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAssetFieldTypesList in interface GenerateTextRequestOrBuilder
      Returns:
      A list containing the assetFieldTypes.
    • getAssetFieldTypesCount

      public int getAssetFieldTypesCount()
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAssetFieldTypesCount in interface GenerateTextRequestOrBuilder
      Returns:
      The count of assetFieldTypes.
    • getAssetFieldTypes

      public AssetFieldTypeEnum.AssetFieldType getAssetFieldTypes(int index)
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAssetFieldTypes in interface GenerateTextRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The assetFieldTypes at the given index.
    • setAssetFieldTypes

      public GenerateTextRequest.Builder setAssetFieldTypes(int index, AssetFieldTypeEnum.AssetFieldType value)
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The assetFieldTypes to set.
      Returns:
      This builder for chaining.
    • addAssetFieldTypes

       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The assetFieldTypes to add.
      Returns:
      This builder for chaining.
    • addAllAssetFieldTypes

      public GenerateTextRequest.Builder addAllAssetFieldTypes(Iterable<? extends AssetFieldTypeEnum.AssetFieldType> values)
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The assetFieldTypes to add.
      Returns:
      This builder for chaining.
    • clearAssetFieldTypes

      public GenerateTextRequest.Builder clearAssetFieldTypes()
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getAssetFieldTypesValueList

      public List<Integer> getAssetFieldTypesValueList()
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAssetFieldTypesValueList in interface GenerateTextRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for assetFieldTypes.
    • getAssetFieldTypesValue

      public int getAssetFieldTypesValue(int index)
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAssetFieldTypesValue in interface GenerateTextRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of assetFieldTypes at the given index.
    • setAssetFieldTypesValue

      public GenerateTextRequest.Builder setAssetFieldTypesValue(int index, int value)
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for assetFieldTypes to set.
      Returns:
      This builder for chaining.
    • addAssetFieldTypesValue

      public GenerateTextRequest.Builder addAssetFieldTypesValue(int value)
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for assetFieldTypes to add.
      Returns:
      This builder for chaining.
    • addAllAssetFieldTypesValue

      public GenerateTextRequest.Builder addAllAssetFieldTypesValue(Iterable<Integer> values)
       Required. Which field types text is being generated for. Supported values
       are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
       
      repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The enum numeric values on the wire for assetFieldTypes to add.
      Returns:
      This builder for chaining.
    • getFinalUrl

      public String getFinalUrl()
       Optional. Final url to use as a source for generating assets.
       Required if existing_generation_context is not provided
       or does not have a final url associated with it.
       
      string final_url = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFinalUrl in interface GenerateTextRequestOrBuilder
      Returns:
      The finalUrl.
    • getFinalUrlBytes

      public com.google.protobuf.ByteString getFinalUrlBytes()
       Optional. Final url to use as a source for generating assets.
       Required if existing_generation_context is not provided
       or does not have a final url associated with it.
       
      string final_url = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFinalUrlBytes in interface GenerateTextRequestOrBuilder
      Returns:
      The bytes for finalUrl.
    • setFinalUrl

      public GenerateTextRequest.Builder setFinalUrl(String value)
       Optional. Final url to use as a source for generating assets.
       Required if existing_generation_context is not provided
       or does not have a final url associated with it.
       
      string final_url = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The finalUrl to set.
      Returns:
      This builder for chaining.
    • clearFinalUrl

      public GenerateTextRequest.Builder clearFinalUrl()
       Optional. Final url to use as a source for generating assets.
       Required if existing_generation_context is not provided
       or does not have a final url associated with it.
       
      string final_url = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFinalUrlBytes

      public GenerateTextRequest.Builder setFinalUrlBytes(com.google.protobuf.ByteString value)
       Optional. Final url to use as a source for generating assets.
       Required if existing_generation_context is not provided
       or does not have a final url associated with it.
       
      string final_url = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for finalUrl to set.
      Returns:
      This builder for chaining.
    • getFreeformPrompt

      public String getFreeformPrompt()
       Optional. A freeform description of what assets should be generated.
       The string length must be between 1 and 1500, inclusive.
       
      string freeform_prompt = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFreeformPrompt in interface GenerateTextRequestOrBuilder
      Returns:
      The freeformPrompt.
    • getFreeformPromptBytes

      public com.google.protobuf.ByteString getFreeformPromptBytes()
       Optional. A freeform description of what assets should be generated.
       The string length must be between 1 and 1500, inclusive.
       
      string freeform_prompt = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFreeformPromptBytes in interface GenerateTextRequestOrBuilder
      Returns:
      The bytes for freeformPrompt.
    • setFreeformPrompt

      public GenerateTextRequest.Builder setFreeformPrompt(String value)
       Optional. A freeform description of what assets should be generated.
       The string length must be between 1 and 1500, inclusive.
       
      string freeform_prompt = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The freeformPrompt to set.
      Returns:
      This builder for chaining.
    • clearFreeformPrompt

      public GenerateTextRequest.Builder clearFreeformPrompt()
       Optional. A freeform description of what assets should be generated.
       The string length must be between 1 and 1500, inclusive.
       
      string freeform_prompt = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFreeformPromptBytes

      public GenerateTextRequest.Builder setFreeformPromptBytes(com.google.protobuf.ByteString value)
       Optional. A freeform description of what assets should be generated.
       The string length must be between 1 and 1500, inclusive.
       
      string freeform_prompt = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for freeformPrompt to set.
      Returns:
      This builder for chaining.
    • getKeywordsList

      public com.google.protobuf.ProtocolStringList getKeywordsList()
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywordsList in interface GenerateTextRequestOrBuilder
      Returns:
      A list containing the keywords.
    • getKeywordsCount

      public int getKeywordsCount()
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywordsCount in interface GenerateTextRequestOrBuilder
      Returns:
      The count of keywords.
    • getKeywords

      public String getKeywords(int index)
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywords in interface GenerateTextRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The keywords at the given index.
    • getKeywordsBytes

      public com.google.protobuf.ByteString getKeywordsBytes(int index)
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywordsBytes in interface GenerateTextRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the keywords at the given index.
    • setKeywords

      public GenerateTextRequest.Builder setKeywords(int index, String value)
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The keywords to set.
      Returns:
      This builder for chaining.
    • addKeywords

      public GenerateTextRequest.Builder addKeywords(String value)
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The keywords to add.
      Returns:
      This builder for chaining.
    • addAllKeywords

      public GenerateTextRequest.Builder addAllKeywords(Iterable<String> values)
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The keywords to add.
      Returns:
      This builder for chaining.
    • clearKeywords

      public GenerateTextRequest.Builder clearKeywords()
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addKeywordsBytes

      public GenerateTextRequest.Builder addKeywordsBytes(com.google.protobuf.ByteString value)
       Optional. A freeform list of keywords that are relevant,
       used to inform asset generation.
       
      repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the keywords to add.
      Returns:
      This builder for chaining.
    • hasExistingGenerationContext

      public boolean hasExistingGenerationContext()
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExistingGenerationContext in interface GenerateTextRequestOrBuilder
      Returns:
      Whether the existingGenerationContext field is set.
    • getExistingGenerationContext

      public AssetGenerationExistingContext getExistingGenerationContext()
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExistingGenerationContext in interface GenerateTextRequestOrBuilder
      Returns:
      The existingGenerationContext.
    • setExistingGenerationContext

      public GenerateTextRequest.Builder setExistingGenerationContext(AssetGenerationExistingContext value)
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setExistingGenerationContext

      public GenerateTextRequest.Builder setExistingGenerationContext(AssetGenerationExistingContext.Builder builderForValue)
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeExistingGenerationContext

      public GenerateTextRequest.Builder mergeExistingGenerationContext(AssetGenerationExistingContext value)
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearExistingGenerationContext

      public GenerateTextRequest.Builder clearExistingGenerationContext()
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getExistingGenerationContextBuilder

      public AssetGenerationExistingContext.Builder getExistingGenerationContextBuilder()
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getExistingGenerationContextOrBuilder

      public AssetGenerationExistingContextOrBuilder getExistingGenerationContextOrBuilder()
       Optional. The setting for which assets are being generated, such as an
       existing AssetGroup or AdGroupAd.
       
      .google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExistingGenerationContextOrBuilder in interface GenerateTextRequestOrBuilder
    • hasAdvertisingChannelType

      public boolean hasAdvertisingChannelType()
       Optional. The advertising channel for which to generate assets. Required
       if existing_context is not provided.
      
       Supported channel types:
       SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
       
      .google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAdvertisingChannelType in interface GenerateTextRequestOrBuilder
      Returns:
      Whether the advertisingChannelType field is set.
    • getAdvertisingChannelTypeValue

      public int getAdvertisingChannelTypeValue()
       Optional. The advertising channel for which to generate assets. Required
       if existing_context is not provided.
      
       Supported channel types:
       SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
       
      .google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvertisingChannelTypeValue in interface GenerateTextRequestOrBuilder
      Returns:
      The enum numeric value on the wire for advertisingChannelType.
    • setAdvertisingChannelTypeValue

      public GenerateTextRequest.Builder setAdvertisingChannelTypeValue(int value)
       Optional. The advertising channel for which to generate assets. Required
       if existing_context is not provided.
      
       Supported channel types:
       SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
       
      .google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for advertisingChannelType to set.
      Returns:
      This builder for chaining.
    • getAdvertisingChannelType

      public AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType()
       Optional. The advertising channel for which to generate assets. Required
       if existing_context is not provided.
      
       Supported channel types:
       SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
       
      .google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvertisingChannelType in interface GenerateTextRequestOrBuilder
      Returns:
      The advertisingChannelType.
    • setAdvertisingChannelType

       Optional. The advertising channel for which to generate assets. Required
       if existing_context is not provided.
      
       Supported channel types:
       SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
       
      .google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The advertisingChannelType to set.
      Returns:
      This builder for chaining.
    • clearAdvertisingChannelType

      public GenerateTextRequest.Builder clearAdvertisingChannelType()
       Optional. The advertising channel for which to generate assets. Required
       if existing_context is not provided.
      
       Supported channel types:
       SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
       
      .google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final GenerateTextRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>
    • mergeUnknownFields

      public final GenerateTextRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateTextRequest.Builder>