Class AttributionSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AttributionSettings.Builder>
com.google.analytics.admin.v1alpha.AttributionSettings.Builder
- All Implemented Interfaces:
AttributionSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AttributionSettings
public static final class AttributionSettings.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Output only.Required.Required.Required.intRequired.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Output only.com.google.protobuf.ByteStringOutput only.Required.intRequired.Required.intRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AttributionSettings other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcquisitionConversionEventLookbackWindow(AttributionSettings.AcquisitionConversionEventLookbackWindow value) Required.Required.Required.setAdsWebConversionDataExportScopeValue(int value) Required.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Required.setOtherConversionEventLookbackWindowValue(int value) Required.Required.setReportingAttributionModelValue(int value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AttributionSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AttributionSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AttributionSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributionSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AttributionSettings.Builder>
-
mergeFrom
public AttributionSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributionSettings.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceAttributionSettingsOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceAttributionSettingsOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getAcquisitionConversionEventLookbackWindowValuein interfaceAttributionSettingsOrBuilder- Returns:
- The enum numeric value on the wire for acquisitionConversionEventLookbackWindow.
-
setAcquisitionConversionEventLookbackWindowValue
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];- Parameters:
value- The enum numeric value on the wire for acquisitionConversionEventLookbackWindow to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getAcquisitionConversionEventLookbackWindowin interfaceAttributionSettingsOrBuilder- Returns:
- The acquisitionConversionEventLookbackWindow.
-
setAcquisitionConversionEventLookbackWindow
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];- Parameters:
value- The acquisitionConversionEventLookbackWindow to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getOtherConversionEventLookbackWindowValuein interfaceAttributionSettingsOrBuilder- Returns:
- The enum numeric value on the wire for otherConversionEventLookbackWindow.
-
setOtherConversionEventLookbackWindowValue
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];- Parameters:
value- The enum numeric value on the wire for otherConversionEventLookbackWindow to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getOtherConversionEventLookbackWindowin interfaceAttributionSettingsOrBuilder- Returns:
- The otherConversionEventLookbackWindow.
-
setOtherConversionEventLookbackWindow
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];- Parameters:
value- The otherConversionEventLookbackWindow to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getReportingAttributionModelValuein interfaceAttributionSettingsOrBuilder- Returns:
- The enum numeric value on the wire for reportingAttributionModel.
-
setReportingAttributionModelValue
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];- Parameters:
value- The enum numeric value on the wire for reportingAttributionModel to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getReportingAttributionModelin interfaceAttributionSettingsOrBuilder- Returns:
- The reportingAttributionModel.
-
setReportingAttributionModel
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];- Parameters:
value- The reportingAttributionModel to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getAdsWebConversionDataExportScopeValuein interfaceAttributionSettingsOrBuilder- Returns:
- The enum numeric value on the wire for adsWebConversionDataExportScope.
-
setAdsWebConversionDataExportScopeValue
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];- Parameters:
value- The enum numeric value on the wire for adsWebConversionDataExportScope to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getAdsWebConversionDataExportScopein interfaceAttributionSettingsOrBuilder- Returns:
- The adsWebConversionDataExportScope.
-
setAdsWebConversionDataExportScope
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];- Parameters:
value- The adsWebConversionDataExportScope to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-