Class AttributionSettings.Builder (0.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttributionSettings build()
Returns
TypeDescription
AttributionSettings

buildPartial()

public AttributionSettings buildPartial()
Returns
TypeDescription
AttributionSettings

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttributionSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AttributionSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public AttributionSettings.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for adsWebConversionDataExportScope.

getDefaultInstanceForType()

public AttributionSettings getDefaultInstanceForType()
Returns
TypeDescription
AttributionSettings

getDescriptorForType()

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

The enum numeric value on the wire for reportingAttributionModel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttributionSettings other)

public AttributionSettings.Builder mergeFrom(AttributionSettings other)
Parameter
NameDescription
otherAttributionSettings
Returns
TypeDescription
AttributionSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributionSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAttributionSettings.AcquisitionConversionEventLookbackWindow

The acquisitionConversionEventLookbackWindow to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueAttributionSettings.AdsWebConversionDataExportScope

The adsWebConversionDataExportScope to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
AttributionSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueAttributionSettings.OtherConversionEventLookbackWindow

The otherConversionEventLookbackWindow to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueAttributionSettings.ReportingAttributionModel

The reportingAttributionModel to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
AttributionSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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