Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Group.
A group represents a subset of spokes attached to a hub.
Generated from protobuf messagegoogle.cloud.networkconnectivity.v1.Group
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 group. Group names must be unique. They use the following form:projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}
Optional. Labels in key-value pair format. For more information about labels, seeRequirements for labels.
↳ description
string
Optional. The description of the group.
↳ uid
string
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different unique_id.
↳ state
int
Output only. The current lifecycle state of this group.
Output only. The name of the route table that corresponds to this group. They use the following form:projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
getName
Immutable. The name of the group. Group names must be unique. They
use the following form:projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}
Returns
Type
Description
string
setName
Immutable. The name of the group. Group names must be unique. They
use the following form:projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}
Output only. The Google-generated UUID for the group. This value is unique
across all group resources. If a group is deleted and
another with the same name is created, the new route table is assigned
a different unique_id.
Returns
Type
Description
string
setUid
Output only. The Google-generated UUID for the group. This value is unique
across all group resources. If a group is deleted and
another with the same name is created, the new route table is assigned
a different unique_id.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getState
Output only. The current lifecycle state of this group.
Returns
Type
Description
int
setState
Output only. The current lifecycle state of this group.
[[["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 Group (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.Group)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.Group)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.Group)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.Group)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.Group)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.Group)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.Group)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.Group)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.Group)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.Group) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Group.\n\nA group represents a subset of spokes attached to a hub.\n\nGenerated from protobuf message `google.cloud.networkconnectivity.v1.Group`\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 group. Group names must be unique. They\nuse the following form:\n`projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`\n\n### setName\n\nImmutable. The name of the group. Group names must be unique. They\nuse the following form:\n`projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`\n\n### getCreateTime\n\nOutput only. The time the group was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time the group was created.\n\n### getUpdateTime\n\nOutput only. The time the group was last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The time the group 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\nOptional. The description of the group.\n\n### setDescription\n\nOptional. The description of the group.\n\n### getUid\n\nOutput only. The Google-generated UUID for the group. This value is unique\nacross all group resources. If a group is deleted and\nanother with the same name is created, the new route table is assigned\na different unique_id.\n\n### setUid\n\nOutput only. The Google-generated UUID for the group. This value is unique\nacross all group resources. If a group is deleted and\nanother with the same name is created, the new route table is assigned\na different unique_id.\n\n### getState\n\nOutput only. The current lifecycle state of this group.\n\n### setState\n\nOutput only. The current lifecycle state of this group.\n\n### getAutoAccept\n\nOptional. The auto-accept setting for this group.\n\n### hasAutoAccept\n\n### clearAutoAccept\n\n### setAutoAccept\n\nOptional. The auto-accept setting for this group.\n\n### getRouteTable\n\nOutput only. The name of the route table that corresponds to this group.\n\nThey use the following form:\n`projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`\n\n### setRouteTable\n\nOutput only. The name of the route table that corresponds to this group.\n\nThey use the following form:\n`projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`"]]