Class DataRetentionSettings.Builder (0.64.0)

public static final class DataRetentionSettings.Builder extends GeneratedMessageV3.Builder<DataRetentionSettings.Builder> implements DataRetentionSettingsOrBuilder

Settings values for data retention. This is a singleton resource.

Protobuf type google.analytics.admin.v1beta.DataRetentionSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataRetentionSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataRetentionSettings.Builder
Overrides

build()

public DataRetentionSettings build()
Returns
Type Description
DataRetentionSettings

buildPartial()

public DataRetentionSettings buildPartial()
Returns
Type Description
DataRetentionSettings

clear()

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

clearEventDataRetention()

public DataRetentionSettings.Builder clearEventDataRetention()

The length of time that event-level data is retained.

.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2;

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataRetentionSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataRetentionSettings.Builder
Overrides

clearName()

public DataRetentionSettings.Builder clearName()

Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

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

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataRetentionSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataRetentionSettings.Builder
Overrides

clearResetUserDataOnNewActivity()

public DataRetentionSettings.Builder clearResetUserDataOnNewActivity()

If true, reset the retention period for the user identifier with every event from that user.

bool reset_user_data_on_new_activity = 3;

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

clone()

public DataRetentionSettings.Builder clone()
Returns
Type Description
DataRetentionSettings.Builder
Overrides

getDefaultInstanceForType()

public DataRetentionSettings getDefaultInstanceForType()
Returns
Type Description
DataRetentionSettings

getDescriptorForType()

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

getEventDataRetention()

public DataRetentionSettings.RetentionDuration getEventDataRetention()

The length of time that event-level data is retained.

.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2;

Returns
Type Description
DataRetentionSettings.RetentionDuration

The eventDataRetention.

getEventDataRetentionValue()

public int getEventDataRetentionValue()

The length of time that event-level data is retained.

.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2;

Returns
Type Description
int

The enum numeric value on the wire for eventDataRetention.

getName()

public String getName()

Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

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

Returns
Type Description
ByteString

The bytes for name.

getResetUserDataOnNewActivity()

public boolean getResetUserDataOnNewActivity()

If true, reset the retention period for the user identifier with every event from that user.

bool reset_user_data_on_new_activity = 3;

Returns
Type Description
boolean

The resetUserDataOnNewActivity.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataRetentionSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataRetentionSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataRetentionSettings.Builder
Overrides

setEventDataRetention(DataRetentionSettings.RetentionDuration value)

public DataRetentionSettings.Builder setEventDataRetention(DataRetentionSettings.RetentionDuration value)

The length of time that event-level data is retained.

.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2;

Parameter
Name Description
value DataRetentionSettings.RetentionDuration

The eventDataRetention to set.

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

setEventDataRetentionValue(int value)

public DataRetentionSettings.Builder setEventDataRetentionValue(int value)

The length of time that event-level data is retained.

.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2;

Parameter
Name Description
value int

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

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataRetentionSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataRetentionSettings.Builder
Overrides

setName(String value)

public DataRetentionSettings.Builder setName(String value)

Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataRetentionSettings.Builder setNameBytes(ByteString value)

Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

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

public DataRetentionSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataRetentionSettings.Builder
Overrides

setResetUserDataOnNewActivity(boolean value)

public DataRetentionSettings.Builder setResetUserDataOnNewActivity(boolean value)

If true, reset the retention period for the user identifier with every event from that user.

bool reset_user_data_on_new_activity = 3;

Parameter
Name Description
value boolean

The resetUserDataOnNewActivity to set.

Returns
Type Description
DataRetentionSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataRetentionSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataRetentionSettings.Builder
Overrides