public static final class AttributionSettings.Builder extends GeneratedMessage.Builder<AttributionSettings.Builder> implements AttributionSettingsOrBuilderRepresents attribution settings for conversion sources receiving pre-attribution data.
Protobuf type google.shopping.merchant.conversions.v1.AttributionSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AttributionSettings.BuilderImplements
AttributionSettingsOrBuilderStatic 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 |
|
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 |
|
clearAttributionLookbackWindowDays()
public AttributionSettings.Builder clearAttributionLookbackWindowDays() Required. Lookback window (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.v1.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.v1.AttributionSettings.ConversionType conversion_type = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
AttributionSettings.Builder |
|
getAttributionLookbackWindowDays()
public int getAttributionLookbackWindowDays() Required. Lookback window (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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.AttributionSettings.ConversionTypeOrBuilder> |
|
getDefaultInstanceForType()
public AttributionSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttributionSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AttributionSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttributionSettings.Builder |
|
mergeFrom(AttributionSettings other)
public AttributionSettings.Builder mergeFrom(AttributionSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
AttributionSettings |
| Returns | |
|---|---|
| Type | Description |
AttributionSettings.Builder |
|
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.v1.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 window (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 |
intThe 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.v1.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AttributionSettings.AttributionModelThe 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.v1.AttributionSettings.AttributionModel attribution_model = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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.v1.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.v1.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 |
|