Class RestatementValue.Builder

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

    public static final class RestatementValue.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
    implements RestatementValueOrBuilder
     Contains information needed to restate a conversion's value.
     
    Protobuf type google.ads.googleads.v10.services.RestatementValue
    • 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<RestatementValue.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public boolean hasAdjustedValue()
         The restated conversion value. This is the value of the conversion after
         restatement. For example, to change the value of a conversion from 100 to
         70, an adjusted value of 70 should be reported.
         NOTE: If you want to upload a second restatement with a different adjusted
         value, it must have a new, more recent, adjustment occurrence time.
         Otherwise, it will be treated as a duplicate of the previous restatement
         and ignored.
         
        optional double adjusted_value = 3;
        Specified by:
        hasAdjustedValue in interface RestatementValueOrBuilder
        Returns:
        Whether the adjustedValue field is set.
      • getAdjustedValue

        public double getAdjustedValue()
         The restated conversion value. This is the value of the conversion after
         restatement. For example, to change the value of a conversion from 100 to
         70, an adjusted value of 70 should be reported.
         NOTE: If you want to upload a second restatement with a different adjusted
         value, it must have a new, more recent, adjustment occurrence time.
         Otherwise, it will be treated as a duplicate of the previous restatement
         and ignored.
         
        optional double adjusted_value = 3;
        Specified by:
        getAdjustedValue in interface RestatementValueOrBuilder
        Returns:
        The adjustedValue.
      • setAdjustedValue

        public RestatementValue.Builder setAdjustedValue​(double value)
         The restated conversion value. This is the value of the conversion after
         restatement. For example, to change the value of a conversion from 100 to
         70, an adjusted value of 70 should be reported.
         NOTE: If you want to upload a second restatement with a different adjusted
         value, it must have a new, more recent, adjustment occurrence time.
         Otherwise, it will be treated as a duplicate of the previous restatement
         and ignored.
         
        optional double adjusted_value = 3;
        Parameters:
        value - The adjustedValue to set.
        Returns:
        This builder for chaining.
      • clearAdjustedValue

        public RestatementValue.Builder clearAdjustedValue()
         The restated conversion value. This is the value of the conversion after
         restatement. For example, to change the value of a conversion from 100 to
         70, an adjusted value of 70 should be reported.
         NOTE: If you want to upload a second restatement with a different adjusted
         value, it must have a new, more recent, adjustment occurrence time.
         Otherwise, it will be treated as a duplicate of the previous restatement
         and ignored.
         
        optional double adjusted_value = 3;
        Returns:
        This builder for chaining.
      • hasCurrencyCode

        public boolean hasCurrencyCode()
         The currency of the restated value. If not provided, then the default
         currency from the conversion action is used, and if that is not set then
         the account currency is used. This is the ISO 4217 3-character currency
         code e.g. USD or EUR.
         
        optional string currency_code = 4;
        Specified by:
        hasCurrencyCode in interface RestatementValueOrBuilder
        Returns:
        Whether the currencyCode field is set.
      • getCurrencyCode

        public java.lang.String getCurrencyCode()
         The currency of the restated value. If not provided, then the default
         currency from the conversion action is used, and if that is not set then
         the account currency is used. This is the ISO 4217 3-character currency
         code e.g. USD or EUR.
         
        optional string currency_code = 4;
        Specified by:
        getCurrencyCode in interface RestatementValueOrBuilder
        Returns:
        The currencyCode.
      • getCurrencyCodeBytes

        public com.google.protobuf.ByteString getCurrencyCodeBytes()
         The currency of the restated value. If not provided, then the default
         currency from the conversion action is used, and if that is not set then
         the account currency is used. This is the ISO 4217 3-character currency
         code e.g. USD or EUR.
         
        optional string currency_code = 4;
        Specified by:
        getCurrencyCodeBytes in interface RestatementValueOrBuilder
        Returns:
        The bytes for currencyCode.
      • setCurrencyCode

        public RestatementValue.Builder setCurrencyCode​(java.lang.String value)
         The currency of the restated value. If not provided, then the default
         currency from the conversion action is used, and if that is not set then
         the account currency is used. This is the ISO 4217 3-character currency
         code e.g. USD or EUR.
         
        optional string currency_code = 4;
        Parameters:
        value - The currencyCode to set.
        Returns:
        This builder for chaining.
      • clearCurrencyCode

        public RestatementValue.Builder clearCurrencyCode()
         The currency of the restated value. If not provided, then the default
         currency from the conversion action is used, and if that is not set then
         the account currency is used. This is the ISO 4217 3-character currency
         code e.g. USD or EUR.
         
        optional string currency_code = 4;
        Returns:
        This builder for chaining.
      • setCurrencyCodeBytes

        public RestatementValue.Builder setCurrencyCodeBytes​(com.google.protobuf.ByteString value)
         The currency of the restated value. If not provided, then the default
         currency from the conversion action is used, and if that is not set then
         the account currency is used. This is the ISO 4217 3-character currency
         code e.g. USD or EUR.
         
        optional string currency_code = 4;
        Parameters:
        value - The bytes for currencyCode to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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