Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class RouteTable.
Generated from protobuf messagegoogle.cloud.networkconnectivity.v1.RouteTable
Namespace
Google \ Cloud \ NetworkConnectivity \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Immutable. The name of the route table. Route table names must be unique. They use the following form:projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}
Optional labels in key-value pair format. For more information about labels, seeRequirements for labels.
↳ description
string
An optional description of the route table.
↳ uid
string
Output only. The Google-generated UUID for the route table. This value is unique across all route table resources. If a route table is deleted and another with the same name is created, the new route table is assigned a differentuid.
↳ state
int
Output only. The current lifecycle state of this route table.
getName
Immutable. The name of the route table. Route table names must be unique.
They use the following form:projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}
Returns
Type
Description
string
setName
Immutable. The name of the route table. Route table names must be unique.
They use the following form:projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. The time the route table was created.
Output only. The Google-generated UUID for the route table. This value is
unique across all route table resources. If a route table is deleted and
another with the same name is created, the new route table is assigned
a differentuid.
Returns
Type
Description
string
setUid
Output only. The Google-generated UUID for the route table. This value is
unique across all route table resources. If a route table is deleted and
another with the same name is created, the new route table is assigned
a differentuid.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getState
Output only. The current lifecycle state of this route table.
Returns
Type
Description
int
setState
Output only. The current lifecycle state of this route table.
[[["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 Network Connectivity V1 Client - Class RouteTable (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.RouteTable)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.RouteTable)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.RouteTable)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.RouteTable)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.RouteTable)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.RouteTable)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.RouteTable)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.RouteTable)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.RouteTable)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.RouteTable) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class RouteTable.\n\nGenerated from protobuf message `google.cloud.networkconnectivity.v1.RouteTable`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkConnectivity \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nImmutable. The name of the route table. Route table names must be unique.\n\nThey use the following form:\n`projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}`\n\n### setName\n\nImmutable. The name of the route table. Route table names must be unique.\n\nThey use the following form:\n`projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}`\n\n### getCreateTime\n\nOutput only. The time the route table was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time the route table was created.\n\n### getUpdateTime\n\nOutput only. The time the route table was last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The time the route table was last updated.\n\n### getLabels\n\nOptional labels in key-value pair format. For more information about\nlabels, see [Requirements for\nlabels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).\n\n### setLabels\n\nOptional labels in key-value pair format. For more information about\nlabels, see [Requirements for\nlabels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).\n\n### getDescription\n\nAn optional description of the route table.\n\n### setDescription\n\nAn optional description of the route table.\n\n### getUid\n\nOutput only. The Google-generated UUID for the route table. This value is\nunique across all route table resources. If a route table is deleted and\nanother with the same name is created, the new route table is assigned\na different `uid`.\n\n### setUid\n\nOutput only. The Google-generated UUID for the route table. This value is\nunique across all route table resources. If a route table is deleted and\nanother with the same name is created, the new route table is assigned\na different `uid`.\n\n### getState\n\nOutput only. The current lifecycle state of this route table.\n\n### setState\n\nOutput only. The current lifecycle state of this route table."]]