Class DataRedactionSettings (0.51.0)

public final class DataRedactionSettings extends GeneratedMessageV3 implements DataRedactionSettingsOrBuilder

Settings for client-side data redaction. Singleton resource under a Web Stream.

Protobuf type google.analytics.admin.v1alpha.DataRedactionSettings

Static Fields

EMAIL_REDACTION_ENABLED_FIELD_NUMBER

public static final int EMAIL_REDACTION_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

QUERY_PARAMETER_KEYS_FIELD_NUMBER

public static final int QUERY_PARAMETER_KEYS_FIELD_NUMBER
Field Value
TypeDescription
int

QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER

public static final int QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataRedactionSettings getDefaultInstance()
Returns
TypeDescription
DataRedactionSettings

getDescriptor()

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

newBuilder()

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

newBuilder(DataRedactionSettings prototype)

public static DataRedactionSettings.Builder newBuilder(DataRedactionSettings prototype)
Parameter
NameDescription
prototypeDataRedactionSettings
Returns
TypeDescription
DataRedactionSettings.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DataRedactionSettings getDefaultInstanceForType()
Returns
TypeDescription
DataRedactionSettings

getEmailRedactionEnabled()

public boolean getEmailRedactionEnabled()

If enabled, any event parameter or user property values that look like an email will be redacted.

bool email_redaction_enabled = 2;

Returns
TypeDescription
boolean

The emailRedactionEnabled.

getName()

public String getName()

Output only. Name of this Data Redaction Settings resource. Format: properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings Example: "properties/1000/dataStreams/2000/dataRedactionSettings"

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of this Data Redaction Settings resource. Format: properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings Example: "properties/1000/dataStreams/2000/dataRedactionSettings"

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

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getQueryParameterKeys(int index)

public String getQueryParameterKeys(int index)

The query parameter keys to apply redaction logic to if present in the URL. Query parameter matching is case-insensitive.

Must contain at least one element if query_parameter_replacement_enabled is true. Keys cannot contain commas.

repeated string query_parameter_keys = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The queryParameterKeys at the given index.

getQueryParameterKeysBytes(int index)

public ByteString getQueryParameterKeysBytes(int index)

The query parameter keys to apply redaction logic to if present in the URL. Query parameter matching is case-insensitive.

Must contain at least one element if query_parameter_replacement_enabled is true. Keys cannot contain commas.

repeated string query_parameter_keys = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the queryParameterKeys at the given index.

getQueryParameterKeysCount()

public int getQueryParameterKeysCount()

The query parameter keys to apply redaction logic to if present in the URL. Query parameter matching is case-insensitive.

Must contain at least one element if query_parameter_replacement_enabled is true. Keys cannot contain commas.

repeated string query_parameter_keys = 4;

Returns
TypeDescription
int

The count of queryParameterKeys.

getQueryParameterKeysList()

public ProtocolStringList getQueryParameterKeysList()

The query parameter keys to apply redaction logic to if present in the URL. Query parameter matching is case-insensitive.

Must contain at least one element if query_parameter_replacement_enabled is true. Keys cannot contain commas.

repeated string query_parameter_keys = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the queryParameterKeys.

getQueryParameterRedactionEnabled()

public boolean getQueryParameterRedactionEnabled()

Query Parameter redaction removes the key and value portions of a query parameter if it is in the configured set of query parameters.

If enabled, URL query replacement logic will be run for the Stream. Any query parameters defined in query_parameter_keys will be redacted.

bool query_parameter_redaction_enabled = 3;

Returns
TypeDescription
boolean

The queryParameterRedactionEnabled.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 DataRedactionSettings.Builder newBuilderForType()
Returns
TypeDescription
DataRedactionSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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