Google Cloud Network Security V1 Client - Class AddressGroup (1.4.2)
1.4.2 (latest)
1.4.0
1.3.0
1.2.3
1.1.0
1.0.4
0.6.5
0.5.2
0.4.1
0.3.7
Reference documentation and code samples for the Google Cloud Network Security V1 Client class AddressGroup.
AddressGroup is a resource that specifies how a collection of IP/DNS used
in Firewall Policy.
Generated from protobuf message google.cloud.networksecurity.v1.AddressGroup
Namespace
Google \ Cloud \ NetworkSecurity \ V1
Methods
__construct
Parameter
Name
Description
data
mixed
getName
Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
Returns
Type
Description
string
setName
Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDescription
Optional. Free-text description of the resource.
Returns
Type
Description
string
setDescription
Optional. Free-text description of the resource.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. The timestamp when the resource was created.
Returns
Type
Description
Google\Protobuf\Timestamp |null
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
Parameter
Name
Description
var
Google\Protobuf\Timestamp
Returns
Type
Description
$this
getUpdateTime
Output only. The timestamp when the resource was updated.
Returns
Type
Description
Google\Protobuf\Timestamp |null
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
Parameter
Name
Description
var
Google\Protobuf\Timestamp
Returns
Type
Description
$this
getLabels
Optional. Set of label tags associated with the AddressGroup resource.
Returns
Type
Description
Google\Protobuf\Internal\MapField
setLabels
Optional. Set of label tags associated with the AddressGroup resource.
Parameter
Name
Description
var
array|Google\Protobuf\Internal\MapField
Returns
Type
Description
$this
getType
Required. The type of the Address Group. Possible values are "IPv4" or
"IPV6".
Returns
Type
Description
int
Enum of type Type .
setType
Required. The type of the Address Group. Possible values are "IPv4" or
"IPV6".
Parameter
Name
Description
var
int
Enum of type Type .
Returns
Type
Description
$this
getItems
Returns
Type
Description
Google\Protobuf\RepeatedField <string >
setItems
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getCapacity
Required. Capacity of the Address Group
Returns
Type
Description
int
setCapacity
Required. Capacity of the Address Group
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getSelfLink
Output only. Server-defined fully-qualified URL for this resource.
Returns
Type
Description
string
setSelfLink
Output only. Server-defined fully-qualified URL for this resource.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPurpose
Optional. List of supported purposes of the Address Group.
Returns
Type
Description
Google\Protobuf\RepeatedField <int >
setPurpose
Optional. List of supported purposes of the Address Group.
Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-31 UTC."],[],[]]