Google Cloud Asset V1 Client - Class TableFieldSchema (1.9.2)

Reference documentation and code samples for the Google Cloud Asset V1 Client class TableFieldSchema.

A field in TableSchema.

Generated from protobuf message google.cloud.asset.v1.TableFieldSchema

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ field string

The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.

↳ type string

The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD indicates that the field contains a nested schema).

↳ mode string

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

↳ fields array<Google\Cloud\Asset\V1\TableFieldSchema>

Describes the nested schema fields if the type property is set to RECORD.

getField

The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.

Generated from protobuf field string field = 1;

Returns
TypeDescription
string

setField

The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.

Generated from protobuf field string field = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The field data type. Possible values include

  • STRING
  • BYTES
  • INTEGER
  • FLOAT
  • BOOLEAN
  • TIMESTAMP
  • DATE
  • TIME
  • DATETIME
  • GEOGRAPHY,
  • NUMERIC,
  • BIGNUMERIC,
  • RECORD (where RECORD indicates that the field contains a nested schema).

Generated from protobuf field string type = 2;

Returns
TypeDescription
string

setType

The field data type. Possible values include

  • STRING
  • BYTES
  • INTEGER
  • FLOAT
  • BOOLEAN
  • TIMESTAMP
  • DATE
  • TIME
  • DATETIME
  • GEOGRAPHY,
  • NUMERIC,
  • BIGNUMERIC,
  • RECORD (where RECORD indicates that the field contains a nested schema).

Generated from protobuf field string type = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMode

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

Generated from protobuf field string mode = 3;

Returns
TypeDescription
string

setMode

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.

Generated from protobuf field string mode = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFields

Describes the nested schema fields if the type property is set to RECORD.

Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFields

Describes the nested schema fields if the type property is set to RECORD.

Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\TableFieldSchema>
Returns
TypeDescription
$this