Class DataRedactionSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder
- All Implemented Interfaces:
DataRedactionSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataRedactionSettings
public static final class DataRedactionSettings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
implements DataRedactionSettingsOrBuilder
Settings for client-side data redaction. Singleton resource under a Web Stream.Protobuf type
google.analytics.admin.v1alpha.DataRedactionSettings-
Method Summary
Modifier and TypeMethodDescriptionaddAllQueryParameterKeys(Iterable<String> values) The query parameter keys to apply redaction logic to if present in the URL.addQueryParameterKeys(String value) The query parameter keys to apply redaction logic to if present in the URL.addQueryParameterKeysBytes(com.google.protobuf.ByteString value) The query parameter keys to apply redaction logic to if present in the URL.build()clear()If enabled, any event parameter or user property values that look like an email will be redacted.Output only.The query parameter keys to apply redaction logic to if present in the URL.Query Parameter redaction removes the key and value portions of a query parameter if it is in the configured set of query parameters.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf enabled, any event parameter or user property values that look like an email will be redacted.getName()Output only.com.google.protobuf.ByteStringOutput only.getQueryParameterKeys(int index) The query parameter keys to apply redaction logic to if present in the URL.com.google.protobuf.ByteStringgetQueryParameterKeysBytes(int index) The query parameter keys to apply redaction logic to if present in the URL.intThe query parameter keys to apply redaction logic to if present in the URL.com.google.protobuf.ProtocolStringListThe query parameter keys to apply redaction logic to if present in the URL.booleanQuery Parameter redaction removes the key and value portions of a query parameter if it is in the configured set of query parameters.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DataRedactionSettings other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEmailRedactionEnabled(boolean value) If enabled, any event parameter or user property values that look like an email will be redacted.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setQueryParameterKeys(int index, String value) The query parameter keys to apply redaction logic to if present in the URL.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataRedactionSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
-
mergeFrom
public DataRedactionSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataRedactionSettings.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceDataRedactionSettingsOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceDataRedactionSettingsOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getEmailRedactionEnabledin interfaceDataRedactionSettingsOrBuilder- Returns:
- The emailRedactionEnabled.
-
setEmailRedactionEnabled
If enabled, any event parameter or user property values that look like an email will be redacted.
bool email_redaction_enabled = 2;- Parameters:
value- The emailRedactionEnabled to set.- Returns:
- This builder for chaining.
-
clearEmailRedactionEnabled
If enabled, any event parameter or user property values that look like an email will be redacted.
bool email_redaction_enabled = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
getQueryParameterRedactionEnabledin interfaceDataRedactionSettingsOrBuilder- Returns:
- The queryParameterRedactionEnabled.
-
setQueryParameterRedactionEnabled
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;- Parameters:
value- The queryParameterRedactionEnabled to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getQueryParameterKeysList
public com.google.protobuf.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;- Specified by:
getQueryParameterKeysListin interfaceDataRedactionSettingsOrBuilder- Returns:
- A list containing the queryParameterKeys.
-
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;- Specified by:
getQueryParameterKeysCountin interfaceDataRedactionSettingsOrBuilder- Returns:
- The count of queryParameterKeys.
-
getQueryParameterKeys
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;- Specified by:
getQueryParameterKeysin interfaceDataRedactionSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The queryParameterKeys at the given index.
-
getQueryParameterKeysBytes
public com.google.protobuf.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;- Specified by:
getQueryParameterKeysBytesin interfaceDataRedactionSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the queryParameterKeys at the given index.
-
setQueryParameterKeys
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:
index- The index to set the value at.value- The queryParameterKeys to set.- Returns:
- This builder for chaining.
-
addQueryParameterKeys
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:
value- The queryParameterKeys to add.- Returns:
- This builder for chaining.
-
addAllQueryParameterKeys
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:
values- The queryParameterKeys to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addQueryParameterKeysBytes
public DataRedactionSettings.Builder addQueryParameterKeysBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the queryParameterKeys to add.- Returns:
- This builder for chaining.
-