Class PostbackWindow.Builder (0.53.0)

public static final class PostbackWindow.Builder extends GeneratedMessageV3.Builder<PostbackWindow.Builder> implements PostbackWindowOrBuilder

Settings for a SKAdNetwork conversion postback window.

Protobuf type google.analytics.admin.v1alpha.PostbackWindow

Static Methods

getDescriptor()

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

Methods

addAllConversionValues(Iterable<? extends ConversionValues> values)

public PostbackWindow.Builder addAllConversionValues(Iterable<? extends ConversionValues> values)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

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

addConversionValues(ConversionValues value)

public PostbackWindow.Builder addConversionValues(ConversionValues value)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Parameter
Name Description
value ConversionValues
Returns
Type Description
PostbackWindow.Builder

addConversionValues(ConversionValues.Builder builderForValue)

public PostbackWindow.Builder addConversionValues(ConversionValues.Builder builderForValue)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

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

addConversionValues(int index, ConversionValues value)

public PostbackWindow.Builder addConversionValues(int index, ConversionValues value)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

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

addConversionValues(int index, ConversionValues.Builder builderForValue)

public PostbackWindow.Builder addConversionValues(int index, ConversionValues.Builder builderForValue)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

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

addConversionValuesBuilder()

public ConversionValues.Builder addConversionValuesBuilder()

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Returns
Type Description
ConversionValues.Builder

addConversionValuesBuilder(int index)

public ConversionValues.Builder addConversionValuesBuilder(int index)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Parameter
Name Description
index int
Returns
Type Description
ConversionValues.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PostbackWindow build()
Returns
Type Description
PostbackWindow

buildPartial()

public PostbackWindow buildPartial()
Returns
Type Description
PostbackWindow

clear()

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

clearConversionValues()

public PostbackWindow.Builder clearConversionValues()

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Returns
Type Description
PostbackWindow.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostbackWindowSettingsEnabled()

public PostbackWindow.Builder clearPostbackWindowSettingsEnabled()

If enable_postback_window_settings is true, conversion_values must be populated and will be used for determining when and how to set the Conversion Value on a client device and exporting schema to linked Ads accounts. If false, the settings are not used, but are retained in case they may be used in the future. This must always be true for postback_window_one.

bool postback_window_settings_enabled = 2;

Returns
Type Description
PostbackWindow.Builder

This builder for chaining.

clone()

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

getConversionValues(int index)

public ConversionValues getConversionValues(int index)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Parameter
Name Description
index int
Returns
Type Description
ConversionValues

getConversionValuesBuilder(int index)

public ConversionValues.Builder getConversionValuesBuilder(int index)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Parameter
Name Description
index int
Returns
Type Description
ConversionValues.Builder

getConversionValuesBuilderList()

public List<ConversionValues.Builder> getConversionValuesBuilderList()

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Returns
Type Description
List<Builder>

getConversionValuesCount()

public int getConversionValuesCount()

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Returns
Type Description
int

getConversionValuesList()

public List<ConversionValues> getConversionValuesList()

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Returns
Type Description
List<ConversionValues>

getConversionValuesOrBuilder(int index)

public ConversionValuesOrBuilder getConversionValuesOrBuilder(int index)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Parameter
Name Description
index int
Returns
Type Description
ConversionValuesOrBuilder

getConversionValuesOrBuilderList()

public List<? extends ConversionValuesOrBuilder> getConversionValuesOrBuilderList()

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

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

getDefaultInstanceForType()

public PostbackWindow getDefaultInstanceForType()
Returns
Type Description
PostbackWindow

getDescriptorForType()

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

getPostbackWindowSettingsEnabled()

public boolean getPostbackWindowSettingsEnabled()

If enable_postback_window_settings is true, conversion_values must be populated and will be used for determining when and how to set the Conversion Value on a client device and exporting schema to linked Ads accounts. If false, the settings are not used, but are retained in case they may be used in the future. This must always be true for postback_window_one.

bool postback_window_settings_enabled = 2;

Returns
Type Description
boolean

The postbackWindowSettingsEnabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PostbackWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConversionValues(int index)

public PostbackWindow.Builder removeConversionValues(int index)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

Parameter
Name Description
index int
Returns
Type Description
PostbackWindow.Builder

setConversionValues(int index, ConversionValues value)

public PostbackWindow.Builder setConversionValues(int index, ConversionValues value)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

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

setConversionValues(int index, ConversionValues.Builder builderForValue)

public PostbackWindow.Builder setConversionValues(int index, ConversionValues.Builder builderForValue)

Ordering of the repeated field will be used to prioritize the conversion value settings. Lower indexed entries are prioritized higher. The first conversion value setting that evaluates to true will be selected. It must have at least one entry if enable_postback_window_settings is set to true. It can have maximum of 128 entries.

repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPostbackWindowSettingsEnabled(boolean value)

public PostbackWindow.Builder setPostbackWindowSettingsEnabled(boolean value)

If enable_postback_window_settings is true, conversion_values must be populated and will be used for determining when and how to set the Conversion Value on a client device and exporting schema to linked Ads accounts. If false, the settings are not used, but are retained in case they may be used in the future. This must always be true for postback_window_one.

bool postback_window_settings_enabled = 2;

Parameter
Name Description
value boolean

The postbackWindowSettingsEnabled to set.

Returns
Type Description
PostbackWindow.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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