diff --git a/DataCatalog/metadata/V1/Schema.php b/DataCatalog/metadata/V1/Schema.php index 44d316d1d10d..e930b221ecff 100644 Binary files a/DataCatalog/metadata/V1/Schema.php and b/DataCatalog/metadata/V1/Schema.php differ diff --git a/DataCatalog/src/V1/ColumnSchema.php b/DataCatalog/src/V1/ColumnSchema.php index 6b63b4378fc2..bc1f14eaff69 100644 --- a/DataCatalog/src/V1/ColumnSchema.php +++ b/DataCatalog/src/V1/ColumnSchema.php @@ -73,6 +73,17 @@ class ColumnSchema extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private $subcolumns; + /** + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $range_element_type = null; /** * Optional. Garbage collection policy for the column or column family. * Applies to systems like Cloud Bigtable. @@ -115,6 +126,13 @@ class ColumnSchema extends \Google\Protobuf\Internal\Message * sub-columns. * @type \Google\Cloud\DataCatalog\V1\ColumnSchema\LookerColumnSpec $looker_column_spec * Looker specific column info of this column. + * @type \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType $range_element_type + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP * @type string $gc_rule * Optional. Garbage collection policy for the column or column family. * Applies to systems like Cloud Bigtable. @@ -382,6 +400,52 @@ public function setLookerColumnSpec($var) return $this; } + /** + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType|null + */ + public function getRangeElementType() + { + return $this->range_element_type; + } + + public function hasRangeElementType() + { + return isset($this->range_element_type); + } + + public function clearRangeElementType() + { + unset($this->range_element_type); + } + + /** + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + * + * Generated from protobuf field .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType $var + * @return $this + */ + public function setRangeElementType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\ColumnSchema\FieldElementType::class); + $this->range_element_type = $var; + + return $this; + } + /** * Optional. Garbage collection policy for the column or column family. * Applies to systems like Cloud Bigtable. diff --git a/DataCatalog/src/V1/ColumnSchema/FieldElementType.php b/DataCatalog/src/V1/ColumnSchema/FieldElementType.php new file mode 100644 index 000000000000..68e85910666f --- /dev/null +++ b/DataCatalog/src/V1/ColumnSchema/FieldElementType.php @@ -0,0 +1,74 @@ +google.cloud.datacatalog.v1.ColumnSchema.FieldElementType + */ +class FieldElementType extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Datacatalog\V1\Schema::initOnce(); + parent::__construct($data); + } + + /** + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of a field element. See + * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. + * + * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FieldElementType::class, \Google\Cloud\DataCatalog\V1\ColumnSchema_FieldElementType::class); +