Class DataRetentionSettings.Builder (0.38.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.v1alpha.DataRetentionSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataRetentionSettings build()
Returns
TypeDescription
DataRetentionSettings

buildPartial()

public DataRetentionSettings buildPartial()
Returns
TypeDescription
DataRetentionSettings

clear()

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

clearEventDataRetention()

public DataRetentionSettings.Builder clearEventDataRetention()

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

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

Returns
TypeDescription
DataRetentionSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataRetentionSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DataRetentionSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataRetentionSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DataRetentionSettings.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DataRetentionSettings getDefaultInstanceForType()
Returns
TypeDescription
DataRetentionSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventDataRetention()

public DataRetentionSettings.RetentionDuration getEventDataRetention()

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

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

Returns
TypeDescription
DataRetentionSettings.RetentionDuration

The eventDataRetention.

getEventDataRetentionValue()

public int getEventDataRetentionValue()

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

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

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

The resetUserDataOnNewActivity.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataRetentionSettings other)

public DataRetentionSettings.Builder mergeFrom(DataRetentionSettings other)
Parameter
NameDescription
otherDataRetentionSettings
Returns
TypeDescription
DataRetentionSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataRetentionSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2;

Parameter
NameDescription
valueDataRetentionSettings.RetentionDuration

The eventDataRetention to set.

Returns
TypeDescription
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.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DataRetentionSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataRetentionSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The resetUserDataOnNewActivity to set.

Returns
TypeDescription
DataRetentionSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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