Class PostbackWindow.Builder (0.39.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.admin.v1alpha.ConversionValues>
Returns
TypeDescription
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
NameDescription
valueConversionValues
Returns
TypeDescription
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
NameDescription
builderForValueConversionValues.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConversionValues
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConversionValues.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConversionValues.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PostbackWindow build()
Returns
TypeDescription
PostbackWindow

buildPartial()

public PostbackWindow buildPartial()
Returns
TypeDescription
PostbackWindow

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public PostbackWindow.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder>

getDefaultInstanceForType()

public PostbackWindow getDefaultInstanceForType()
Returns
TypeDescription
PostbackWindow

getDescriptorForType()

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

The postbackWindowSettingsEnabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PostbackWindow other)

public PostbackWindow.Builder mergeFrom(PostbackWindow other)
Parameter
NameDescription
otherPostbackWindow
Returns
TypeDescription
PostbackWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The postbackWindowSettingsEnabled to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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