Class LocalAdInfo

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

public final class LocalAdInfo extends com.google.protobuf.GeneratedMessageV3 implements LocalAdInfoOrBuilder
 A local ad.
 
Protobuf type google.ads.googleads.v18.common.LocalAdInfo
See Also:
  • Field Details

    • HEADLINES_FIELD_NUMBER

      public static final int HEADLINES_FIELD_NUMBER
      See Also:
    • DESCRIPTIONS_FIELD_NUMBER

      public static final int DESCRIPTIONS_FIELD_NUMBER
      See Also:
    • CALL_TO_ACTIONS_FIELD_NUMBER

      public static final int CALL_TO_ACTIONS_FIELD_NUMBER
      See Also:
    • MARKETING_IMAGES_FIELD_NUMBER

      public static final int MARKETING_IMAGES_FIELD_NUMBER
      See Also:
    • LOGO_IMAGES_FIELD_NUMBER

      public static final int LOGO_IMAGES_FIELD_NUMBER
      See Also:
    • VIDEOS_FIELD_NUMBER

      public static final int VIDEOS_FIELD_NUMBER
      See Also:
    • PATH1_FIELD_NUMBER

      public static final int PATH1_FIELD_NUMBER
      See Also:
    • PATH2_FIELD_NUMBER

      public static final int PATH2_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
    • getHeadlinesList

      public List<AdTextAsset> getHeadlinesList()
       List of text assets for headlines. When the ad serves the headlines will
       be selected from this list. At least 1 and at most 5 headlines must be
       specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesList in interface LocalAdInfoOrBuilder
    • getHeadlinesOrBuilderList

      public List<? extends AdTextAssetOrBuilder> getHeadlinesOrBuilderList()
       List of text assets for headlines. When the ad serves the headlines will
       be selected from this list. At least 1 and at most 5 headlines must be
       specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesOrBuilderList in interface LocalAdInfoOrBuilder
    • getHeadlinesCount

      public int getHeadlinesCount()
       List of text assets for headlines. When the ad serves the headlines will
       be selected from this list. At least 1 and at most 5 headlines must be
       specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesCount in interface LocalAdInfoOrBuilder
    • getHeadlines

      public AdTextAsset getHeadlines(int index)
       List of text assets for headlines. When the ad serves the headlines will
       be selected from this list. At least 1 and at most 5 headlines must be
       specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlines in interface LocalAdInfoOrBuilder
    • getHeadlinesOrBuilder

      public AdTextAssetOrBuilder getHeadlinesOrBuilder(int index)
       List of text assets for headlines. When the ad serves the headlines will
       be selected from this list. At least 1 and at most 5 headlines must be
       specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesOrBuilder in interface LocalAdInfoOrBuilder
    • getDescriptionsList

      public List<AdTextAsset> getDescriptionsList()
       List of text assets for descriptions. When the ad serves the descriptions
       will be selected from this list. At least 1 and at most 5 descriptions must
       be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsList in interface LocalAdInfoOrBuilder
    • getDescriptionsOrBuilderList

      public List<? extends AdTextAssetOrBuilder> getDescriptionsOrBuilderList()
       List of text assets for descriptions. When the ad serves the descriptions
       will be selected from this list. At least 1 and at most 5 descriptions must
       be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsOrBuilderList in interface LocalAdInfoOrBuilder
    • getDescriptionsCount

      public int getDescriptionsCount()
       List of text assets for descriptions. When the ad serves the descriptions
       will be selected from this list. At least 1 and at most 5 descriptions must
       be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsCount in interface LocalAdInfoOrBuilder
    • getDescriptions

      public AdTextAsset getDescriptions(int index)
       List of text assets for descriptions. When the ad serves the descriptions
       will be selected from this list. At least 1 and at most 5 descriptions must
       be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptions in interface LocalAdInfoOrBuilder
    • getDescriptionsOrBuilder

      public AdTextAssetOrBuilder getDescriptionsOrBuilder(int index)
       List of text assets for descriptions. When the ad serves the descriptions
       will be selected from this list. At least 1 and at most 5 descriptions must
       be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsOrBuilder in interface LocalAdInfoOrBuilder
    • getCallToActionsList

      public List<AdTextAsset> getCallToActionsList()
       List of text assets for call-to-actions. When the ad serves the
       call-to-actions will be selected from this list. At least 1 and at most
       5 call-to-actions must be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset call_to_actions = 3;
      Specified by:
      getCallToActionsList in interface LocalAdInfoOrBuilder
    • getCallToActionsOrBuilderList

      public List<? extends AdTextAssetOrBuilder> getCallToActionsOrBuilderList()
       List of text assets for call-to-actions. When the ad serves the
       call-to-actions will be selected from this list. At least 1 and at most
       5 call-to-actions must be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset call_to_actions = 3;
      Specified by:
      getCallToActionsOrBuilderList in interface LocalAdInfoOrBuilder
    • getCallToActionsCount

      public int getCallToActionsCount()
       List of text assets for call-to-actions. When the ad serves the
       call-to-actions will be selected from this list. At least 1 and at most
       5 call-to-actions must be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset call_to_actions = 3;
      Specified by:
      getCallToActionsCount in interface LocalAdInfoOrBuilder
    • getCallToActions

      public AdTextAsset getCallToActions(int index)
       List of text assets for call-to-actions. When the ad serves the
       call-to-actions will be selected from this list. At least 1 and at most
       5 call-to-actions must be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset call_to_actions = 3;
      Specified by:
      getCallToActions in interface LocalAdInfoOrBuilder
    • getCallToActionsOrBuilder

      public AdTextAssetOrBuilder getCallToActionsOrBuilder(int index)
       List of text assets for call-to-actions. When the ad serves the
       call-to-actions will be selected from this list. At least 1 and at most
       5 call-to-actions must be specified.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset call_to_actions = 3;
      Specified by:
      getCallToActionsOrBuilder in interface LocalAdInfoOrBuilder
    • getMarketingImagesList

      public List<AdImageAsset> getMarketingImagesList()
       List of marketing image assets that may be displayed with the ad. The
       images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
       20 image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset marketing_images = 4;
      Specified by:
      getMarketingImagesList in interface LocalAdInfoOrBuilder
    • getMarketingImagesOrBuilderList

      public List<? extends AdImageAssetOrBuilder> getMarketingImagesOrBuilderList()
       List of marketing image assets that may be displayed with the ad. The
       images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
       20 image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset marketing_images = 4;
      Specified by:
      getMarketingImagesOrBuilderList in interface LocalAdInfoOrBuilder
    • getMarketingImagesCount

      public int getMarketingImagesCount()
       List of marketing image assets that may be displayed with the ad. The
       images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
       20 image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset marketing_images = 4;
      Specified by:
      getMarketingImagesCount in interface LocalAdInfoOrBuilder
    • getMarketingImages

      public AdImageAsset getMarketingImages(int index)
       List of marketing image assets that may be displayed with the ad. The
       images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
       20 image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset marketing_images = 4;
      Specified by:
      getMarketingImages in interface LocalAdInfoOrBuilder
    • getMarketingImagesOrBuilder

      public AdImageAssetOrBuilder getMarketingImagesOrBuilder(int index)
       List of marketing image assets that may be displayed with the ad. The
       images must be 314x600 pixels or 320x320 pixels. At least 1 and at most
       20 image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset marketing_images = 4;
      Specified by:
      getMarketingImagesOrBuilder in interface LocalAdInfoOrBuilder
    • getLogoImagesList

      public List<AdImageAsset> getLogoImagesList()
       List of logo image assets that may be displayed with the ad. The images
       must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
       image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
      Specified by:
      getLogoImagesList in interface LocalAdInfoOrBuilder
    • getLogoImagesOrBuilderList

      public List<? extends AdImageAssetOrBuilder> getLogoImagesOrBuilderList()
       List of logo image assets that may be displayed with the ad. The images
       must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
       image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
      Specified by:
      getLogoImagesOrBuilderList in interface LocalAdInfoOrBuilder
    • getLogoImagesCount

      public int getLogoImagesCount()
       List of logo image assets that may be displayed with the ad. The images
       must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
       image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
      Specified by:
      getLogoImagesCount in interface LocalAdInfoOrBuilder
    • getLogoImages

      public AdImageAsset getLogoImages(int index)
       List of logo image assets that may be displayed with the ad. The images
       must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
       image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
      Specified by:
      getLogoImages in interface LocalAdInfoOrBuilder
    • getLogoImagesOrBuilder

      public AdImageAssetOrBuilder getLogoImagesOrBuilder(int index)
       List of logo image assets that may be displayed with the ad. The images
       must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5
       image assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdImageAsset logo_images = 5;
      Specified by:
      getLogoImagesOrBuilder in interface LocalAdInfoOrBuilder
    • getVideosList

      public List<AdVideoAsset> getVideosList()
       List of YouTube video assets that may be displayed with the ad. At least 1
       and at most 20 video assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 6;
      Specified by:
      getVideosList in interface LocalAdInfoOrBuilder
    • getVideosOrBuilderList

      public List<? extends AdVideoAssetOrBuilder> getVideosOrBuilderList()
       List of YouTube video assets that may be displayed with the ad. At least 1
       and at most 20 video assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 6;
      Specified by:
      getVideosOrBuilderList in interface LocalAdInfoOrBuilder
    • getVideosCount

      public int getVideosCount()
       List of YouTube video assets that may be displayed with the ad. At least 1
       and at most 20 video assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 6;
      Specified by:
      getVideosCount in interface LocalAdInfoOrBuilder
    • getVideos

      public AdVideoAsset getVideos(int index)
       List of YouTube video assets that may be displayed with the ad. At least 1
       and at most 20 video assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 6;
      Specified by:
      getVideos in interface LocalAdInfoOrBuilder
    • getVideosOrBuilder

      public AdVideoAssetOrBuilder getVideosOrBuilder(int index)
       List of YouTube video assets that may be displayed with the ad. At least 1
       and at most 20 video assets must be specified.
       
      repeated .google.ads.googleads.v18.common.AdVideoAsset videos = 6;
      Specified by:
      getVideosOrBuilder in interface LocalAdInfoOrBuilder
    • hasPath1

      public boolean hasPath1()
       First part of optional text that can be appended to the URL in the ad.
       
      optional string path1 = 9;
      Specified by:
      hasPath1 in interface LocalAdInfoOrBuilder
      Returns:
      Whether the path1 field is set.
    • getPath1

      public String getPath1()
       First part of optional text that can be appended to the URL in the ad.
       
      optional string path1 = 9;
      Specified by:
      getPath1 in interface LocalAdInfoOrBuilder
      Returns:
      The path1.
    • getPath1Bytes

      public com.google.protobuf.ByteString getPath1Bytes()
       First part of optional text that can be appended to the URL in the ad.
       
      optional string path1 = 9;
      Specified by:
      getPath1Bytes in interface LocalAdInfoOrBuilder
      Returns:
      The bytes for path1.
    • hasPath2

      public boolean hasPath2()
       Second part of optional text that can be appended to the URL in the ad.
       This field can only be set when `path1` is also set.
       
      optional string path2 = 10;
      Specified by:
      hasPath2 in interface LocalAdInfoOrBuilder
      Returns:
      Whether the path2 field is set.
    • getPath2

      public String getPath2()
       Second part of optional text that can be appended to the URL in the ad.
       This field can only be set when `path1` is also set.
       
      optional string path2 = 10;
      Specified by:
      getPath2 in interface LocalAdInfoOrBuilder
      Returns:
      The path2.
    • getPath2Bytes

      public com.google.protobuf.ByteString getPath2Bytes()
       Second part of optional text that can be appended to the URL in the ad.
       This field can only be set when `path1` is also set.
       
      optional string path2 = 10;
      Specified by:
      getPath2Bytes in interface LocalAdInfoOrBuilder
      Returns:
      The bytes for path2.
    • 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 LocalAdInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static LocalAdInfo.Builder newBuilder()
    • newBuilder

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

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

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

      public static LocalAdInfo getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<LocalAdInfo> 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 LocalAdInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder