additionalDetails = $additionalDetails; } /** * @return array[] */ public function getAdditionalDetails() { return $this->additionalDetails; } /** * The data type of the Field. * * Accepted values: DATA_TYPE_UNSPECIFIED, INT, SMALLINT, DOUBLE, DATE, * DATETIME, TIME, STRING, LONG, BOOLEAN, DECIMAL, UUID, BLOB, BIT, TINYINT, * INTEGER, BIGINT, FLOAT, REAL, NUMERIC, CHAR, VARCHAR, LONGVARCHAR, * TIMESTAMP, NCHAR, NVARCHAR, LONGNVARCHAR, NULL, OTHER, JAVA_OBJECT, * DISTINCT, STRUCT, ARRAY, CLOB, REF, DATALINK, ROWID, BINARY, VARBINARY, * LONGVARBINARY, NCLOB, SQLXML, REF_CURSOR, TIME_WITH_TIMEZONE, * TIMESTAMP_WITH_TIMEZONE * * @param self::DATA_TYPE_* $dataType */ public function setDataType($dataType) { $this->dataType = $dataType; } /** * @return self::DATA_TYPE_* */ public function getDataType() { return $this->dataType; } /** * The following field specifies the default value of the Field provided by * the external system if a value is not provided. * * @param array $defaultValue */ public function setDefaultValue($defaultValue) { $this->defaultValue = $defaultValue; } /** * @return array */ public function getDefaultValue() { return $this->defaultValue; } /** * A brief description of the Field. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * JsonSchema of the field, applicable only if field is of type `STRUCT` * * @param JsonSchema $jsonSchema */ public function setJsonSchema(JsonSchema $jsonSchema) { $this->jsonSchema = $jsonSchema; } /** * @return JsonSchema */ public function getJsonSchema() { return $this->jsonSchema; } /** * The following boolean field specifies if the current Field acts as a * primary key or id if the parent is of type entity. * * @param bool $key */ public function setKey($key) { $this->key = $key; } /** * @return bool */ public function getKey() { return $this->key; } /** * Name of the Field. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Specifies whether a null value is allowed. * * @param bool $nullable */ public function setNullable($nullable) { $this->nullable = $nullable; } /** * @return bool */ public function getNullable() { return $this->nullable; } /** * Reference captures the association between two different entity types. * Value links to the reference of another entity type. * * @param Reference $reference */ public function setReference(Reference $reference) { $this->reference = $reference; } /** * @return Reference */ public function getReference() { return $this->reference; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Field::class, 'Google_Service_Connectors_Field');