public static final class ConversionEvent.DefaultConversionValue.Builder extends GeneratedMessage.Builder<ConversionEvent.DefaultConversionValue.Builder> implements ConversionEvent.DefaultConversionValueOrBuilderDefines a default value/currency for a conversion event. Both value and currency must be provided.
Protobuf type google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConversionEvent.DefaultConversionValue.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for currencyCode to set. |
| Returns | |
|---|---|
| Type | Description |
ConversionEvent.DefaultConversionValue.Builder |
This builder for chaining. |
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 |
doubleThe value to set. |
| Returns | |
|---|---|
| Type | Description |
ConversionEvent.DefaultConversionValue.Builder |
This builder for chaining. |