Class DataRedactionSettings.Builder (0.63.0)

public static final class DataRedactionSettings.Builder extends GeneratedMessageV3.Builder<DataRedactionSettings.Builder> implements DataRedactionSettingsOrBuilder

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

Protobuf type google.analytics.admin.v1alpha.DataRedactionSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllQueryParameterKeys(Iterable<String> values)

public DataRedactionSettings.Builder addAllQueryParameterKeys(Iterable<String> values)

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
Name Description
values Iterable<String>

The queryParameterKeys to add.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

addQueryParameterKeys(String value)

public DataRedactionSettings.Builder addQueryParameterKeys(String value)

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
Name Description
value String

The queryParameterKeys to add.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

addQueryParameterKeysBytes(ByteString value)

public DataRedactionSettings.Builder addQueryParameterKeysBytes(ByteString value)

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
Name Description
value ByteString

The bytes of the queryParameterKeys to add.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataRedactionSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataRedactionSettings.Builder
Overrides

build()

public DataRedactionSettings build()
Returns
Type Description
DataRedactionSettings

buildPartial()

public DataRedactionSettings buildPartial()
Returns
Type Description
DataRedactionSettings

clear()

public DataRedactionSettings.Builder clear()
Returns
Type Description
DataRedactionSettings.Builder
Overrides

clearEmailRedactionEnabled()

public DataRedactionSettings.Builder clearEmailRedactionEnabled()

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

bool email_redaction_enabled = 2;

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataRedactionSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataRedactionSettings.Builder
Overrides

clearName()

public DataRedactionSettings.Builder clearName()

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
Type Description
DataRedactionSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataRedactionSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataRedactionSettings.Builder
Overrides

clearQueryParameterKeys()

public DataRedactionSettings.Builder clearQueryParameterKeys()

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
Type Description
DataRedactionSettings.Builder

This builder for chaining.

clearQueryParameterRedactionEnabled()

public DataRedactionSettings.Builder clearQueryParameterRedactionEnabled()

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
Type Description
DataRedactionSettings.Builder

This builder for chaining.

clone()

public DataRedactionSettings.Builder clone()
Returns
Type Description
DataRedactionSettings.Builder
Overrides

getDefaultInstanceForType()

public DataRedactionSettings getDefaultInstanceForType()
Returns
Type Description
DataRedactionSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

The queryParameterRedactionEnabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataRedactionSettings other)

public DataRedactionSettings.Builder mergeFrom(DataRedactionSettings other)
Parameter
Name Description
other DataRedactionSettings
Returns
Type Description
DataRedactionSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataRedactionSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataRedactionSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataRedactionSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataRedactionSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataRedactionSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataRedactionSettings.Builder
Overrides

setEmailRedactionEnabled(boolean value)

public DataRedactionSettings.Builder setEmailRedactionEnabled(boolean value)

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

bool email_redaction_enabled = 2;

Parameter
Name Description
value boolean

The emailRedactionEnabled to set.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataRedactionSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataRedactionSettings.Builder
Overrides

setName(String value)

public DataRedactionSettings.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataRedactionSettings.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

setQueryParameterKeys(int index, String value)

public DataRedactionSettings.Builder setQueryParameterKeys(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The queryParameterKeys to set.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

setQueryParameterRedactionEnabled(boolean value)

public DataRedactionSettings.Builder setQueryParameterRedactionEnabled(boolean value)

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;

Parameter
Name Description
value boolean

The queryParameterRedactionEnabled to set.

Returns
Type Description
DataRedactionSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataRedactionSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataRedactionSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataRedactionSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataRedactionSettings.Builder
Overrides