Class AttributionSettings.Builder (0.55.0)

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

The attribution settings used for a given property. This is a singleton resource.

Protobuf type google.analytics.admin.v1alpha.AttributionSettings

Static Methods

getDescriptor()

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

Methods

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

clearAcquisitionConversionEventLookbackWindow()

public AttributionSettings.Builder clearAcquisitionConversionEventLookbackWindow()

Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days.

.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

clearAdsWebConversionDataExportScope()

public AttributionSettings.Builder clearAdsWebConversionDataExportScope()

Required. The Conversion Export Scope for data exported to linked Ads Accounts.

.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AttributionSettings.Builder clearName()

Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOtherConversionEventLookbackWindow()

public AttributionSettings.Builder clearOtherConversionEventLookbackWindow()

Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days.

.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

clearReportingAttributionModel()

public AttributionSettings.Builder clearReportingAttributionModel()

Required. The reporting attribution model used to calculate conversion credit in this property's reports.

Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected.

.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

clone()

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

getAcquisitionConversionEventLookbackWindow()

public AttributionSettings.AcquisitionConversionEventLookbackWindow getAcquisitionConversionEventLookbackWindow()

Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days.

.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.AcquisitionConversionEventLookbackWindow

The acquisitionConversionEventLookbackWindow.

getAcquisitionConversionEventLookbackWindowValue()

public int getAcquisitionConversionEventLookbackWindowValue()

Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days.

.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for acquisitionConversionEventLookbackWindow.

getAdsWebConversionDataExportScope()

public AttributionSettings.AdsWebConversionDataExportScope getAdsWebConversionDataExportScope()

Required. The Conversion Export Scope for data exported to linked Ads Accounts.

.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.AdsWebConversionDataExportScope

The adsWebConversionDataExportScope.

getAdsWebConversionDataExportScopeValue()

public int getAdsWebConversionDataExportScopeValue()

Required. The Conversion Export Scope for data exported to linked Ads Accounts.

.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for adsWebConversionDataExportScope.

getDefaultInstanceForType()

public AttributionSettings getDefaultInstanceForType()
Returns
Type Description
AttributionSettings

getDescriptorForType()

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

getName()

public String getName()

Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getOtherConversionEventLookbackWindow()

public AttributionSettings.OtherConversionEventLookbackWindow getOtherConversionEventLookbackWindow()

Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days.

.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.OtherConversionEventLookbackWindow

The otherConversionEventLookbackWindow.

getOtherConversionEventLookbackWindowValue()

public int getOtherConversionEventLookbackWindowValue()

Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days.

.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for otherConversionEventLookbackWindow.

getReportingAttributionModel()

public AttributionSettings.ReportingAttributionModel getReportingAttributionModel()

Required. The reporting attribution model used to calculate conversion credit in this property's reports.

Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected.

.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributionSettings.ReportingAttributionModel

The reportingAttributionModel.

getReportingAttributionModelValue()

public int getReportingAttributionModelValue()

Required. The reporting attribution model used to calculate conversion credit in this property's reports.

Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected.

.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for reportingAttributionModel.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttributionSettings other)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAcquisitionConversionEventLookbackWindow(AttributionSettings.AcquisitionConversionEventLookbackWindow value)

public AttributionSettings.Builder setAcquisitionConversionEventLookbackWindow(AttributionSettings.AcquisitionConversionEventLookbackWindow value)

Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days.

.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributionSettings.AcquisitionConversionEventLookbackWindow

The acquisitionConversionEventLookbackWindow to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setAcquisitionConversionEventLookbackWindowValue(int value)

public AttributionSettings.Builder setAcquisitionConversionEventLookbackWindowValue(int value)

Required. The lookback window configuration for acquisition conversion events. The default window size is 30 days.

.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setAdsWebConversionDataExportScope(AttributionSettings.AdsWebConversionDataExportScope value)

public AttributionSettings.Builder setAdsWebConversionDataExportScope(AttributionSettings.AdsWebConversionDataExportScope value)

Required. The Conversion Export Scope for data exported to linked Ads Accounts.

.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributionSettings.AdsWebConversionDataExportScope

The adsWebConversionDataExportScope to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setAdsWebConversionDataExportScopeValue(int value)

public AttributionSettings.Builder setAdsWebConversionDataExportScopeValue(int value)

Required. The Conversion Export Scope for data exported to linked Ads Accounts.

.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

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

setName(String value)

public AttributionSettings.Builder setName(String value)

Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AttributionSettings.Builder setNameBytes(ByteString value)

Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setOtherConversionEventLookbackWindow(AttributionSettings.OtherConversionEventLookbackWindow value)

public AttributionSettings.Builder setOtherConversionEventLookbackWindow(AttributionSettings.OtherConversionEventLookbackWindow value)

Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days.

.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributionSettings.OtherConversionEventLookbackWindow

The otherConversionEventLookbackWindow to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setOtherConversionEventLookbackWindowValue(int value)

public AttributionSettings.Builder setOtherConversionEventLookbackWindowValue(int value)

Required. The lookback window for all other, non-acquisition conversion events. The default window size is 90 days.

.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

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

setReportingAttributionModel(AttributionSettings.ReportingAttributionModel value)

public AttributionSettings.Builder setReportingAttributionModel(AttributionSettings.ReportingAttributionModel value)

Required. The reporting attribution model used to calculate conversion credit in this property's reports.

Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected.

.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributionSettings.ReportingAttributionModel

The reportingAttributionModel to set.

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setReportingAttributionModelValue(int value)

public AttributionSettings.Builder setReportingAttributionModelValue(int value)

Required. The reporting attribution model used to calculate conversion credit in this property's reports.

Changing the attribution model will apply to both historical and future data. These changes will be reflected in reports with conversion and revenue data. User and session data will be unaffected.

.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AttributionSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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