Class CallAdInfo

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

    public final class CallAdInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements CallAdInfoOrBuilder
     A call ad.
     
    Protobuf type google.ads.googleads.v10.common.CallAdInfo
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CallAdInfo.Builder
      A call ad.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getBusinessName()
      The business name in the ad.
      com.google.protobuf.ByteString getBusinessNameBytes()
      The business name in the ad.
      boolean getCallTracked()
      Whether to enable call tracking for the creative.
      java.lang.String getConversionAction()
      The conversion action to attribute a call conversion to.
      com.google.protobuf.ByteString getConversionActionBytes()
      The conversion action to attribute a call conversion to.
      CallConversionReportingStateEnum.CallConversionReportingState getConversionReportingState()
      The call conversion behavior of this call ad.
      int getConversionReportingStateValue()
      The call conversion behavior of this call ad.
      java.lang.String getCountryCode()
      The country code in the ad.
      com.google.protobuf.ByteString getCountryCodeBytes()
      The country code in the ad.
      static CallAdInfo getDefaultInstance()  
      CallAdInfo getDefaultInstanceForType()  
      java.lang.String getDescription1()
      The first line of the ad's description.
      com.google.protobuf.ByteString getDescription1Bytes()
      The first line of the ad's description.
      java.lang.String getDescription2()
      The second line of the ad's description.
      com.google.protobuf.ByteString getDescription2Bytes()
      The second line of the ad's description.
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      boolean getDisableCallConversion()
      Whether to disable call conversion for the creative.
      java.lang.String getHeadline1()
      First headline in the ad.
      com.google.protobuf.ByteString getHeadline1Bytes()
      First headline in the ad.
      java.lang.String getHeadline2()
      Second headline in the ad.
      com.google.protobuf.ByteString getHeadline2Bytes()
      Second headline in the ad.
      com.google.protobuf.Parser<CallAdInfo> getParserForType()  
      java.lang.String getPath1()
      First part of text that can be appended to the URL in the ad.
      com.google.protobuf.ByteString getPath1Bytes()
      First part of text that can be appended to the URL in the ad.
      java.lang.String getPath2()
      Second part of text that can be appended to the URL in the ad.
      com.google.protobuf.ByteString getPath2Bytes()
      Second part of text that can be appended to the URL in the ad.
      java.lang.String getPhoneNumber()
      The phone number in the ad.
      com.google.protobuf.ByteString getPhoneNumberBytes()
      The phone number in the ad.
      java.lang.String getPhoneNumberVerificationUrl()
      The URL to be used for phone number verification.
      com.google.protobuf.ByteString getPhoneNumberVerificationUrlBytes()
      The URL to be used for phone number verification.
      int getSerializedSize()  
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      int hashCode()  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static CallAdInfo.Builder newBuilder()  
      static CallAdInfo.Builder newBuilder​(CallAdInfo prototype)  
      CallAdInfo.Builder newBuilderForType()  
      protected CallAdInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static CallAdInfo parseDelimitedFrom​(java.io.InputStream input)  
      static CallAdInfo parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CallAdInfo parseFrom​(byte[] data)  
      static CallAdInfo parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CallAdInfo parseFrom​(com.google.protobuf.ByteString data)  
      static CallAdInfo parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CallAdInfo parseFrom​(com.google.protobuf.CodedInputStream input)  
      static CallAdInfo parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CallAdInfo parseFrom​(java.io.InputStream input)  
      static CallAdInfo parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static CallAdInfo parseFrom​(java.nio.ByteBuffer data)  
      static CallAdInfo parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<CallAdInfo> parser()  
      CallAdInfo.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
    • Field Detail

      • COUNTRY_CODE_FIELD_NUMBER

        public static final int COUNTRY_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PHONE_NUMBER_FIELD_NUMBER

        public static final int PHONE_NUMBER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_NAME_FIELD_NUMBER

        public static final int BUSINESS_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTION1_FIELD_NUMBER

        public static final int DESCRIPTION1_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTION2_FIELD_NUMBER

        public static final int DESCRIPTION2_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CALL_TRACKED_FIELD_NUMBER

        public static final int CALL_TRACKED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISABLE_CALL_CONVERSION_FIELD_NUMBER

        public static final int DISABLE_CALL_CONVERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PHONE_NUMBER_VERIFICATION_URL_FIELD_NUMBER

        public static final int PHONE_NUMBER_VERIFICATION_URL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONVERSION_ACTION_FIELD_NUMBER

        public static final int CONVERSION_ACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONVERSION_REPORTING_STATE_FIELD_NUMBER

        public static final int CONVERSION_REPORTING_STATE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getCountryCode

        public java.lang.String getCountryCode()
         The country code in the ad.
         
        string country_code = 1;
        Specified by:
        getCountryCode in interface CallAdInfoOrBuilder
        Returns:
        The countryCode.
      • getCountryCodeBytes

        public com.google.protobuf.ByteString getCountryCodeBytes()
         The country code in the ad.
         
        string country_code = 1;
        Specified by:
        getCountryCodeBytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for countryCode.
      • getPhoneNumber

        public java.lang.String getPhoneNumber()
         The phone number in the ad.
         
        string phone_number = 2;
        Specified by:
        getPhoneNumber in interface CallAdInfoOrBuilder
        Returns:
        The phoneNumber.
      • getPhoneNumberBytes

        public com.google.protobuf.ByteString getPhoneNumberBytes()
         The phone number in the ad.
         
        string phone_number = 2;
        Specified by:
        getPhoneNumberBytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for phoneNumber.
      • getBusinessName

        public java.lang.String getBusinessName()
         The business name in the ad.
         
        string business_name = 3;
        Specified by:
        getBusinessName in interface CallAdInfoOrBuilder
        Returns:
        The businessName.
      • getBusinessNameBytes

        public com.google.protobuf.ByteString getBusinessNameBytes()
         The business name in the ad.
         
        string business_name = 3;
        Specified by:
        getBusinessNameBytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for businessName.
      • getHeadline1

        public java.lang.String getHeadline1()
         First headline in the ad.
         
        string headline1 = 11;
        Specified by:
        getHeadline1 in interface CallAdInfoOrBuilder
        Returns:
        The headline1.
      • getHeadline1Bytes

        public com.google.protobuf.ByteString getHeadline1Bytes()
         First headline in the ad.
         
        string headline1 = 11;
        Specified by:
        getHeadline1Bytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for headline1.
      • getHeadline2

        public java.lang.String getHeadline2()
         Second headline in the ad.
         
        string headline2 = 12;
        Specified by:
        getHeadline2 in interface CallAdInfoOrBuilder
        Returns:
        The headline2.
      • getHeadline2Bytes

        public com.google.protobuf.ByteString getHeadline2Bytes()
         Second headline in the ad.
         
        string headline2 = 12;
        Specified by:
        getHeadline2Bytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for headline2.
      • getDescription1

        public java.lang.String getDescription1()
         The first line of the ad's description.
         
        string description1 = 4;
        Specified by:
        getDescription1 in interface CallAdInfoOrBuilder
        Returns:
        The description1.
      • getDescription1Bytes

        public com.google.protobuf.ByteString getDescription1Bytes()
         The first line of the ad's description.
         
        string description1 = 4;
        Specified by:
        getDescription1Bytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for description1.
      • getDescription2

        public java.lang.String getDescription2()
         The second line of the ad's description.
         
        string description2 = 5;
        Specified by:
        getDescription2 in interface CallAdInfoOrBuilder
        Returns:
        The description2.
      • getDescription2Bytes

        public com.google.protobuf.ByteString getDescription2Bytes()
         The second line of the ad's description.
         
        string description2 = 5;
        Specified by:
        getDescription2Bytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for description2.
      • getCallTracked

        public boolean getCallTracked()
         Whether to enable call tracking for the creative. Enabling call
         tracking also enables call conversions.
         
        bool call_tracked = 6;
        Specified by:
        getCallTracked in interface CallAdInfoOrBuilder
        Returns:
        The callTracked.
      • getDisableCallConversion

        public boolean getDisableCallConversion()
         Whether to disable call conversion for the creative.
         If set to `true`, disables call conversions even when `call_tracked` is
         `true`.
         If `call_tracked` is `false`, this field is ignored.
         
        bool disable_call_conversion = 7;
        Specified by:
        getDisableCallConversion in interface CallAdInfoOrBuilder
        Returns:
        The disableCallConversion.
      • getPhoneNumberVerificationUrl

        public java.lang.String getPhoneNumberVerificationUrl()
         The URL to be used for phone number verification.
         
        string phone_number_verification_url = 8;
        Specified by:
        getPhoneNumberVerificationUrl in interface CallAdInfoOrBuilder
        Returns:
        The phoneNumberVerificationUrl.
      • getPhoneNumberVerificationUrlBytes

        public com.google.protobuf.ByteString getPhoneNumberVerificationUrlBytes()
         The URL to be used for phone number verification.
         
        string phone_number_verification_url = 8;
        Specified by:
        getPhoneNumberVerificationUrlBytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for phoneNumberVerificationUrl.
      • getConversionAction

        public java.lang.String getConversionAction()
         The conversion action to attribute a call conversion to. If not set a
         default conversion action is used. This field only has effect if
         `call_tracked` is set to `true`. Otherwise this field is ignored.
         
        string conversion_action = 9;
        Specified by:
        getConversionAction in interface CallAdInfoOrBuilder
        Returns:
        The conversionAction.
      • getConversionActionBytes

        public com.google.protobuf.ByteString getConversionActionBytes()
         The conversion action to attribute a call conversion to. If not set a
         default conversion action is used. This field only has effect if
         `call_tracked` is set to `true`. Otherwise this field is ignored.
         
        string conversion_action = 9;
        Specified by:
        getConversionActionBytes in interface CallAdInfoOrBuilder
        Returns:
        The bytes for conversionAction.
      • getConversionReportingStateValue

        public int getConversionReportingStateValue()
         The call conversion behavior of this call ad. It can use its own call
         conversion setting, inherit the account level setting, or be disabled.
         
        .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10;
        Specified by:
        getConversionReportingStateValue in interface CallAdInfoOrBuilder
        Returns:
        The enum numeric value on the wire for conversionReportingState.
      • getPath1

        public java.lang.String getPath1()
         First part of text that can be appended to the URL in the ad. Optional.
         
        string path1 = 13;
        Specified by:
        getPath1 in interface CallAdInfoOrBuilder
        Returns:
        The path1.
      • getPath1Bytes

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

        public java.lang.String getPath2()
         Second part of 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 = 14;
        Specified by:
        getPath2 in interface CallAdInfoOrBuilder
        Returns:
        The path2.
      • getPath2Bytes

        public com.google.protobuf.ByteString getPath2Bytes()
         Second part of 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 = 14;
        Specified by:
        getPath2Bytes in interface CallAdInfoOrBuilder
        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 CallAdInfo parseFrom​(java.nio.ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static CallAdInfo getDefaultInstance()
      • parser

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

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