Google Cloud Appoptimize V1beta Client - Class Column (0.1.0)

Reference documentation and code samples for the Google Cloud Appoptimize V1beta Client class Column.

Describes a single column within Columns.

Generated from protobuf message google.cloud.appoptimize.v1beta.Column

Namespace

Google \ Cloud \ AppOptimize \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The name of the column. This field: * * Contains only letters (a-z, A-Z), numbers (0-9), or underscores (_); * * Start with a letter or underscore; and * * Has a maximum length is 128 characters.

↳ type string

The data type of the column. Supported values include: * * STRING * * INT64 * * FLOAT64 * * BOOLEAN * * TIMESTAMP * * RECORD RECORD indicates that the field contains a nested schema, described in the columns property of this Column.

↳ mode string

The mode of the column, indicating if it is nullable, required, or repeated. Possible values: * * NULLABLE: The column allows NULL values. * * REQUIRED: The column does not allow NULL values. * * REPEATED: The column contains an array of values.

↳ columns array<Column>

If the type of this column is RECORD, this sub-field describes the nested structure.

getName

The name of the column.

This field:

  • Contains only letters (a-z, A-Z), numbers (0-9), or underscores (_);
  • Start with a letter or underscore; and
  • Has a maximum length is 128 characters.
Returns
Type Description
string

setName

The name of the column.

This field:

  • Contains only letters (a-z, A-Z), numbers (0-9), or underscores (_);
  • Start with a letter or underscore; and
  • Has a maximum length is 128 characters.
Parameter
Name Description
var string
Returns
Type Description
$this

getType

The data type of the column.

Supported values include:

  • STRING
  • INT64
  • FLOAT64
  • BOOLEAN
  • TIMESTAMP
  • RECORD RECORD indicates that the field contains a nested schema, described in the columns property of this Column.
Returns
Type Description
string

setType

The data type of the column.

Supported values include:

  • STRING
  • INT64
  • FLOAT64
  • BOOLEAN
  • TIMESTAMP
  • RECORD RECORD indicates that the field contains a nested schema, described in the columns property of this Column.
Parameter
Name Description
var string
Returns
Type Description
$this

getMode

The mode of the column, indicating if it is nullable, required, or repeated.

Possible values:

  • NULLABLE: The column allows NULL values.
  • REQUIRED: The column does not allow NULL values.
  • REPEATED: The column contains an array of values.
Returns
Type Description
string

setMode

The mode of the column, indicating if it is nullable, required, or repeated.

Possible values:

  • NULLABLE: The column allows NULL values.
  • REQUIRED: The column does not allow NULL values.
  • REPEATED: The column contains an array of values.
Parameter
Name Description
var string
Returns
Type Description
$this

getColumns

If the type of this column is RECORD, this sub-field describes the nested structure.

Returns
Type Description
Google\Protobuf\RepeatedField<Column>

setColumns

If the type of this column is RECORD, this sub-field describes the nested structure.

Parameter
Name Description
var array<Column>
Returns
Type Description
$this