Class ConversionValues.Builder (0.62.0)

public static final class ConversionValues.Builder extends GeneratedMessageV3.Builder<ConversionValues.Builder> implements ConversionValuesOrBuilder

Conversion value settings for a postback window for SKAdNetwork conversion value schema.

Protobuf type google.analytics.admin.v1alpha.ConversionValues

Static Methods

getDescriptor()

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

Methods

addAllEventMappings(Iterable<? extends EventMapping> values)

public ConversionValues.Builder addAllEventMappings(Iterable<? extends EventMapping> values)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
values Iterable<? extends com.google.analytics.admin.v1alpha.EventMapping>
Returns
Type Description
ConversionValues.Builder

addEventMappings(EventMapping value)

public ConversionValues.Builder addEventMappings(EventMapping value)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
value EventMapping
Returns
Type Description
ConversionValues.Builder

addEventMappings(EventMapping.Builder builderForValue)

public ConversionValues.Builder addEventMappings(EventMapping.Builder builderForValue)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
builderForValue EventMapping.Builder
Returns
Type Description
ConversionValues.Builder

addEventMappings(int index, EventMapping value)

public ConversionValues.Builder addEventMappings(int index, EventMapping value)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameters
Name Description
index int
value EventMapping
Returns
Type Description
ConversionValues.Builder

addEventMappings(int index, EventMapping.Builder builderForValue)

public ConversionValues.Builder addEventMappings(int index, EventMapping.Builder builderForValue)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameters
Name Description
index int
builderForValue EventMapping.Builder
Returns
Type Description
ConversionValues.Builder

addEventMappingsBuilder()

public EventMapping.Builder addEventMappingsBuilder()

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Returns
Type Description
EventMapping.Builder

addEventMappingsBuilder(int index)

public EventMapping.Builder addEventMappingsBuilder(int index)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
index int
Returns
Type Description
EventMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversionValues build()
Returns
Type Description
ConversionValues

buildPartial()

public ConversionValues buildPartial()
Returns
Type Description
ConversionValues

clear()

public ConversionValues.Builder clear()
Returns
Type Description
ConversionValues.Builder
Overrides

clearCoarseValue()

public ConversionValues.Builder clearCoarseValue()

Required. A coarse grained conversion value.

This value is not guaranteed to be unique.

.google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

clearDisplayName()

public ConversionValues.Builder clearDisplayName()

Display name of the SKAdNetwork conversion value. The max allowed display name length is 50 UTF-16 code units.

string display_name = 1;

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

clearEventMappings()

public ConversionValues.Builder clearEventMappings()

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Returns
Type Description
ConversionValues.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFineValue()

public ConversionValues.Builder clearFineValue()

The fine-grained conversion value. This is applicable only to the first postback window. Its valid values are [0,63], both inclusive. It must be set for postback window 1, and must not be set for postback window 2 & 3. This value is not guaranteed to be unique.

If the configuration for the first postback window is re-used for second or third postback windows this field has no effect.

optional int32 fine_value = 2;

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

clearLockEnabled()

public ConversionValues.Builder clearLockEnabled()

If true, the SDK should lock to this conversion value for the current postback window.

bool lock_enabled = 5;

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ConversionValues.Builder clone()
Returns
Type Description
ConversionValues.Builder
Overrides

getCoarseValue()

public CoarseValue getCoarseValue()

Required. A coarse grained conversion value.

This value is not guaranteed to be unique.

.google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CoarseValue

The coarseValue.

getCoarseValueValue()

public int getCoarseValueValue()

Required. A coarse grained conversion value.

This value is not guaranteed to be unique.

.google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for coarseValue.

getDefaultInstanceForType()

public ConversionValues getDefaultInstanceForType()
Returns
Type Description
ConversionValues

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Display name of the SKAdNetwork conversion value. The max allowed display name length is 50 UTF-16 code units.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name of the SKAdNetwork conversion value. The max allowed display name length is 50 UTF-16 code units.

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

getEventMappings(int index)

public EventMapping getEventMappings(int index)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
index int
Returns
Type Description
EventMapping

getEventMappingsBuilder(int index)

public EventMapping.Builder getEventMappingsBuilder(int index)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
index int
Returns
Type Description
EventMapping.Builder

getEventMappingsBuilderList()

public List<EventMapping.Builder> getEventMappingsBuilderList()

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Returns
Type Description
List<Builder>

getEventMappingsCount()

public int getEventMappingsCount()

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Returns
Type Description
int

getEventMappingsList()

public List<EventMapping> getEventMappingsList()

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Returns
Type Description
List<EventMapping>

getEventMappingsOrBuilder(int index)

public EventMappingOrBuilder getEventMappingsOrBuilder(int index)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
index int
Returns
Type Description
EventMappingOrBuilder

getEventMappingsOrBuilderList()

public List<? extends EventMappingOrBuilder> getEventMappingsOrBuilderList()

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Returns
Type Description
List<? extends com.google.analytics.admin.v1alpha.EventMappingOrBuilder>

getFineValue()

public int getFineValue()

The fine-grained conversion value. This is applicable only to the first postback window. Its valid values are [0,63], both inclusive. It must be set for postback window 1, and must not be set for postback window 2 & 3. This value is not guaranteed to be unique.

If the configuration for the first postback window is re-used for second or third postback windows this field has no effect.

optional int32 fine_value = 2;

Returns
Type Description
int

The fineValue.

getLockEnabled()

public boolean getLockEnabled()

If true, the SDK should lock to this conversion value for the current postback window.

bool lock_enabled = 5;

Returns
Type Description
boolean

The lockEnabled.

hasFineValue()

public boolean hasFineValue()

The fine-grained conversion value. This is applicable only to the first postback window. Its valid values are [0,63], both inclusive. It must be set for postback window 1, and must not be set for postback window 2 & 3. This value is not guaranteed to be unique.

If the configuration for the first postback window is re-used for second or third postback windows this field has no effect.

optional int32 fine_value = 2;

Returns
Type Description
boolean

Whether the fineValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConversionValues other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEventMappings(int index)

public ConversionValues.Builder removeEventMappings(int index)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameter
Name Description
index int
Returns
Type Description
ConversionValues.Builder

setCoarseValue(CoarseValue value)

public ConversionValues.Builder setCoarseValue(CoarseValue value)

Required. A coarse grained conversion value.

This value is not guaranteed to be unique.

.google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CoarseValue

The coarseValue to set.

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

setCoarseValueValue(int value)

public ConversionValues.Builder setCoarseValueValue(int value)

Required. A coarse grained conversion value.

This value is not guaranteed to be unique.

.google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for coarseValue to set.

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

setDisplayName(String value)

public ConversionValues.Builder setDisplayName(String value)

Display name of the SKAdNetwork conversion value. The max allowed display name length is 50 UTF-16 code units.

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ConversionValues.Builder setDisplayNameBytes(ByteString value)

Display name of the SKAdNetwork conversion value. The max allowed display name length is 50 UTF-16 code units.

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

setEventMappings(int index, EventMapping value)

public ConversionValues.Builder setEventMappings(int index, EventMapping value)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameters
Name Description
index int
value EventMapping
Returns
Type Description
ConversionValues.Builder

setEventMappings(int index, EventMapping.Builder builderForValue)

public ConversionValues.Builder setEventMappings(int index, EventMapping.Builder builderForValue)

Event conditions that must be met for this Conversion Value to be achieved. The conditions in this list are ANDed together. It must have minimum of 1 entry and maximum of 3 entries, if the postback window is enabled.

repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;

Parameters
Name Description
index int
builderForValue EventMapping.Builder
Returns
Type Description
ConversionValues.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFineValue(int value)

public ConversionValues.Builder setFineValue(int value)

The fine-grained conversion value. This is applicable only to the first postback window. Its valid values are [0,63], both inclusive. It must be set for postback window 1, and must not be set for postback window 2 & 3. This value is not guaranteed to be unique.

If the configuration for the first postback window is re-used for second or third postback windows this field has no effect.

optional int32 fine_value = 2;

Parameter
Name Description
value int

The fineValue to set.

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

setLockEnabled(boolean value)

public ConversionValues.Builder setLockEnabled(boolean value)

If true, the SDK should lock to this conversion value for the current postback window.

bool lock_enabled = 5;

Parameter
Name Description
value boolean

The lockEnabled to set.

Returns
Type Description
ConversionValues.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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