Class ConversionEvent.DefaultConversionValue.Builder (0.59.0)

public static final class ConversionEvent.DefaultConversionValue.Builder extends GeneratedMessageV3.Builder<ConversionEvent.DefaultConversionValue.Builder> implements ConversionEvent.DefaultConversionValueOrBuilder

Defines a default value/currency for a conversion event. Both value and currency must be provided.

Protobuf type google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversionEvent.DefaultConversionValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

build()

public ConversionEvent.DefaultConversionValue build()
Returns
Type Description
ConversionEvent.DefaultConversionValue

buildPartial()

public ConversionEvent.DefaultConversionValue buildPartial()
Returns
Type Description
ConversionEvent.DefaultConversionValue

clear()

public ConversionEvent.DefaultConversionValue.Builder clear()
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

clearCurrencyCode()

public ConversionEvent.DefaultConversionValue.Builder clearCurrencyCode()

When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.

optional string currency_code = 2;

Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConversionEvent.DefaultConversionValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversionEvent.DefaultConversionValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

clearValue()

public ConversionEvent.DefaultConversionValue.Builder clearValue()

This value will be used to populate the value for all conversions of the specified event_name where the event "value" parameter is unset.

optional double value = 1;

Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.

clone()

public ConversionEvent.DefaultConversionValue.Builder clone()
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

getCurrencyCode()

public String getCurrencyCode()

When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.

optional string currency_code = 2;

Returns
Type Description
String

The currencyCode.

getCurrencyCodeBytes()

public ByteString getCurrencyCodeBytes()

When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.

optional string currency_code = 2;

Returns
Type Description
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public ConversionEvent.DefaultConversionValue getDefaultInstanceForType()
Returns
Type Description
ConversionEvent.DefaultConversionValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getValue()

public double getValue()

This value will be used to populate the value for all conversions of the specified event_name where the event "value" parameter is unset.

optional double value = 1;

Returns
Type Description
double

The value.

hasCurrencyCode()

public boolean hasCurrencyCode()

When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.

optional string currency_code = 2;

Returns
Type Description
boolean

Whether the currencyCode field is set.

hasValue()

public boolean hasValue()

This value will be used to populate the value for all conversions of the specified event_name where the event "value" parameter is unset.

optional double value = 1;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConversionEvent.DefaultConversionValue other)

public ConversionEvent.DefaultConversionValue.Builder mergeFrom(ConversionEvent.DefaultConversionValue other)
Parameter
Name Description
other ConversionEvent.DefaultConversionValue
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversionEvent.DefaultConversionValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConversionEvent.DefaultConversionValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversionEvent.DefaultConversionValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

setCurrencyCode(String value)

public ConversionEvent.DefaultConversionValue.Builder setCurrencyCode(String value)

When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.

optional string currency_code = 2;

Parameter
Name Description
value String

The currencyCode to set.

Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.

setCurrencyCodeBytes(ByteString value)

public ConversionEvent.DefaultConversionValue.Builder setCurrencyCodeBytes(ByteString value)

When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.

optional string currency_code = 2;

Parameter
Name Description
value ByteString

The bytes for currencyCode to set.

Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConversionEvent.DefaultConversionValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConversionEvent.DefaultConversionValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversionEvent.DefaultConversionValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder
Overrides

setValue(double value)

public ConversionEvent.DefaultConversionValue.Builder setValue(double value)

This value will be used to populate the value for all conversions of the specified event_name where the event "value" parameter is unset.

optional double value = 1;

Parameter
Name Description
value double

The value to set.

Returns
Type Description
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.