Class EnhancedMeasurementSettings.Builder (0.37.0)

public static final class EnhancedMeasurementSettings.Builder extends GeneratedMessageV3.Builder<EnhancedMeasurementSettings.Builder> implements EnhancedMeasurementSettingsOrBuilder

Singleton resource under a web DataStream, configuring measurement of additional site interactions and content.

Protobuf type google.analytics.admin.v1alpha.EnhancedMeasurementSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EnhancedMeasurementSettings build()
Returns
TypeDescription
EnhancedMeasurementSettings

buildPartial()

public EnhancedMeasurementSettings buildPartial()
Returns
TypeDescription
EnhancedMeasurementSettings

clear()

public EnhancedMeasurementSettings.Builder clear()
Returns
TypeDescription
EnhancedMeasurementSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public EnhancedMeasurementSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EnhancedMeasurementSettings.Builder
Overrides

clearFileDownloadsEnabled()

public EnhancedMeasurementSettings.Builder clearFileDownloadsEnabled()

If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.

bool file_downloads_enabled = 7;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearFormInteractionsEnabled()

public EnhancedMeasurementSettings.Builder clearFormInteractionsEnabled()

If enabled, capture a form interaction event each time a visitor interacts with a form on your website. False by default.

bool form_interactions_enabled = 9;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearName()

public EnhancedMeasurementSettings.Builder clearName()

Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

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

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EnhancedMeasurementSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EnhancedMeasurementSettings.Builder
Overrides

clearOutboundClicksEnabled()

public EnhancedMeasurementSettings.Builder clearOutboundClicksEnabled()

If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain.

bool outbound_clicks_enabled = 4;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearPageChangesEnabled()

public EnhancedMeasurementSettings.Builder clearPageChangesEnabled()

If enabled, capture a page view event each time the website changes the browser history state.

bool page_changes_enabled = 8;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearScrollsEnabled()

public EnhancedMeasurementSettings.Builder clearScrollsEnabled()

If enabled, capture scroll events each time a visitor gets to the bottom of a page.

bool scrolls_enabled = 3;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearSearchQueryParameter()

public EnhancedMeasurementSettings.Builder clearSearchQueryParameter()

Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty.

string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearSiteSearchEnabled()

public EnhancedMeasurementSettings.Builder clearSiteSearchEnabled()

If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter).

bool site_search_enabled = 5;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearStreamEnabled()

public EnhancedMeasurementSettings.Builder clearStreamEnabled()

Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream.

Changing this value does not affect the settings themselves, but determines whether they are respected.

bool stream_enabled = 2;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearUriQueryParameter()

public EnhancedMeasurementSettings.Builder clearUriQueryParameter()

Additional URL query parameters. Max length is 1024 characters.

string uri_query_parameter = 11;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clearVideoEngagementEnabled()

public EnhancedMeasurementSettings.Builder clearVideoEngagementEnabled()

If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site.

bool video_engagement_enabled = 6;

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

clone()

public EnhancedMeasurementSettings.Builder clone()
Returns
TypeDescription
EnhancedMeasurementSettings.Builder
Overrides

getDefaultInstanceForType()

public EnhancedMeasurementSettings getDefaultInstanceForType()
Returns
TypeDescription
EnhancedMeasurementSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileDownloadsEnabled()

public boolean getFileDownloadsEnabled()

If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.

bool file_downloads_enabled = 7;

Returns
TypeDescription
boolean

The fileDownloadsEnabled.

getFormInteractionsEnabled()

public boolean getFormInteractionsEnabled()

If enabled, capture a form interaction event each time a visitor interacts with a form on your website. False by default.

bool form_interactions_enabled = 9;

Returns
TypeDescription
boolean

The formInteractionsEnabled.

getName()

public String getName()

Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

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

Returns
TypeDescription
ByteString

The bytes for name.

getOutboundClicksEnabled()

public boolean getOutboundClicksEnabled()

If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain.

bool outbound_clicks_enabled = 4;

Returns
TypeDescription
boolean

The outboundClicksEnabled.

getPageChangesEnabled()

public boolean getPageChangesEnabled()

If enabled, capture a page view event each time the website changes the browser history state.

bool page_changes_enabled = 8;

Returns
TypeDescription
boolean

The pageChangesEnabled.

getScrollsEnabled()

public boolean getScrollsEnabled()

If enabled, capture scroll events each time a visitor gets to the bottom of a page.

bool scrolls_enabled = 3;

Returns
TypeDescription
boolean

The scrollsEnabled.

getSearchQueryParameter()

public String getSearchQueryParameter()

Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty.

string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The searchQueryParameter.

getSearchQueryParameterBytes()

public ByteString getSearchQueryParameterBytes()

Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty.

string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for searchQueryParameter.

getSiteSearchEnabled()

public boolean getSiteSearchEnabled()

If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter).

bool site_search_enabled = 5;

Returns
TypeDescription
boolean

The siteSearchEnabled.

getStreamEnabled()

public boolean getStreamEnabled()

Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream.

Changing this value does not affect the settings themselves, but determines whether they are respected.

bool stream_enabled = 2;

Returns
TypeDescription
boolean

The streamEnabled.

getUriQueryParameter()

public String getUriQueryParameter()

Additional URL query parameters. Max length is 1024 characters.

string uri_query_parameter = 11;

Returns
TypeDescription
String

The uriQueryParameter.

getUriQueryParameterBytes()

public ByteString getUriQueryParameterBytes()

Additional URL query parameters. Max length is 1024 characters.

string uri_query_parameter = 11;

Returns
TypeDescription
ByteString

The bytes for uriQueryParameter.

getVideoEngagementEnabled()

public boolean getVideoEngagementEnabled()

If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site.

bool video_engagement_enabled = 6;

Returns
TypeDescription
boolean

The videoEngagementEnabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EnhancedMeasurementSettings other)

public EnhancedMeasurementSettings.Builder mergeFrom(EnhancedMeasurementSettings other)
Parameter
NameDescription
otherEnhancedMeasurementSettings
Returns
TypeDescription
EnhancedMeasurementSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EnhancedMeasurementSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EnhancedMeasurementSettings.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileDownloadsEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setFileDownloadsEnabled(boolean value)

If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.

bool file_downloads_enabled = 7;

Parameter
NameDescription
valueboolean

The fileDownloadsEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setFormInteractionsEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setFormInteractionsEnabled(boolean value)

If enabled, capture a form interaction event each time a visitor interacts with a form on your website. False by default.

bool form_interactions_enabled = 9;

Parameter
NameDescription
valueboolean

The formInteractionsEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setName(String value)

public EnhancedMeasurementSettings.Builder setName(String value)

Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EnhancedMeasurementSettings.Builder setNameBytes(ByteString value)

Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setOutboundClicksEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setOutboundClicksEnabled(boolean value)

If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain.

bool outbound_clicks_enabled = 4;

Parameter
NameDescription
valueboolean

The outboundClicksEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setPageChangesEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setPageChangesEnabled(boolean value)

If enabled, capture a page view event each time the website changes the browser history state.

bool page_changes_enabled = 8;

Parameter
NameDescription
valueboolean

The pageChangesEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

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

public EnhancedMeasurementSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EnhancedMeasurementSettings.Builder
Overrides

setScrollsEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setScrollsEnabled(boolean value)

If enabled, capture scroll events each time a visitor gets to the bottom of a page.

bool scrolls_enabled = 3;

Parameter
NameDescription
valueboolean

The scrollsEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setSearchQueryParameter(String value)

public EnhancedMeasurementSettings.Builder setSearchQueryParameter(String value)

Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty.

string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The searchQueryParameter to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setSearchQueryParameterBytes(ByteString value)

public EnhancedMeasurementSettings.Builder setSearchQueryParameterBytes(ByteString value)

Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty.

string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for searchQueryParameter to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setSiteSearchEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setSiteSearchEnabled(boolean value)

If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter).

bool site_search_enabled = 5;

Parameter
NameDescription
valueboolean

The siteSearchEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setStreamEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setStreamEnabled(boolean value)

Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream.

Changing this value does not affect the settings themselves, but determines whether they are respected.

bool stream_enabled = 2;

Parameter
NameDescription
valueboolean

The streamEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUriQueryParameter(String value)

public EnhancedMeasurementSettings.Builder setUriQueryParameter(String value)

Additional URL query parameters. Max length is 1024 characters.

string uri_query_parameter = 11;

Parameter
NameDescription
valueString

The uriQueryParameter to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setUriQueryParameterBytes(ByteString value)

public EnhancedMeasurementSettings.Builder setUriQueryParameterBytes(ByteString value)

Additional URL query parameters. Max length is 1024 characters.

string uri_query_parameter = 11;

Parameter
NameDescription
valueByteString

The bytes for uriQueryParameter to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.

setVideoEngagementEnabled(boolean value)

public EnhancedMeasurementSettings.Builder setVideoEngagementEnabled(boolean value)

If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site.

bool video_engagement_enabled = 6;

Parameter
NameDescription
valueboolean

The videoEngagementEnabled to set.

Returns
TypeDescription
EnhancedMeasurementSettings.Builder

This builder for chaining.