Google Cloud Dataplex V1 Client - Class SchemaField (0.1.6)

Reference documentation and code samples for the Google Cloud Dataplex V1 Client class SchemaField.

Represents a column field within a table schema.

Generated from protobuf message google.cloud.dataplex.v1.Schema.SchemaField

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the field. The maximum length is 767 characters. The name must begins with a letter and not contains : and ..

↳ description string

Optional. User friendly field description. Must be less than or equal to 1024 characters.

↳ type int

Required. The type of field.

↳ mode int

Required. Additional field semantics.

↳ fields array<Google\Cloud\Dataplex\V1\Schema\SchemaField>

Optional. Any nested field for complex types.

getName

Required. The name of the field. The maximum length is 767 characters. The name must begins with a letter and not contains : and ..

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
string

setName

Required. The name of the field. The maximum length is 767 characters. The name must begins with a letter and not contains : and ..

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Optional. User friendly field description. Must be less than or equal to 1024 characters.

Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setDescription

Optional. User friendly field description. Must be less than or equal to 1024 characters.

Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Required. The type of field.

Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

setType

Required. The type of field.

Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMode

Required. Additional field semantics.

Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

setMode

Required. Additional field semantics.

Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFields

Optional. Any nested field for complex types.

Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFields

Optional. Any nested field for complex types.

Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var array<Google\Cloud\Dataplex\V1\Schema\SchemaField>
Returns
TypeDescription
$this