Class ConversionValues.Builder (0.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.admin.v1alpha.EventMapping>
Returns
TypeDescription
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
NameDescription
valueEventMapping
Returns
TypeDescription
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
NameDescription
builderForValueEventMapping.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueEventMapping
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEventMapping.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
EventMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversionValues build()
Returns
TypeDescription
ConversionValues

buildPartial()

public ConversionValues buildPartial()
Returns
TypeDescription
ConversionValues

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ConversionValues.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConversionValues.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversionValues.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConversionValues.Builder
Overrides

clone()

public ConversionValues.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for coarseValue.

getDefaultInstanceForType()

public ConversionValues getDefaultInstanceForType()
Returns
TypeDescription
ConversionValues

getDescriptorForType()

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

Whether the fineValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConversionValues other)

public ConversionValues.Builder mergeFrom(ConversionValues other)
Parameter
NameDescription
otherConversionValues
Returns
TypeDescription
ConversionValues.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversionValues.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueCoarseValue

The coarseValue to set.

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

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

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

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
indexint
valueEventMapping
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEventMapping.Builder
Returns
TypeDescription
ConversionValues.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The fineValue to set.

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

The lockEnabled to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversionValues.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversionValues.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversionValues.Builder
Overrides