Class DataRetentionSettings (0.24.0)

public final class DataRetentionSettings extends GeneratedMessageV3 implements DataRetentionSettingsOrBuilder

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

Protobuf type google.analytics.admin.v1beta.DataRetentionSettings

Static Fields

EVENT_DATA_RETENTION_FIELD_NUMBER

public static final int EVENT_DATA_RETENTION_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER

public static final int RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataRetentionSettings getDefaultInstance()
Returns
TypeDescription
DataRetentionSettings

getDescriptor()

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

newBuilder()

public static DataRetentionSettings.Builder newBuilder()
Returns
TypeDescription
DataRetentionSettings.Builder

newBuilder(DataRetentionSettings prototype)

public static DataRetentionSettings.Builder newBuilder(DataRetentionSettings prototype)
Parameter
NameDescription
prototypeDataRetentionSettings
Returns
TypeDescription
DataRetentionSettings.Builder

parseDelimitedFrom(InputStream input)

public static DataRetentionSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataRetentionSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DataRetentionSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataRetentionSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataRetentionSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataRetentionSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataRetentionSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataRetentionSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DataRetentionSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataRetentionSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DataRetentionSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataRetentionSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataRetentionSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DataRetentionSettings> parser()
Returns
TypeDescription
Parser<DataRetentionSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DataRetentionSettings getDefaultInstanceForType()
Returns
TypeDescription
DataRetentionSettings

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

getParserForType()

public Parser<DataRetentionSettings> getParserForType()
Returns
TypeDescription
Parser<DataRetentionSettings>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DataRetentionSettings.Builder newBuilderForType()
Returns
TypeDescription
DataRetentionSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataRetentionSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DataRetentionSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DataRetentionSettings.Builder toBuilder()
Returns
TypeDescription
DataRetentionSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException