Class AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder (0.94.0)

public static final class AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder> implements AuthzPolicy.AuthzRule.RequestResource.TagValueIdSetOrBuilder

Describes a set of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.

Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllIds(Iterable<? extends Long> values)

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder addAllIds(Iterable<? extends Long> values)

Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.

repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The ids to add.

Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder

This builder for chaining.

addIds(long value)

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder addIds(long value)

Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.

repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The ids to add.

Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder

This builder for chaining.

build()

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet build()
Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet

buildPartial()

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet buildPartial()
Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet

clear()

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder clear()
Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder
Overrides

clearIds()

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder clearIds()

Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.

repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder

This builder for chaining.

getDefaultInstanceForType()

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIds(int index)

public long getIds(int index)

Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.

repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The ids at the given index.

getIdsCount()

public int getIdsCount()

Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.

repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of ids.

getIdsList()

public List<Long> getIdsList()

Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.

repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Long>

A list containing the ids.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet other)

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder mergeFrom(AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet other)
Parameter
Name Description
other AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet
Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder
Overrides

setIds(int index, long value)

public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder setIds(int index, long value)

Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.

repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value long

The ids to set.

Returns
Type Description
AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder

This builder for chaining.