PredefinedExpression

com.google.cloud.bigquery.datapolicies.v1.datapolicy.DataMaskingPolicy.PredefinedExpression
See thePredefinedExpression companion class
object PredefinedExpression extends GeneratedEnumCompanion[PredefinedExpression]

Attributes

Companion
class
Source
DataMaskingPolicy.scala
Graph
Supertypes
trait Sum
trait Mirror
trait GeneratedEnumCompanion[PredefinedExpression]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

Masking expression to replace data with NULLs.

Masking expression to replace data with NULLs.

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Masking expression to only show the year of Date, DateTime and TimeStamp. For example, with the year 2076:

Masking expression to only show the year of Date, DateTime and TimeStamp. For example, with the year 2076:

  • DATE : 2076-01-01
  • DATETIME : 2076-01-01T00:00:00
  • TIMESTAMP : 2076-01-01 00:00:00 UTC

Truncation occurs according to the UTC time zone. To change this, adjust the default time zone using the time_zone system variable. For more information, see the <a href="https://cloud.google.com/bigquery/docs/reference/system-variables">System variables reference</a>.

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Masking expression to replace data with their default masking values. The default masking values for each type listed as below:

Masking expression to replace data with their default masking values. The default masking values for each type listed as below:

  • STRING: ""
  • BYTES: b''
  • INTEGER: 0
  • FLOAT: 0.0
  • NUMERIC: 0
  • BOOLEAN: FALSE
  • TIMESTAMP: 1970-01-01 00:00:00 UTC
  • DATE: 1970-01-01
  • TIME: 00:00:00
  • DATETIME: 1970-01-01T00:00:00
  • GEOGRAPHY: POINT(0 0)
  • BIGNUMERIC: 0
  • ARRAY: []
  • STRUCT: NOT_APPLICABLE
  • JSON: NULL

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Masking expression for email addresses. The masking behavior is as follows:

Masking expression for email addresses. The masking behavior is as follows:

For more information, see Email mask.

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
EMAIL_MASK.type

Masking expression shows the first four characters of text. The masking behavior is as follows:

Masking expression shows the first four characters of text. The masking behavior is as follows:

  • If text length > 4 characters: Replace text with XXXXX, prepend first four characters of original text.
  • If text length <= 4 characters: Apply SHA-256 hash.

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Masking expression shows the last four characters of text. The masking behavior is as follows:

Masking expression shows the last four characters of text. The masking behavior is as follows:

  • If text length > 4 characters: Replace text with XXXXX, append last four characters of original text.
  • If text length <= 4 characters: Apply SHA-256 hash.

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Default, unspecified predefined expression. No masking will take place since no expression is specified.

Default, unspecified predefined expression. No masking will take place since no expression is specified.

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
sealed trait Recognized extends PredefinedExpression

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object ALWAYS_NULL.type
object DATE_YEAR_MASK.type
object DEFAULT_MASKING_VALUE.type
object EMAIL_MASK.type
object FIRST_FOUR_CHARACTERS.type
object LAST_FOUR_CHARACTERS.type
object SHA256.type
Show all
case object SHA256 extends PredefinedExpression, Recognized

Masking expression to replace data with SHA-256 hash.

Masking expression to replace data with SHA-256 hash.

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
SHA256.type
final case class Unrecognized(unrecognizedValue: Int) extends PredefinedExpression, UnrecognizedEnum

Attributes

Source
DataMaskingPolicy.scala
Supertypes
trait UnrecognizedEnum
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type ValueType = A

Attributes

Inherited from:
GeneratedEnumCompanion
Source
GeneratedMessageCompanion.scala

Value members

Concrete methods

Attributes

Source
DataMaskingPolicy.scala
def javaDescriptor: EnumDescriptor

Returns the Java descriptors for this enum. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Returns the Java descriptors for this enum. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Attributes

Source
DataMaskingPolicy.scala
def scalaDescriptor: EnumDescriptor

Attributes

Source
DataMaskingPolicy.scala

Inherited methods

def fromName(name: String): Option[A]

Attributes

Inherited from:
GeneratedEnumCompanion
Source
GeneratedMessageCompanion.scala

Concrete fields

Implicits

Implicits

implicit def enumCompanion: GeneratedEnumCompanion[PredefinedExpression]

Attributes

Source
DataMaskingPolicy.scala