Google Cloud Data Catalog V1 Client - Class EnumType (1.7.1)

Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class EnumType.

Generated from protobuf message google.cloud.datacatalog.v1.FieldType.EnumType

Namespace

Google \ Cloud \ DataCatalog \ V1 \ FieldType

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ allowed_values array<Google\Cloud\DataCatalog\V1\FieldType\EnumType\EnumValue>

The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the RenameTagTemplateFieldEnumValue method.

getAllowedValues

The set of allowed values for this enum.

This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the RenameTagTemplateFieldEnumValue method.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedValues

The set of allowed values for this enum.

This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the RenameTagTemplateFieldEnumValue method.

Parameter
NameDescription
var array<Google\Cloud\DataCatalog\V1\FieldType\EnumType\EnumValue>
Returns
TypeDescription
$this