public static final class AddressGroup.Builder extends GeneratedMessageV3.Builder<AddressGroup.Builder> implements AddressGroupOrBuilderAddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.
Protobuf type google.cloud.networksecurity.v1.AddressGroup
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AddressGroup.BuilderImplements
AddressGroupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllItems(Iterable<String> values)
public AddressGroup.Builder addAllItems(Iterable<String> values)Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The items to add. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
addAllPurpose(Iterable<? extends AddressGroup.Purpose> values)
public AddressGroup.Builder addAllPurpose(Iterable<? extends AddressGroup.Purpose> values)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.networksecurity.v1.AddressGroup.Purpose>The purpose to add. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
addAllPurposeValue(Iterable<Integer> values)
public AddressGroup.Builder addAllPurposeValue(Iterable<Integer> values)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for purpose to add. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
addItems(String value)
public AddressGroup.Builder addItems(String value)Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe items to add. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
addItemsBytes(ByteString value)
public AddressGroup.Builder addItemsBytes(ByteString value)Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the items to add. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
addPurpose(AddressGroup.Purpose value)
public AddressGroup.Builder addPurpose(AddressGroup.Purpose value)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AddressGroup.PurposeThe purpose to add. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
addPurposeValue(int value)
public AddressGroup.Builder addPurposeValue(int value)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for purpose to add. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AddressGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
build()
public AddressGroup build()| Returns | |
|---|---|
| Type | Description |
AddressGroup |
|
buildPartial()
public AddressGroup buildPartial()| Returns | |
|---|---|
| Type | Description |
AddressGroup |
|
clear()
public AddressGroup.Builder clear()| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
clearCapacity()
public AddressGroup.Builder clearCapacity()Required. Capacity of the Address Group
int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
clearCreateTime()
public AddressGroup.Builder clearCreateTime()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
clearDescription()
public AddressGroup.Builder clearDescription()Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AddressGroup.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
clearItems()
public AddressGroup.Builder clearItems()Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
clearLabels()
public AddressGroup.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
clearName()
public AddressGroup.Builder clearName() Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AddressGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
clearPurpose()
public AddressGroup.Builder clearPurpose()Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
clearSelfLink()
public AddressGroup.Builder clearSelfLink()Output only. Server-defined fully-qualified URL for this resource.
string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
clearType()
public AddressGroup.Builder clearType()Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
.google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
clearUpdateTime()
public AddressGroup.Builder clearUpdateTime()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
clone()
public AddressGroup.Builder clone()| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCapacity()
public int getCapacity()Required. Capacity of the Address Group
int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The capacity. |
getCreateTime()
public Timestamp getCreateTime()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public AddressGroup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AddressGroup |
|
getDescription()
public String getDescription()Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getItems(int index)
public String getItems(int index)Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The items at the given index. |
getItemsBytes(int index)
public ByteString getItemsBytes(int index)Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the items at the given index. |
getItemsCount()
public int getItemsCount()Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of items. |
getItemsList()
public ProtocolStringList getItemsList()Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the items. |
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName() Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPurpose(int index)
public AddressGroup.Purpose getPurpose(int index)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Purpose |
The purpose at the given index. |
getPurposeCount()
public int getPurposeCount()Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of purpose. |
getPurposeList()
public List<AddressGroup.Purpose> getPurposeList()Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Purpose> |
A list containing the purpose. |
getPurposeValue(int index)
public int getPurposeValue(int index)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of purpose at the given index. |
getPurposeValueList()
public List<Integer> getPurposeValueList()Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for purpose. |
getSelfLink()
public String getSelfLink()Output only. Server-defined fully-qualified URL for this resource.
string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()Output only. Server-defined fully-qualified URL for this resource.
string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLink. |
getType()
public AddressGroup.Type getType()Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
.google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Type |
The type. |
getTypeValue()
public int getTypeValue()Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
.google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasCreateTime()
public boolean hasCreateTime()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public AddressGroup.Builder mergeCreateTime(Timestamp value)Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
mergeFrom(AddressGroup other)
public AddressGroup.Builder mergeFrom(AddressGroup other)| Parameter | |
|---|---|
| Name | Description |
other |
AddressGroup |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AddressGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AddressGroup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AddressGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
mergeUpdateTime(Timestamp value)
public AddressGroup.Builder mergeUpdateTime(Timestamp value)Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
putAllLabels(Map<String,String> values)
public AddressGroup.Builder putAllLabels(Map<String,String> values)Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
putLabels(String key, String value)
public AddressGroup.Builder putLabels(String key, String value)Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
removeLabels(String key)
public AddressGroup.Builder removeLabels(String key)Optional. Set of label tags associated with the AddressGroup resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
setCapacity(int value)
public AddressGroup.Builder setCapacity(int value)Required. Capacity of the Address Group
int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe capacity to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public AddressGroup.Builder setCreateTime(Timestamp value)Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public AddressGroup.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
setDescription(String value)
public AddressGroup.Builder setDescription(String value)Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public AddressGroup.Builder setDescriptionBytes(ByteString value)Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AddressGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
setItems(int index, String value)
public AddressGroup.Builder setItems(int index, String value)Optional. List of items.
repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe items to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setName(String value)
public AddressGroup.Builder setName(String value) Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AddressGroup.Builder setNameBytes(ByteString value) Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setPurpose(int index, AddressGroup.Purpose value)
public AddressGroup.Builder setPurpose(int index, AddressGroup.Purpose value)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
AddressGroup.PurposeThe purpose to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setPurposeValue(int index, int value)
public AddressGroup.Builder setPurposeValue(int index, int value)Optional. List of supported purposes of the Address Group.
repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for purpose to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AddressGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
setSelfLink(String value)
public AddressGroup.Builder setSelfLink(String value)Output only. Server-defined fully-qualified URL for this resource.
string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setSelfLinkBytes(ByteString value)
public AddressGroup.Builder setSelfLinkBytes(ByteString value)Output only. Server-defined fully-qualified URL for this resource.
string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setType(AddressGroup.Type value)
public AddressGroup.Builder setType(AddressGroup.Type value)Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
.google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AddressGroup.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setTypeValue(int value)
public AddressGroup.Builder setTypeValue(int value)Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
.google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AddressGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
setUpdateTime(Timestamp value)
public AddressGroup.Builder setUpdateTime(Timestamp value)Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public AddressGroup.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AddressGroup.Builder |
|