Class RestatementValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
- com.google.ads.googleads.v10.services.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 typegoogle.ads.googleads.v10.services.RestatementValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RestatementValue.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)RestatementValuebuild()RestatementValuebuildPartial()RestatementValue.Builderclear()RestatementValue.BuilderclearAdjustedValue()The restated conversion value.RestatementValue.BuilderclearCurrencyCode()The currency of the restated value.RestatementValue.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RestatementValue.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RestatementValue.Builderclone()doublegetAdjustedValue()The restated conversion value.java.lang.StringgetCurrencyCode()The currency of the restated value.com.google.protobuf.ByteStringgetCurrencyCodeBytes()The currency of the restated value.RestatementValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleanhasAdjustedValue()The restated conversion value.booleanhasCurrencyCode()The currency of the restated value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RestatementValue.BuildermergeFrom(RestatementValue other)RestatementValue.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RestatementValue.BuildermergeFrom(com.google.protobuf.Message other)RestatementValue.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RestatementValue.BuildersetAdjustedValue(double value)The restated conversion value.RestatementValue.BuildersetCurrencyCode(java.lang.String value)The currency of the restated value.RestatementValue.BuildersetCurrencyCodeBytes(com.google.protobuf.ByteString value)The currency of the restated value.RestatementValue.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)RestatementValue.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)RestatementValue.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
clear
public RestatementValue.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
getDefaultInstanceForType
public RestatementValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RestatementValue build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RestatementValue buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RestatementValue.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
setField
public RestatementValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
clearField
public RestatementValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
clearOneof
public RestatementValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
addRepeatedField
public RestatementValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
mergeFrom
public RestatementValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestatementValue.Builder>
-
mergeFrom
public RestatementValue.Builder mergeFrom(RestatementValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasAdjustedValuein interfaceRestatementValueOrBuilder- 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:
getAdjustedValuein interfaceRestatementValueOrBuilder- 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:
hasCurrencyCodein interfaceRestatementValueOrBuilder- 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:
getCurrencyCodein interfaceRestatementValueOrBuilder- 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:
getCurrencyCodeBytesin interfaceRestatementValueOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
mergeUnknownFields
public final RestatementValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestatementValue.Builder>
-
-