Class ConversionEvent.DefaultConversionValue.Builder (0.49.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversionEvent.DefaultConversionValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder
Overrides

build()

public ConversionEvent.DefaultConversionValue build()
Returns
TypeDescription
ConversionEvent.DefaultConversionValue

buildPartial()

public ConversionEvent.DefaultConversionValue buildPartial()
Returns
TypeDescription
ConversionEvent.DefaultConversionValue

clear()

public ConversionEvent.DefaultConversionValue.Builder clear()
Returns
TypeDescription
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
TypeDescription
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConversionEvent.DefaultConversionValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversionEvent.DefaultConversionValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.

clone()

public ConversionEvent.DefaultConversionValue.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public ConversionEvent.DefaultConversionValue getDefaultInstanceForType()
Returns
TypeDescription
ConversionEvent.DefaultConversionValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConversionEvent.DefaultConversionValue other)

public ConversionEvent.DefaultConversionValue.Builder mergeFrom(ConversionEvent.DefaultConversionValue other)
Parameter
NameDescription
otherConversionEvent.DefaultConversionValue
Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversionEvent.DefaultConversionValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConversionEvent.DefaultConversionValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversionEvent.DefaultConversionValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The currencyCode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for currencyCode to set.

Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConversionEvent.DefaultConversionValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversionEvent.DefaultConversionValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuedouble

The value to set.

Returns
TypeDescription
ConversionEvent.DefaultConversionValue.Builder

This builder for chaining.