Class GoogleSignalsSettings.Builder (0.28.0)

public static final class GoogleSignalsSettings.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GoogleSignalsSettings build()
Returns
TypeDescription
GoogleSignalsSettings

buildPartial()

public GoogleSignalsSettings buildPartial()
Returns
TypeDescription
GoogleSignalsSettings

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

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
TypeDescription
GoogleSignalsSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public GoogleSignalsSettings.Builder clearState()

Status of this setting.

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

Returns
TypeDescription
GoogleSignalsSettings.Builder

This builder for chaining.

clone()

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

getConsent()

public GoogleSignalsConsent getConsent()

Output only. Terms of Service acceptance.

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

Returns
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for consent.

getDefaultInstanceForType()

public GoogleSignalsSettings getDefaultInstanceForType()
Returns
TypeDescription
GoogleSignalsSettings

getDescriptorForType()

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

The bytes for name.

getState()

public GoogleSignalsState getState()

Status of this setting.

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

Returns
TypeDescription
GoogleSignalsState

The state.

getStateValue()

public int getStateValue()

Status of this setting.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GoogleSignalsSettings other)

public GoogleSignalsSettings.Builder mergeFrom(GoogleSignalsSettings other)
Parameter
NameDescription
otherGoogleSignalsSettings
Returns
TypeDescription
GoogleSignalsSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The consent to set.

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

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

Returns
TypeDescription
GoogleSignalsSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
GoogleSignalsSettings.Builder

This builder for chaining.

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

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

setState(GoogleSignalsState value)

public GoogleSignalsSettings.Builder setState(GoogleSignalsState value)

Status of this setting.

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

Parameter
NameDescription
valueGoogleSignalsState

The state to set.

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

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

Returns
TypeDescription
GoogleSignalsSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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