Class AttributionSettings.Builder (0.11.0)

public static final class AttributionSettings.Builder extends GeneratedMessageV3.Builder<AttributionSettings.Builder> implements AttributionSettingsOrBuilder

Represents attribution settings for conversion sources receiving pre-attribution data.

Protobuf type google.shopping.merchant.conversions.v1beta.AttributionSettings

Static Methods

getDescriptor()

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

Methods

addAllConversionType(Iterable<? extends AttributionSettings.ConversionType> values)

public AttributionSettings.Builder addAllConversionType(Iterable<? extends AttributionSettings.ConversionType> values)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType>
Returns
Type Description
AttributionSettings.Builder

addConversionType(AttributionSettings.ConversionType value)

public AttributionSettings.Builder addConversionType(AttributionSettings.ConversionType value)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value AttributionSettings.ConversionType
Returns
Type Description
AttributionSettings.Builder

addConversionType(AttributionSettings.ConversionType.Builder builderForValue)

public AttributionSettings.Builder addConversionType(AttributionSettings.ConversionType.Builder builderForValue)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue AttributionSettings.ConversionType.Builder
Returns
Type Description
AttributionSettings.Builder

addConversionType(int index, AttributionSettings.ConversionType value)

public AttributionSettings.Builder addConversionType(int index, AttributionSettings.ConversionType value)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
value AttributionSettings.ConversionType
Returns
Type Description
AttributionSettings.Builder

addConversionType(int index, AttributionSettings.ConversionType.Builder builderForValue)

public AttributionSettings.Builder addConversionType(int index, AttributionSettings.ConversionType.Builder builderForValue)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
builderForValue AttributionSettings.ConversionType.Builder
Returns
Type Description
AttributionSettings.Builder

addConversionTypeBuilder()

public AttributionSettings.ConversionType.Builder addConversionTypeBuilder()

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AttributionSettings.ConversionType.Builder

addConversionTypeBuilder(int index)

public AttributionSettings.ConversionType.Builder addConversionTypeBuilder(int index)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
AttributionSettings.ConversionType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttributionSettings build()
Returns
Type Description
AttributionSettings

buildPartial()

public AttributionSettings buildPartial()
Returns
Type Description
AttributionSettings

clear()

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

clearAttributionLookbackWindowDays()

public AttributionSettings.Builder clearAttributionLookbackWindowDays()

Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40.

int32 attribution_lookback_window_days = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

clearAttributionModel()

public AttributionSettings.Builder clearAttributionModel()

Required. Attribution model.

.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

clearConversionType()

public AttributionSettings.Builder clearConversionType()

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AttributionSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAttributionLookbackWindowDays()

public int getAttributionLookbackWindowDays()

Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40.

int32 attribution_lookback_window_days = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The attributionLookbackWindowDays.

getAttributionModel()

public AttributionSettings.AttributionModel getAttributionModel()

Required. Attribution model.

.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.AttributionModel

The attributionModel.

getAttributionModelValue()

public int getAttributionModelValue()

Required. Attribution model.

.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for attributionModel.

getConversionType(int index)

public AttributionSettings.ConversionType getConversionType(int index)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
AttributionSettings.ConversionType

getConversionTypeBuilder(int index)

public AttributionSettings.ConversionType.Builder getConversionTypeBuilder(int index)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
AttributionSettings.ConversionType.Builder

getConversionTypeBuilderList()

public List<AttributionSettings.ConversionType.Builder> getConversionTypeBuilderList()

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<Builder>

getConversionTypeCount()

public int getConversionTypeCount()

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

getConversionTypeList()

public List<AttributionSettings.ConversionType> getConversionTypeList()

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<ConversionType>

getConversionTypeOrBuilder(int index)

public AttributionSettings.ConversionTypeOrBuilder getConversionTypeOrBuilder(int index)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
AttributionSettings.ConversionTypeOrBuilder

getConversionTypeOrBuilderList()

public List<? extends AttributionSettings.ConversionTypeOrBuilder> getConversionTypeOrBuilderList()

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<? extends com.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionTypeOrBuilder>

getDefaultInstanceForType()

public AttributionSettings getDefaultInstanceForType()
Returns
Type Description
AttributionSettings

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AttributionSettings other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConversionType(int index)

public AttributionSettings.Builder removeConversionType(int index)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
AttributionSettings.Builder

setAttributionLookbackWindowDays(int value)

public AttributionSettings.Builder setAttributionLookbackWindowDays(int value)

Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40.

int32 attribution_lookback_window_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The attributionLookbackWindowDays to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setAttributionModel(AttributionSettings.AttributionModel value)

public AttributionSettings.Builder setAttributionModel(AttributionSettings.AttributionModel value)

Required. Attribution model.

.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributionSettings.AttributionModel

The attributionModel to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setAttributionModelValue(int value)

public AttributionSettings.Builder setAttributionModelValue(int value)

Required. Attribution model.

.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setConversionType(int index, AttributionSettings.ConversionType value)

public AttributionSettings.Builder setConversionType(int index, AttributionSettings.ConversionType value)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
value AttributionSettings.ConversionType
Returns
Type Description
AttributionSettings.Builder

setConversionType(int index, AttributionSettings.ConversionType.Builder builderForValue)

public AttributionSettings.Builder setConversionType(int index, AttributionSettings.ConversionType.Builder builderForValue)

Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.

repeated .google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
builderForValue AttributionSettings.ConversionType.Builder
Returns
Type Description
AttributionSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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