Reference documentation and code samples for the Google Cloud Asset V1 Client class TableFieldSchema.
A field in TableSchema.
Generated from protobuf messagegoogle.cloud.asset.v1.TableFieldSchema
Namespace
Google \ Cloud \ Asset \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
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.
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.
Returns
Type
Description
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$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).
Returns
Type
Description
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).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMode
The field mode. Possible values include NULLABLE, REQUIRED and
REPEATED. The default value is NULLABLE.
Returns
Type
Description
string
setMode
The field mode. Possible values include NULLABLE, REQUIRED and
REPEATED. The default value is NULLABLE.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFields
Describes the nested schema fields if the type property is set
to RECORD.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Asset V1 Client - Class TableFieldSchema (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.TableFieldSchema)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.TableFieldSchema)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.TableFieldSchema)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.TableFieldSchema)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.TableFieldSchema)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.TableFieldSchema)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.TableFieldSchema)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.TableFieldSchema)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.TableFieldSchema)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.TableFieldSchema)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.TableFieldSchema) \nReference documentation and code samples for the Google Cloud Asset V1 Client class TableFieldSchema.\n\nA field in TableSchema.\n\nGenerated from protobuf message `google.cloud.asset.v1.TableFieldSchema`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getField\n\nThe field name. The name must contain only letters (a-z, A-Z),\nnumbers (0-9), or underscores (_), and must start with a letter or\nunderscore. The maximum length is 128 characters.\n\n### setField\n\nThe field name. The name must contain only letters (a-z, A-Z),\nnumbers (0-9), or underscores (_), and must start with a letter or\nunderscore. The maximum length is 128 characters.\n\n### getType\n\nThe field data type. Possible values include\n\n- STRING\n- BYTES\n- INTEGER\n- FLOAT\n- BOOLEAN\n- TIMESTAMP\n- DATE\n- TIME\n- DATETIME\n- GEOGRAPHY,\n- NUMERIC,\n- BIGNUMERIC,\n- RECORD (where RECORD indicates that the field contains a nested schema).\n\n### setType\n\nThe field data type. Possible values include\n\n- STRING\n- BYTES\n- INTEGER\n- FLOAT\n- BOOLEAN\n- TIMESTAMP\n- DATE\n- TIME\n- DATETIME\n- GEOGRAPHY,\n- NUMERIC,\n- BIGNUMERIC,\n- RECORD (where RECORD indicates that the field contains a nested schema).\n\n### getMode\n\nThe field mode. Possible values include NULLABLE, REQUIRED and\nREPEATED. The default value is NULLABLE.\n\n### setMode\n\nThe field mode. Possible values include NULLABLE, REQUIRED and\nREPEATED. The default value is NULLABLE.\n\n### getFields\n\nDescribes the nested schema fields if the type property is set\nto RECORD.\n\n### setFields\n\nDescribes the nested schema fields if the type property is set\nto RECORD."]]