Class CallConversion.Builder

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

    public static final class CallConversion.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CallConversion.Builder>
    implements CallConversionOrBuilder
     A call conversion.
     
    Protobuf type google.ads.googleads.v10.services.CallConversion
    • 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<CallConversion.Builder>
      • clear

        public CallConversion.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<CallConversion.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<CallConversion.Builder>
      • getDefaultInstanceForType

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

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

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

        public CallConversion.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<CallConversion.Builder>
      • setField

        public CallConversion.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<CallConversion.Builder>
      • clearField

        public CallConversion.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<CallConversion.Builder>
      • clearOneof

        public CallConversion.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<CallConversion.Builder>
      • setRepeatedField

        public CallConversion.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<CallConversion.Builder>
      • addRepeatedField

        public CallConversion.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<CallConversion.Builder>
      • mergeFrom

        public CallConversion.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<CallConversion.Builder>
      • isInitialized

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

        public CallConversion.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<CallConversion.Builder>
        Throws:
        java.io.IOException
      • hasCallerId

        public boolean hasCallerId()
         The caller id from which this call was placed. Caller id is expected to be
         in E.164 format with preceding '+' sign. e.g. "+16502531234".
         
        optional string caller_id = 7;
        Specified by:
        hasCallerId in interface CallConversionOrBuilder
        Returns:
        Whether the callerId field is set.
      • getCallerId

        public java.lang.String getCallerId()
         The caller id from which this call was placed. Caller id is expected to be
         in E.164 format with preceding '+' sign. e.g. "+16502531234".
         
        optional string caller_id = 7;
        Specified by:
        getCallerId in interface CallConversionOrBuilder
        Returns:
        The callerId.
      • getCallerIdBytes

        public com.google.protobuf.ByteString getCallerIdBytes()
         The caller id from which this call was placed. Caller id is expected to be
         in E.164 format with preceding '+' sign. e.g. "+16502531234".
         
        optional string caller_id = 7;
        Specified by:
        getCallerIdBytes in interface CallConversionOrBuilder
        Returns:
        The bytes for callerId.
      • setCallerId

        public CallConversion.Builder setCallerId​(java.lang.String value)
         The caller id from which this call was placed. Caller id is expected to be
         in E.164 format with preceding '+' sign. e.g. "+16502531234".
         
        optional string caller_id = 7;
        Parameters:
        value - The callerId to set.
        Returns:
        This builder for chaining.
      • clearCallerId

        public CallConversion.Builder clearCallerId()
         The caller id from which this call was placed. Caller id is expected to be
         in E.164 format with preceding '+' sign. e.g. "+16502531234".
         
        optional string caller_id = 7;
        Returns:
        This builder for chaining.
      • setCallerIdBytes

        public CallConversion.Builder setCallerIdBytes​(com.google.protobuf.ByteString value)
         The caller id from which this call was placed. Caller id is expected to be
         in E.164 format with preceding '+' sign. e.g. "+16502531234".
         
        optional string caller_id = 7;
        Parameters:
        value - The bytes for callerId to set.
        Returns:
        This builder for chaining.
      • hasCallStartDateTime

        public boolean hasCallStartDateTime()
         The date time at which the call occurred. The timezone must be specified.
         The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm",
         e.g. "2019-01-01 12:32:45-08:00".
         
        optional string call_start_date_time = 8;
        Specified by:
        hasCallStartDateTime in interface CallConversionOrBuilder
        Returns:
        Whether the callStartDateTime field is set.
      • getCallStartDateTime

        public java.lang.String getCallStartDateTime()
         The date time at which the call occurred. The timezone must be specified.
         The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm",
         e.g. "2019-01-01 12:32:45-08:00".
         
        optional string call_start_date_time = 8;
        Specified by:
        getCallStartDateTime in interface CallConversionOrBuilder
        Returns:
        The callStartDateTime.
      • getCallStartDateTimeBytes

        public com.google.protobuf.ByteString getCallStartDateTimeBytes()
         The date time at which the call occurred. The timezone must be specified.
         The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm",
         e.g. "2019-01-01 12:32:45-08:00".
         
        optional string call_start_date_time = 8;
        Specified by:
        getCallStartDateTimeBytes in interface CallConversionOrBuilder
        Returns:
        The bytes for callStartDateTime.
      • setCallStartDateTime

        public CallConversion.Builder setCallStartDateTime​(java.lang.String value)
         The date time at which the call occurred. The timezone must be specified.
         The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm",
         e.g. "2019-01-01 12:32:45-08:00".
         
        optional string call_start_date_time = 8;
        Parameters:
        value - The callStartDateTime to set.
        Returns:
        This builder for chaining.
      • clearCallStartDateTime

        public CallConversion.Builder clearCallStartDateTime()
         The date time at which the call occurred. The timezone must be specified.
         The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm",
         e.g. "2019-01-01 12:32:45-08:00".
         
        optional string call_start_date_time = 8;
        Returns:
        This builder for chaining.
      • setCallStartDateTimeBytes

        public CallConversion.Builder setCallStartDateTimeBytes​(com.google.protobuf.ByteString value)
         The date time at which the call occurred. The timezone must be specified.
         The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm",
         e.g. "2019-01-01 12:32:45-08:00".
         
        optional string call_start_date_time = 8;
        Parameters:
        value - The bytes for callStartDateTime to set.
        Returns:
        This builder for chaining.
      • hasConversionAction

        public boolean hasConversionAction()
         Resource name of the conversion action associated with this conversion.
         Note: Although this resource name consists of a customer id and a
         conversion action id, validation will ignore the customer id and use the
         conversion action id as the sole identifier of the conversion action.
         
        optional string conversion_action = 9;
        Specified by:
        hasConversionAction in interface CallConversionOrBuilder
        Returns:
        Whether the conversionAction field is set.
      • getConversionAction

        public java.lang.String getConversionAction()
         Resource name of the conversion action associated with this conversion.
         Note: Although this resource name consists of a customer id and a
         conversion action id, validation will ignore the customer id and use the
         conversion action id as the sole identifier of the conversion action.
         
        optional string conversion_action = 9;
        Specified by:
        getConversionAction in interface CallConversionOrBuilder
        Returns:
        The conversionAction.
      • getConversionActionBytes

        public com.google.protobuf.ByteString getConversionActionBytes()
         Resource name of the conversion action associated with this conversion.
         Note: Although this resource name consists of a customer id and a
         conversion action id, validation will ignore the customer id and use the
         conversion action id as the sole identifier of the conversion action.
         
        optional string conversion_action = 9;
        Specified by:
        getConversionActionBytes in interface CallConversionOrBuilder
        Returns:
        The bytes for conversionAction.
      • setConversionAction

        public CallConversion.Builder setConversionAction​(java.lang.String value)
         Resource name of the conversion action associated with this conversion.
         Note: Although this resource name consists of a customer id and a
         conversion action id, validation will ignore the customer id and use the
         conversion action id as the sole identifier of the conversion action.
         
        optional string conversion_action = 9;
        Parameters:
        value - The conversionAction to set.
        Returns:
        This builder for chaining.
      • clearConversionAction

        public CallConversion.Builder clearConversionAction()
         Resource name of the conversion action associated with this conversion.
         Note: Although this resource name consists of a customer id and a
         conversion action id, validation will ignore the customer id and use the
         conversion action id as the sole identifier of the conversion action.
         
        optional string conversion_action = 9;
        Returns:
        This builder for chaining.
      • setConversionActionBytes

        public CallConversion.Builder setConversionActionBytes​(com.google.protobuf.ByteString value)
         Resource name of the conversion action associated with this conversion.
         Note: Although this resource name consists of a customer id and a
         conversion action id, validation will ignore the customer id and use the
         conversion action id as the sole identifier of the conversion action.
         
        optional string conversion_action = 9;
        Parameters:
        value - The bytes for conversionAction to set.
        Returns:
        This builder for chaining.
      • hasConversionDateTime

        public boolean hasConversionDateTime()
         The date time at which the conversion occurred. Must be after the call
         time. The timezone must be specified. The format is
         "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00".
         
        optional string conversion_date_time = 10;
        Specified by:
        hasConversionDateTime in interface CallConversionOrBuilder
        Returns:
        Whether the conversionDateTime field is set.
      • getConversionDateTime

        public java.lang.String getConversionDateTime()
         The date time at which the conversion occurred. Must be after the call
         time. The timezone must be specified. The format is
         "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00".
         
        optional string conversion_date_time = 10;
        Specified by:
        getConversionDateTime in interface CallConversionOrBuilder
        Returns:
        The conversionDateTime.
      • getConversionDateTimeBytes

        public com.google.protobuf.ByteString getConversionDateTimeBytes()
         The date time at which the conversion occurred. Must be after the call
         time. The timezone must be specified. The format is
         "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00".
         
        optional string conversion_date_time = 10;
        Specified by:
        getConversionDateTimeBytes in interface CallConversionOrBuilder
        Returns:
        The bytes for conversionDateTime.
      • setConversionDateTime

        public CallConversion.Builder setConversionDateTime​(java.lang.String value)
         The date time at which the conversion occurred. Must be after the call
         time. The timezone must be specified. The format is
         "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00".
         
        optional string conversion_date_time = 10;
        Parameters:
        value - The conversionDateTime to set.
        Returns:
        This builder for chaining.
      • clearConversionDateTime

        public CallConversion.Builder clearConversionDateTime()
         The date time at which the conversion occurred. Must be after the call
         time. The timezone must be specified. The format is
         "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00".
         
        optional string conversion_date_time = 10;
        Returns:
        This builder for chaining.
      • setConversionDateTimeBytes

        public CallConversion.Builder setConversionDateTimeBytes​(com.google.protobuf.ByteString value)
         The date time at which the conversion occurred. Must be after the call
         time. The timezone must be specified. The format is
         "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00".
         
        optional string conversion_date_time = 10;
        Parameters:
        value - The bytes for conversionDateTime to set.
        Returns:
        This builder for chaining.
      • hasConversionValue

        public boolean hasConversionValue()
         The value of the conversion for the advertiser.
         
        optional double conversion_value = 11;
        Specified by:
        hasConversionValue in interface CallConversionOrBuilder
        Returns:
        Whether the conversionValue field is set.
      • getConversionValue

        public double getConversionValue()
         The value of the conversion for the advertiser.
         
        optional double conversion_value = 11;
        Specified by:
        getConversionValue in interface CallConversionOrBuilder
        Returns:
        The conversionValue.
      • setConversionValue

        public CallConversion.Builder setConversionValue​(double value)
         The value of the conversion for the advertiser.
         
        optional double conversion_value = 11;
        Parameters:
        value - The conversionValue to set.
        Returns:
        This builder for chaining.
      • clearConversionValue

        public CallConversion.Builder clearConversionValue()
         The value of the conversion for the advertiser.
         
        optional double conversion_value = 11;
        Returns:
        This builder for chaining.
      • hasCurrencyCode

        public boolean hasCurrencyCode()
         Currency associated with the conversion value. This is the ISO 4217
         3-character currency code. For example: USD, EUR.
         
        optional string currency_code = 12;
        Specified by:
        hasCurrencyCode in interface CallConversionOrBuilder
        Returns:
        Whether the currencyCode field is set.
      • getCurrencyCode

        public java.lang.String getCurrencyCode()
         Currency associated with the conversion value. This is the ISO 4217
         3-character currency code. For example: USD, EUR.
         
        optional string currency_code = 12;
        Specified by:
        getCurrencyCode in interface CallConversionOrBuilder
        Returns:
        The currencyCode.
      • getCurrencyCodeBytes

        public com.google.protobuf.ByteString getCurrencyCodeBytes()
         Currency associated with the conversion value. This is the ISO 4217
         3-character currency code. For example: USD, EUR.
         
        optional string currency_code = 12;
        Specified by:
        getCurrencyCodeBytes in interface CallConversionOrBuilder
        Returns:
        The bytes for currencyCode.
      • setCurrencyCode

        public CallConversion.Builder setCurrencyCode​(java.lang.String value)
         Currency associated with the conversion value. This is the ISO 4217
         3-character currency code. For example: USD, EUR.
         
        optional string currency_code = 12;
        Parameters:
        value - The currencyCode to set.
        Returns:
        This builder for chaining.
      • clearCurrencyCode

        public CallConversion.Builder clearCurrencyCode()
         Currency associated with the conversion value. This is the ISO 4217
         3-character currency code. For example: USD, EUR.
         
        optional string currency_code = 12;
        Returns:
        This builder for chaining.
      • setCurrencyCodeBytes

        public CallConversion.Builder setCurrencyCodeBytes​(com.google.protobuf.ByteString value)
         Currency associated with the conversion value. This is the ISO 4217
         3-character currency code. For example: USD, EUR.
         
        optional string currency_code = 12;
        Parameters:
        value - The bytes for currencyCode to set.
        Returns:
        This builder for chaining.
      • getCustomVariablesList

        public java.util.List<CustomVariable> getCustomVariablesList()
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
        Specified by:
        getCustomVariablesList in interface CallConversionOrBuilder
      • getCustomVariablesCount

        public int getCustomVariablesCount()
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
        Specified by:
        getCustomVariablesCount in interface CallConversionOrBuilder
      • getCustomVariables

        public CustomVariable getCustomVariables​(int index)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
        Specified by:
        getCustomVariables in interface CallConversionOrBuilder
      • setCustomVariables

        public CallConversion.Builder setCustomVariables​(int index,
                                                         CustomVariable value)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • setCustomVariables

        public CallConversion.Builder setCustomVariables​(int index,
                                                         CustomVariable.Builder builderForValue)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • addCustomVariables

        public CallConversion.Builder addCustomVariables​(CustomVariable value)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • addCustomVariables

        public CallConversion.Builder addCustomVariables​(int index,
                                                         CustomVariable value)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • addCustomVariables

        public CallConversion.Builder addCustomVariables​(CustomVariable.Builder builderForValue)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • addCustomVariables

        public CallConversion.Builder addCustomVariables​(int index,
                                                         CustomVariable.Builder builderForValue)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • addAllCustomVariables

        public CallConversion.Builder addAllCustomVariables​(java.lang.Iterable<? extends CustomVariable> values)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • clearCustomVariables

        public CallConversion.Builder clearCustomVariables()
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • removeCustomVariables

        public CallConversion.Builder removeCustomVariables​(int index)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • getCustomVariablesBuilder

        public CustomVariable.Builder getCustomVariablesBuilder​(int index)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • addCustomVariablesBuilder

        public CustomVariable.Builder addCustomVariablesBuilder()
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • addCustomVariablesBuilder

        public CustomVariable.Builder addCustomVariablesBuilder​(int index)
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • getCustomVariablesBuilderList

        public java.util.List<CustomVariable.Builder> getCustomVariablesBuilderList()
         The custom variables associated with this conversion.
         
        repeated .google.ads.googleads.v10.services.CustomVariable custom_variables = 13;
      • setUnknownFields

        public final CallConversion.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<CallConversion.Builder>
      • mergeUnknownFields

        public final CallConversion.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<CallConversion.Builder>