Class GoogleSignalsSettings.Builder (0.93.0)

public static final class GoogleSignalsSettings.Builder extends GeneratedMessage.Builder<GoogleSignalsSettings.Builder> implements GoogleSignalsSettingsOrBuilder

Settings values for Google Signals. This is a singleton resource.

Protobuf type google.analytics.admin.v1alpha.GoogleSignalsSettings

Static Methods

getDescriptor()

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

Methods

build()

public GoogleSignalsSettings build()
Returns
Type Description
GoogleSignalsSettings

buildPartial()

public GoogleSignalsSettings buildPartial()
Returns
Type Description
GoogleSignalsSettings

clear()

public GoogleSignalsSettings.Builder clear()
Returns
Type Description
GoogleSignalsSettings.Builder
Overrides

clearConsent()

public GoogleSignalsSettings.Builder clearConsent()

Output only. Terms of Service acceptance.

.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

clearName()

public GoogleSignalsSettings.Builder clearName()

Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings"

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

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

clearState()

public GoogleSignalsSettings.Builder clearState()

Status of this setting.

.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

getConsent()

public GoogleSignalsConsent getConsent()

Output only. Terms of Service acceptance.

.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoogleSignalsConsent

The consent.

getConsentValue()

public int getConsentValue()

Output only. Terms of Service acceptance.

.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for consent.

getDefaultInstanceForType()

public GoogleSignalsSettings getDefaultInstanceForType()
Returns
Type Description
GoogleSignalsSettings

getDescriptorForType()

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

getName()

public String getName()

Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings"

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 setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings"

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

Returns
Type Description
ByteString

The bytes for name.

getState()

public GoogleSignalsState getState()

Status of this setting.

.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;

Returns
Type Description
GoogleSignalsState

The state.

getStateValue()

public int getStateValue()

Status of this setting.

.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleSignalsSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GoogleSignalsSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleSignalsSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GoogleSignalsSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GoogleSignalsSettings.Builder
Overrides

setConsent(GoogleSignalsConsent value)

public GoogleSignalsSettings.Builder setConsent(GoogleSignalsConsent value)

Output only. Terms of Service acceptance.

.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value GoogleSignalsConsent

The consent to set.

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

setConsentValue(int value)

public GoogleSignalsSettings.Builder setConsentValue(int value)

Output only. Terms of Service acceptance.

.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

setName(String value)

public GoogleSignalsSettings.Builder setName(String value)

Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings"

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GoogleSignalsSettings.Builder setNameBytes(ByteString value)

Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings"

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

setState(GoogleSignalsState value)

public GoogleSignalsSettings.Builder setState(GoogleSignalsState value)

Status of this setting.

.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;

Parameter
Name Description
value GoogleSignalsState

The state to set.

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.

setStateValue(int value)

public GoogleSignalsSettings.Builder setStateValue(int value)

Status of this setting.

.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;

Parameter
Name Description
value int

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

Returns
Type Description
GoogleSignalsSettings.Builder

This builder for chaining.