Class DiscoveryVideoResponsiveAdInfo

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

    public final class DiscoveryVideoResponsiveAdInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements DiscoveryVideoResponsiveAdInfoOrBuilder
     A discovery video responsive ad.
     
    Protobuf type google.ads.googleads.v15.common.DiscoveryVideoResponsiveAdInfo
    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
      • 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
      • getLogoImagesList

        public java.util.List<AdImageAsset> getLogoImagesList()
         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%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImagesList in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • getLogoImagesCount

        public int getLogoImagesCount()
         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%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImagesCount in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • getLogoImages

        public AdImageAsset getLogoImages​(int index)
         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%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImages in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • getBreadcrumb1Bytes

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

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

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

        public int getCallToActionsCount()
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
        Specified by:
        getCallToActionsCount in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • 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 DiscoveryVideoResponsiveAdInfo parseFrom​(java.nio.ByteBuffer data)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiscoveryVideoResponsiveAdInfo parseFrom​(java.nio.ByteBuffer data,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        public static DiscoveryVideoResponsiveAdInfo parseFrom​(java.io.InputStream input)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

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

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

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

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

        protected DiscoveryVideoResponsiveAdInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

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