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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataRedactionSettings.Builder>
    • getDefaultInstanceForType

      public DataRedactionSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DataRedactionSettings build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DataRedactionSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DataRedactionSettings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataRedactionSettings.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataRedactionSettings.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface DataRedactionSettingsOrBuilder
      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:
      getNameBytes in interface DataRedactionSettingsOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public DataRedactionSettings.Builder setNameBytes(com.google.protobuf.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];
      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:
      getEmailRedactionEnabled in interface DataRedactionSettingsOrBuilder
      Returns:
      The emailRedactionEnabled.
    • setEmailRedactionEnabled

      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;
      Parameters:
      value - The emailRedactionEnabled to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      getQueryParameterRedactionEnabled in interface DataRedactionSettingsOrBuilder
      Returns:
      The queryParameterRedactionEnabled.
    • setQueryParameterRedactionEnabled

      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;
      Parameters:
      value - The queryParameterRedactionEnabled to set.
      Returns:
      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:
      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:
      getQueryParameterKeysList in interface DataRedactionSettingsOrBuilder
      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:
      getQueryParameterKeysCount in interface DataRedactionSettingsOrBuilder
      Returns:
      The count of queryParameterKeys.
    • getQueryParameterKeys

      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;
      Specified by:
      getQueryParameterKeys in interface DataRedactionSettingsOrBuilder
      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:
      getQueryParameterKeysBytes in interface DataRedactionSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the queryParameterKeys at the given index.
    • setQueryParameterKeys

      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:
      index - The index to set the value at.
      value - The queryParameterKeys to set.
      Returns:
      This builder for chaining.
    • addQueryParameterKeys

      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;
      Parameters:
      value - The queryParameterKeys to add.
      Returns:
      This builder for chaining.
    • addAllQueryParameterKeys

      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;
      Parameters:
      values - The queryParameterKeys to add.
      Returns:
      This builder for chaining.
    • 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:
      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.