Class LocalAdInfo

  • All Implemented Interfaces:
    LocalAdInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class LocalAdInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements LocalAdInfoOrBuilder
     A local ad.
     
    Protobuf type google.ads.googleads.v10.common.LocalAdInfo
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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 java.util.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.v10.common.AdTextAsset headlines = 1;
        Specified by:
        getHeadlinesList in interface LocalAdInfoOrBuilder
      • getHeadlinesOrBuilderList

        public java.util.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.v10.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.v10.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.v10.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.v10.common.AdTextAsset headlines = 1;
        Specified by:
        getHeadlinesOrBuilder in interface LocalAdInfoOrBuilder
      • getDescriptionsList

        public java.util.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.v10.common.AdTextAsset descriptions = 2;
        Specified by:
        getDescriptionsList in interface LocalAdInfoOrBuilder
      • getDescriptionsOrBuilderList

        public java.util.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.v10.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.v10.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.v10.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.v10.common.AdTextAsset descriptions = 2;
        Specified by:
        getDescriptionsOrBuilder in interface LocalAdInfoOrBuilder
      • getCallToActionsList

        public java.util.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. Call-to-actions are
         optional and at most 5 can be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 3;
        Specified by:
        getCallToActionsList in interface LocalAdInfoOrBuilder
      • getCallToActionsOrBuilderList

        public java.util.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. Call-to-actions are
         optional and at most 5 can be specified.
         
        repeated .google.ads.googleads.v10.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. Call-to-actions are
         optional and at most 5 can be specified.
         
        repeated .google.ads.googleads.v10.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. Call-to-actions are
         optional and at most 5 can be specified.
         
        repeated .google.ads.googleads.v10.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. Call-to-actions are
         optional and at most 5 can be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset call_to_actions = 3;
        Specified by:
        getCallToActionsOrBuilder in interface LocalAdInfoOrBuilder
      • getMarketingImagesList

        public java.util.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.v10.common.AdImageAsset marketing_images = 4;
        Specified by:
        getMarketingImagesList in interface LocalAdInfoOrBuilder
      • getMarketingImagesOrBuilderList

        public java.util.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.v10.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.v10.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.v10.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.v10.common.AdImageAsset marketing_images = 4;
        Specified by:
        getMarketingImagesOrBuilder in interface LocalAdInfoOrBuilder
      • getLogoImagesList

        public java.util.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.v10.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImagesList in interface LocalAdInfoOrBuilder
      • getLogoImagesOrBuilderList

        public java.util.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.v10.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.v10.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.v10.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.v10.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImagesOrBuilder in interface LocalAdInfoOrBuilder
      • getVideosList

        public java.util.List<AdVideoAsset> getVideosList()
         List of YouTube video assets that may be displayed with the ad. Videos
         are optional and at most 20 can be specified.
         
        repeated .google.ads.googleads.v10.common.AdVideoAsset videos = 6;
        Specified by:
        getVideosList in interface LocalAdInfoOrBuilder
      • getVideosOrBuilderList

        public java.util.List<? extends AdVideoAssetOrBuilder> getVideosOrBuilderList()
         List of YouTube video assets that may be displayed with the ad. Videos
         are optional and at most 20 can be specified.
         
        repeated .google.ads.googleads.v10.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. Videos
         are optional and at most 20 can be specified.
         
        repeated .google.ads.googleads.v10.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. Videos
         are optional and at most 20 can be specified.
         
        repeated .google.ads.googleads.v10.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. Videos
         are optional and at most 20 can be specified.
         
        repeated .google.ads.googleads.v10.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 java.lang.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 java.lang.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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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​(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LocalAdInfo parseFrom​(java.nio.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​(java.io.InputStream input)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static LocalAdInfo parseDelimitedFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

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

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

        public LocalAdInfo.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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