Send feedback
Class DataRetentionSettings.Builder (0.57.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.57.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataRetentionSettings . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public DataRetentionSettings build ()
buildPartial()
public DataRetentionSettings buildPartial ()
clear()
public DataRetentionSettings . Builder clear ()
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;
clearField(Descriptors.FieldDescriptor field)
public DataRetentionSettings . Builder clearField ( Descriptors . FieldDescriptor field )
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public DataRetentionSettings . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public DataRetentionSettings . Builder clone ()
Overrides
getDefaultInstanceForType()
public DataRetentionSettings getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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;
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()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(DataRetentionSettings other)
public DataRetentionSettings . Builder mergeFrom ( DataRetentionSettings other )
public DataRetentionSettings . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DataRetentionSettings . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataRetentionSettings . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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;
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.
setField(Descriptors.FieldDescriptor field, Object value)
public DataRetentionSettings . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataRetentionSettings . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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.
setUnknownFields(UnknownFieldSet unknownFields)
public final DataRetentionSettings . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]