Class DemandGenProductAdInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DemandGenProductAdInfo.Builder>
com.google.ads.googleads.v18.common.DemandGenProductAdInfo.Builder
All Implemented Interfaces:
DemandGenProductAdInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DemandGenProductAdInfo

public static final class DemandGenProductAdInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DemandGenProductAdInfo.Builder> implements DemandGenProductAdInfoOrBuilder
 A Demand Gen product ad.
 
Protobuf type google.ads.googleads.v18.common.DemandGenProductAdInfo
  • Method Details

    • getDescriptor

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

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

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

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

      public DemandGenProductAdInfo 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<DemandGenProductAdInfo.Builder>
    • setField

      public DemandGenProductAdInfo.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<DemandGenProductAdInfo.Builder>
    • clearField

      public DemandGenProductAdInfo.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<DemandGenProductAdInfo.Builder>
    • clearOneof

      public DemandGenProductAdInfo.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<DemandGenProductAdInfo.Builder>
    • setRepeatedField

      public DemandGenProductAdInfo.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<DemandGenProductAdInfo.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public DemandGenProductAdInfo.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<DemandGenProductAdInfo.Builder>
      Throws:
      IOException
    • hasHeadline

      public boolean hasHeadline()
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasHeadline in interface DemandGenProductAdInfoOrBuilder
      Returns:
      Whether the headline field is set.
    • getHeadline

      public AdTextAsset getHeadline()
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHeadline in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The headline.
    • setHeadline

      public DemandGenProductAdInfo.Builder setHeadline(AdTextAsset value)
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
    • setHeadline

      public DemandGenProductAdInfo.Builder setHeadline(AdTextAsset.Builder builderForValue)
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeHeadline

      public DemandGenProductAdInfo.Builder mergeHeadline(AdTextAsset value)
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearHeadline

      public DemandGenProductAdInfo.Builder clearHeadline()
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
    • getHeadlineBuilder

      public AdTextAsset.Builder getHeadlineBuilder()
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
    • getHeadlineOrBuilder

      public AdTextAssetOrBuilder getHeadlineOrBuilder()
       Required. Text asset used for the short headline.
       
      optional .google.ads.googleads.v18.common.AdTextAsset headline = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHeadlineOrBuilder in interface DemandGenProductAdInfoOrBuilder
    • hasDescription

      public boolean hasDescription()
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDescription in interface DemandGenProductAdInfoOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public AdTextAsset getDescription()
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescription in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The description.
    • setDescription

      public DemandGenProductAdInfo.Builder setDescription(AdTextAsset value)
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
    • setDescription

      public DemandGenProductAdInfo.Builder setDescription(AdTextAsset.Builder builderForValue)
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeDescription

      public DemandGenProductAdInfo.Builder mergeDescription(AdTextAsset value)
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearDescription

      public DemandGenProductAdInfo.Builder clearDescription()
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDescriptionBuilder

      public AdTextAsset.Builder getDescriptionBuilder()
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDescriptionOrBuilder

      public AdTextAssetOrBuilder getDescriptionOrBuilder()
       Required. Text asset used for the description.
       
      optional .google.ads.googleads.v18.common.AdTextAsset description = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescriptionOrBuilder in interface DemandGenProductAdInfoOrBuilder
    • hasLogoImage

      public boolean hasLogoImage()
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasLogoImage in interface DemandGenProductAdInfoOrBuilder
      Returns:
      Whether the logoImage field is set.
    • getLogoImage

      public AdImageAsset getLogoImage()
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLogoImage in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The logoImage.
    • setLogoImage

      public DemandGenProductAdInfo.Builder setLogoImage(AdImageAsset value)
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
    • setLogoImage

      public DemandGenProductAdInfo.Builder setLogoImage(AdImageAsset.Builder builderForValue)
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeLogoImage

      public DemandGenProductAdInfo.Builder mergeLogoImage(AdImageAsset value)
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearLogoImage

      public DemandGenProductAdInfo.Builder clearLogoImage()
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
    • getLogoImageBuilder

      public AdImageAsset.Builder getLogoImageBuilder()
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
    • getLogoImageOrBuilder

      public AdImageAssetOrBuilder getLogoImageOrBuilder()
       Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
       and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
       (+-1%).
       
      optional .google.ads.googleads.v18.common.AdImageAsset logo_image = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLogoImageOrBuilder in interface DemandGenProductAdInfoOrBuilder
    • getBreadcrumb1

      public String getBreadcrumb1()
       First part of text that appears in the ad with the displayed URL.
       
      string breadcrumb1 = 4;
      Specified by:
      getBreadcrumb1 in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The breadcrumb1.
    • getBreadcrumb1Bytes

      public com.google.protobuf.ByteString getBreadcrumb1Bytes()
       First part of text that appears in the ad with the displayed URL.
       
      string breadcrumb1 = 4;
      Specified by:
      getBreadcrumb1Bytes in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The bytes for breadcrumb1.
    • setBreadcrumb1

      public DemandGenProductAdInfo.Builder setBreadcrumb1(String value)
       First part of text that appears in the ad with the displayed URL.
       
      string breadcrumb1 = 4;
      Parameters:
      value - The breadcrumb1 to set.
      Returns:
      This builder for chaining.
    • clearBreadcrumb1

      public DemandGenProductAdInfo.Builder clearBreadcrumb1()
       First part of text that appears in the ad with the displayed URL.
       
      string breadcrumb1 = 4;
      Returns:
      This builder for chaining.
    • setBreadcrumb1Bytes

      public DemandGenProductAdInfo.Builder setBreadcrumb1Bytes(com.google.protobuf.ByteString value)
       First part of text that appears in the ad with the displayed URL.
       
      string breadcrumb1 = 4;
      Parameters:
      value - The bytes for breadcrumb1 to set.
      Returns:
      This builder for chaining.
    • getBreadcrumb2

      public String getBreadcrumb2()
       Second part of text that appears in the ad with the displayed URL.
       
      string breadcrumb2 = 5;
      Specified by:
      getBreadcrumb2 in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The breadcrumb2.
    • getBreadcrumb2Bytes

      public com.google.protobuf.ByteString getBreadcrumb2Bytes()
       Second part of text that appears in the ad with the displayed URL.
       
      string breadcrumb2 = 5;
      Specified by:
      getBreadcrumb2Bytes in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The bytes for breadcrumb2.
    • setBreadcrumb2

      public DemandGenProductAdInfo.Builder setBreadcrumb2(String value)
       Second part of text that appears in the ad with the displayed URL.
       
      string breadcrumb2 = 5;
      Parameters:
      value - The breadcrumb2 to set.
      Returns:
      This builder for chaining.
    • clearBreadcrumb2

      public DemandGenProductAdInfo.Builder clearBreadcrumb2()
       Second part of text that appears in the ad with the displayed URL.
       
      string breadcrumb2 = 5;
      Returns:
      This builder for chaining.
    • setBreadcrumb2Bytes

      public DemandGenProductAdInfo.Builder setBreadcrumb2Bytes(com.google.protobuf.ByteString value)
       Second part of text that appears in the ad with the displayed URL.
       
      string breadcrumb2 = 5;
      Parameters:
      value - The bytes for breadcrumb2 to set.
      Returns:
      This builder for chaining.
    • hasBusinessName

      public boolean hasBusinessName()
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBusinessName in interface DemandGenProductAdInfoOrBuilder
      Returns:
      Whether the businessName field is set.
    • getBusinessName

      public AdTextAsset getBusinessName()
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBusinessName in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The businessName.
    • setBusinessName

      public DemandGenProductAdInfo.Builder setBusinessName(AdTextAsset value)
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
    • setBusinessName

      public DemandGenProductAdInfo.Builder setBusinessName(AdTextAsset.Builder builderForValue)
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
    • mergeBusinessName

      public DemandGenProductAdInfo.Builder mergeBusinessName(AdTextAsset value)
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
    • clearBusinessName

      public DemandGenProductAdInfo.Builder clearBusinessName()
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
    • getBusinessNameBuilder

      public AdTextAsset.Builder getBusinessNameBuilder()
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
    • getBusinessNameOrBuilder

      public AdTextAssetOrBuilder getBusinessNameOrBuilder()
       Required. The advertiser/brand name.
       
      .google.ads.googleads.v18.common.AdTextAsset business_name = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBusinessNameOrBuilder in interface DemandGenProductAdInfoOrBuilder
    • hasCallToAction

      public boolean hasCallToAction()
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
      Specified by:
      hasCallToAction in interface DemandGenProductAdInfoOrBuilder
      Returns:
      Whether the callToAction field is set.
    • getCallToAction

      public AdCallToActionAsset getCallToAction()
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
      Specified by:
      getCallToAction in interface DemandGenProductAdInfoOrBuilder
      Returns:
      The callToAction.
    • setCallToAction

      public DemandGenProductAdInfo.Builder setCallToAction(AdCallToActionAsset value)
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
    • setCallToAction

      public DemandGenProductAdInfo.Builder setCallToAction(AdCallToActionAsset.Builder builderForValue)
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
    • mergeCallToAction

      public DemandGenProductAdInfo.Builder mergeCallToAction(AdCallToActionAsset value)
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
    • clearCallToAction

      public DemandGenProductAdInfo.Builder clearCallToAction()
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
    • getCallToActionBuilder

      public AdCallToActionAsset.Builder getCallToActionBuilder()
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
    • getCallToActionOrBuilder

      public AdCallToActionAssetOrBuilder getCallToActionOrBuilder()
       Asset of type CallToActionAsset used for the "Call To Action" button.
       
      optional .google.ads.googleads.v18.common.AdCallToActionAsset call_to_action = 7;
      Specified by:
      getCallToActionOrBuilder in interface DemandGenProductAdInfoOrBuilder
    • setUnknownFields

      public final DemandGenProductAdInfo.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<DemandGenProductAdInfo.Builder>
    • mergeUnknownFields

      public final DemandGenProductAdInfo.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<DemandGenProductAdInfo.Builder>