Class DemandGenProductAdInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.DemandGenProductAdInfo
All Implemented Interfaces:
DemandGenProductAdInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class DemandGenProductAdInfo extends com.google.protobuf.GeneratedMessageV3 implements DemandGenProductAdInfoOrBuilder
 A Demand Gen product ad.
 
Protobuf type google.ads.googleads.v18.common.DemandGenProductAdInfo
See Also:
  • Field Details

    • HEADLINE_FIELD_NUMBER

      public static final int HEADLINE_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • LOGO_IMAGE_FIELD_NUMBER

      public static final int LOGO_IMAGE_FIELD_NUMBER
      See Also:
    • BUSINESS_NAME_FIELD_NUMBER

      public static final int BUSINESS_NAME_FIELD_NUMBER
      See Also:
    • CALL_TO_ACTION_FIELD_NUMBER

      public static final int CALL_TO_ACTION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DemandGenProductAdInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DemandGenProductAdInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DemandGenProductAdInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DemandGenProductAdInfo.Builder newBuilder()
    • newBuilder

      public static DemandGenProductAdInfo.Builder newBuilder(DemandGenProductAdInfo prototype)
    • toBuilder

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

      protected DemandGenProductAdInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static DemandGenProductAdInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DemandGenProductAdInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<DemandGenProductAdInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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