Class CallFeedItem.Builder

  • All Implemented Interfaces:
    CallFeedItemOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    CallFeedItem

    public static final class CallFeedItem.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
    implements CallFeedItemOrBuilder
     Represents a Call extension.
     
    Protobuf type google.ads.googleads.v10.common.CallFeedItem
    • Method Detail

      • 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.Builder<CallFeedItem.Builder>
      • clear

        public CallFeedItem.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • getDefaultInstanceForType

        public CallFeedItem getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CallFeedItem build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CallFeedItem buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public CallFeedItem.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • setField

        public CallFeedItem.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • clearField

        public CallFeedItem.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • clearOneof

        public CallFeedItem.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • setRepeatedField

        public CallFeedItem.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • addRepeatedField

        public CallFeedItem.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • mergeFrom

        public CallFeedItem.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CallFeedItem.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • mergeFrom

        public CallFeedItem.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CallFeedItem.Builder>
        Throws:
        java.io.IOException
      • hasPhoneNumber

        public boolean hasPhoneNumber()
         The advertiser's phone number to append to the ad.
         This string must not be empty.
         
        optional string phone_number = 7;
        Specified by:
        hasPhoneNumber in interface CallFeedItemOrBuilder
        Returns:
        Whether the phoneNumber field is set.
      • getPhoneNumber

        public java.lang.String getPhoneNumber()
         The advertiser's phone number to append to the ad.
         This string must not be empty.
         
        optional string phone_number = 7;
        Specified by:
        getPhoneNumber in interface CallFeedItemOrBuilder
        Returns:
        The phoneNumber.
      • getPhoneNumberBytes

        public com.google.protobuf.ByteString getPhoneNumberBytes()
         The advertiser's phone number to append to the ad.
         This string must not be empty.
         
        optional string phone_number = 7;
        Specified by:
        getPhoneNumberBytes in interface CallFeedItemOrBuilder
        Returns:
        The bytes for phoneNumber.
      • setPhoneNumber

        public CallFeedItem.Builder setPhoneNumber​(java.lang.String value)
         The advertiser's phone number to append to the ad.
         This string must not be empty.
         
        optional string phone_number = 7;
        Parameters:
        value - The phoneNumber to set.
        Returns:
        This builder for chaining.
      • clearPhoneNumber

        public CallFeedItem.Builder clearPhoneNumber()
         The advertiser's phone number to append to the ad.
         This string must not be empty.
         
        optional string phone_number = 7;
        Returns:
        This builder for chaining.
      • setPhoneNumberBytes

        public CallFeedItem.Builder setPhoneNumberBytes​(com.google.protobuf.ByteString value)
         The advertiser's phone number to append to the ad.
         This string must not be empty.
         
        optional string phone_number = 7;
        Parameters:
        value - The bytes for phoneNumber to set.
        Returns:
        This builder for chaining.
      • hasCountryCode

        public boolean hasCountryCode()
         Uppercase two-letter country code of the advertiser's phone number.
         This string must not be empty.
         
        optional string country_code = 8;
        Specified by:
        hasCountryCode in interface CallFeedItemOrBuilder
        Returns:
        Whether the countryCode field is set.
      • getCountryCode

        public java.lang.String getCountryCode()
         Uppercase two-letter country code of the advertiser's phone number.
         This string must not be empty.
         
        optional string country_code = 8;
        Specified by:
        getCountryCode in interface CallFeedItemOrBuilder
        Returns:
        The countryCode.
      • getCountryCodeBytes

        public com.google.protobuf.ByteString getCountryCodeBytes()
         Uppercase two-letter country code of the advertiser's phone number.
         This string must not be empty.
         
        optional string country_code = 8;
        Specified by:
        getCountryCodeBytes in interface CallFeedItemOrBuilder
        Returns:
        The bytes for countryCode.
      • setCountryCode

        public CallFeedItem.Builder setCountryCode​(java.lang.String value)
         Uppercase two-letter country code of the advertiser's phone number.
         This string must not be empty.
         
        optional string country_code = 8;
        Parameters:
        value - The countryCode to set.
        Returns:
        This builder for chaining.
      • clearCountryCode

        public CallFeedItem.Builder clearCountryCode()
         Uppercase two-letter country code of the advertiser's phone number.
         This string must not be empty.
         
        optional string country_code = 8;
        Returns:
        This builder for chaining.
      • setCountryCodeBytes

        public CallFeedItem.Builder setCountryCodeBytes​(com.google.protobuf.ByteString value)
         Uppercase two-letter country code of the advertiser's phone number.
         This string must not be empty.
         
        optional string country_code = 8;
        Parameters:
        value - The bytes for countryCode to set.
        Returns:
        This builder for chaining.
      • hasCallTrackingEnabled

        public boolean hasCallTrackingEnabled()
         Indicates whether call tracking is enabled. By default, call tracking is
         not enabled.
         
        optional bool call_tracking_enabled = 9;
        Specified by:
        hasCallTrackingEnabled in interface CallFeedItemOrBuilder
        Returns:
        Whether the callTrackingEnabled field is set.
      • getCallTrackingEnabled

        public boolean getCallTrackingEnabled()
         Indicates whether call tracking is enabled. By default, call tracking is
         not enabled.
         
        optional bool call_tracking_enabled = 9;
        Specified by:
        getCallTrackingEnabled in interface CallFeedItemOrBuilder
        Returns:
        The callTrackingEnabled.
      • setCallTrackingEnabled

        public CallFeedItem.Builder setCallTrackingEnabled​(boolean value)
         Indicates whether call tracking is enabled. By default, call tracking is
         not enabled.
         
        optional bool call_tracking_enabled = 9;
        Parameters:
        value - The callTrackingEnabled to set.
        Returns:
        This builder for chaining.
      • clearCallTrackingEnabled

        public CallFeedItem.Builder clearCallTrackingEnabled()
         Indicates whether call tracking is enabled. By default, call tracking is
         not enabled.
         
        optional bool call_tracking_enabled = 9;
        Returns:
        This builder for chaining.
      • hasCallConversionAction

        public boolean hasCallConversionAction()
         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_tracking_enabled is set to true. Otherwise this field is ignored.
         
        optional string call_conversion_action = 10;
        Specified by:
        hasCallConversionAction in interface CallFeedItemOrBuilder
        Returns:
        Whether the callConversionAction field is set.
      • getCallConversionAction

        public java.lang.String getCallConversionAction()
         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_tracking_enabled is set to true. Otherwise this field is ignored.
         
        optional string call_conversion_action = 10;
        Specified by:
        getCallConversionAction in interface CallFeedItemOrBuilder
        Returns:
        The callConversionAction.
      • getCallConversionActionBytes

        public com.google.protobuf.ByteString getCallConversionActionBytes()
         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_tracking_enabled is set to true. Otherwise this field is ignored.
         
        optional string call_conversion_action = 10;
        Specified by:
        getCallConversionActionBytes in interface CallFeedItemOrBuilder
        Returns:
        The bytes for callConversionAction.
      • setCallConversionAction

        public CallFeedItem.Builder setCallConversionAction​(java.lang.String value)
         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_tracking_enabled is set to true. Otherwise this field is ignored.
         
        optional string call_conversion_action = 10;
        Parameters:
        value - The callConversionAction to set.
        Returns:
        This builder for chaining.
      • clearCallConversionAction

        public CallFeedItem.Builder clearCallConversionAction()
         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_tracking_enabled is set to true. Otherwise this field is ignored.
         
        optional string call_conversion_action = 10;
        Returns:
        This builder for chaining.
      • setCallConversionActionBytes

        public CallFeedItem.Builder setCallConversionActionBytes​(com.google.protobuf.ByteString value)
         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_tracking_enabled is set to true. Otherwise this field is ignored.
         
        optional string call_conversion_action = 10;
        Parameters:
        value - The bytes for callConversionAction to set.
        Returns:
        This builder for chaining.
      • hasCallConversionTrackingDisabled

        public boolean hasCallConversionTrackingDisabled()
         If true, disable call conversion tracking. call_conversion_action should
         not be set if this is true. Optional.
         
        optional bool call_conversion_tracking_disabled = 11;
        Specified by:
        hasCallConversionTrackingDisabled in interface CallFeedItemOrBuilder
        Returns:
        Whether the callConversionTrackingDisabled field is set.
      • getCallConversionTrackingDisabled

        public boolean getCallConversionTrackingDisabled()
         If true, disable call conversion tracking. call_conversion_action should
         not be set if this is true. Optional.
         
        optional bool call_conversion_tracking_disabled = 11;
        Specified by:
        getCallConversionTrackingDisabled in interface CallFeedItemOrBuilder
        Returns:
        The callConversionTrackingDisabled.
      • setCallConversionTrackingDisabled

        public CallFeedItem.Builder setCallConversionTrackingDisabled​(boolean value)
         If true, disable call conversion tracking. call_conversion_action should
         not be set if this is true. Optional.
         
        optional bool call_conversion_tracking_disabled = 11;
        Parameters:
        value - The callConversionTrackingDisabled to set.
        Returns:
        This builder for chaining.
      • clearCallConversionTrackingDisabled

        public CallFeedItem.Builder clearCallConversionTrackingDisabled()
         If true, disable call conversion tracking. call_conversion_action should
         not be set if this is true. Optional.
         
        optional bool call_conversion_tracking_disabled = 11;
        Returns:
        This builder for chaining.
      • getCallConversionReportingStateValue

        public int getCallConversionReportingStateValue()
         Enum value that indicates whether this call extension uses its own call
         conversion setting (or just have call conversion disabled), or following
         the account level setting.
         
        .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6;
        Specified by:
        getCallConversionReportingStateValue in interface CallFeedItemOrBuilder
        Returns:
        The enum numeric value on the wire for callConversionReportingState.
      • setCallConversionReportingStateValue

        public CallFeedItem.Builder setCallConversionReportingStateValue​(int value)
         Enum value that indicates whether this call extension uses its own call
         conversion setting (or just have call conversion disabled), or following
         the account level setting.
         
        .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6;
        Parameters:
        value - The enum numeric value on the wire for callConversionReportingState to set.
        Returns:
        This builder for chaining.
      • getCallConversionReportingState

        public CallConversionReportingStateEnum.CallConversionReportingState getCallConversionReportingState()
         Enum value that indicates whether this call extension uses its own call
         conversion setting (or just have call conversion disabled), or following
         the account level setting.
         
        .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6;
        Specified by:
        getCallConversionReportingState in interface CallFeedItemOrBuilder
        Returns:
        The callConversionReportingState.
      • setCallConversionReportingState

        public CallFeedItem.Builder setCallConversionReportingState​(CallConversionReportingStateEnum.CallConversionReportingState value)
         Enum value that indicates whether this call extension uses its own call
         conversion setting (or just have call conversion disabled), or following
         the account level setting.
         
        .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6;
        Parameters:
        value - The callConversionReportingState to set.
        Returns:
        This builder for chaining.
      • clearCallConversionReportingState

        public CallFeedItem.Builder clearCallConversionReportingState()
         Enum value that indicates whether this call extension uses its own call
         conversion setting (or just have call conversion disabled), or following
         the account level setting.
         
        .google.ads.googleads.v10.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CallFeedItem.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>
      • mergeUnknownFields

        public final CallFeedItem.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CallFeedItem.Builder>