Send feedback
Class DataRetentionSettings.Builder (0.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.21.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.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 ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataRetentionSettings . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public DataRetentionSettings build ()
Returns
buildPartial()
public DataRetentionSettings buildPartial ()
Returns
clear()
public DataRetentionSettings . Builder clear ()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public DataRetentionSettings . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public DataRetentionSettings . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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
clone()
public DataRetentionSettings . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public DataRetentionSettings getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
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
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
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(DataRetentionSettings other)
public DataRetentionSettings . Builder mergeFrom ( DataRetentionSettings other )
Parameter
Returns
public DataRetentionSettings . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DataRetentionSettings . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataRetentionSettings . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public DataRetentionSettings . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataRetentionSettings . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final DataRetentionSettings . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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-27 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-27 UTC."],[],[]]