Class ReplaceAccessLevelsRequest.Builder (1.50.0)

public static final class ReplaceAccessLevelsRequest.Builder extends GeneratedMessageV3.Builder<ReplaceAccessLevelsRequest.Builder> implements ReplaceAccessLevelsRequestOrBuilder

A request to replace all existing Access Levels in an Access Policy with the Access Levels provided. This is done atomically.

Protobuf type google.identity.accesscontextmanager.v1.ReplaceAccessLevelsRequest

Static Methods

getDescriptor()

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

Methods

addAccessLevels(AccessLevel value)

public ReplaceAccessLevelsRequest.Builder addAccessLevels(AccessLevel value)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccessLevel
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

addAccessLevels(AccessLevel.Builder builderForValue)

public ReplaceAccessLevelsRequest.Builder addAccessLevels(AccessLevel.Builder builderForValue)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AccessLevel.Builder
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

addAccessLevels(int index, AccessLevel value)

public ReplaceAccessLevelsRequest.Builder addAccessLevels(int index, AccessLevel value)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value AccessLevel
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

addAccessLevels(int index, AccessLevel.Builder builderForValue)

public ReplaceAccessLevelsRequest.Builder addAccessLevels(int index, AccessLevel.Builder builderForValue)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue AccessLevel.Builder
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

addAccessLevelsBuilder()

public AccessLevel.Builder addAccessLevelsBuilder()

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessLevel.Builder

addAccessLevelsBuilder(int index)

public AccessLevel.Builder addAccessLevelsBuilder(int index)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AccessLevel.Builder

addAllAccessLevels(Iterable<? extends AccessLevel> values)

public ReplaceAccessLevelsRequest.Builder addAllAccessLevels(Iterable<? extends AccessLevel> values)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.identity.accesscontextmanager.v1.AccessLevel>
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplaceAccessLevelsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

build()

public ReplaceAccessLevelsRequest build()
Returns
Type Description
ReplaceAccessLevelsRequest

buildPartial()

public ReplaceAccessLevelsRequest buildPartial()
Returns
Type Description
ReplaceAccessLevelsRequest

clear()

public ReplaceAccessLevelsRequest.Builder clear()
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

clearAccessLevels()

public ReplaceAccessLevelsRequest.Builder clearAccessLevels()

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplaceAccessLevelsRequest.Builder

clearEtag()

public ReplaceAccessLevelsRequest.Builder clearEtag()

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

string etag = 4;

Returns
Type Description
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReplaceAccessLevelsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplaceAccessLevelsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

clearParent()

public ReplaceAccessLevelsRequest.Builder clearParent()

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

clone()

public ReplaceAccessLevelsRequest.Builder clone()
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

getAccessLevels(int index)

public AccessLevel getAccessLevels(int index)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AccessLevel

getAccessLevelsBuilder(int index)

public AccessLevel.Builder getAccessLevelsBuilder(int index)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AccessLevel.Builder

getAccessLevelsBuilderList()

public List<AccessLevel.Builder> getAccessLevelsBuilderList()

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getAccessLevelsCount()

public int getAccessLevelsCount()

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getAccessLevelsList()

public List<AccessLevel> getAccessLevelsList()

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<AccessLevel>

getAccessLevelsOrBuilder(int index)

public AccessLevelOrBuilder getAccessLevelsOrBuilder(int index)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AccessLevelOrBuilder

getAccessLevelsOrBuilderList()

public List<? extends AccessLevelOrBuilder> getAccessLevelsOrBuilderList()

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>

getDefaultInstanceForType()

public ReplaceAccessLevelsRequest getDefaultInstanceForType()
Returns
Type Description
ReplaceAccessLevelsRequest

getDescriptorForType()

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

getEtag()

public String getEtag()

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

string etag = 4;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

string etag = 4;

Returns
Type Description
ByteString

The bytes for etag.

getParent()

public String getParent()

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReplaceAccessLevelsRequest other)

public ReplaceAccessLevelsRequest.Builder mergeFrom(ReplaceAccessLevelsRequest other)
Parameter
Name Description
other ReplaceAccessLevelsRequest
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplaceAccessLevelsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReplaceAccessLevelsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceAccessLevelsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

removeAccessLevels(int index)

public ReplaceAccessLevelsRequest.Builder removeAccessLevels(int index)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

setAccessLevels(int index, AccessLevel value)

public ReplaceAccessLevelsRequest.Builder setAccessLevels(int index, AccessLevel value)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value AccessLevel
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

setAccessLevels(int index, AccessLevel.Builder builderForValue)

public ReplaceAccessLevelsRequest.Builder setAccessLevels(int index, AccessLevel.Builder builderForValue)

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue AccessLevel.Builder
Returns
Type Description
ReplaceAccessLevelsRequest.Builder

setEtag(String value)

public ReplaceAccessLevelsRequest.Builder setEtag(String value)

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

string etag = 4;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public ReplaceAccessLevelsRequest.Builder setEtagBytes(ByteString value)

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

string etag = 4;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReplaceAccessLevelsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

setParent(String value)

public ReplaceAccessLevelsRequest.Builder setParent(String value)

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ReplaceAccessLevelsRequest.Builder setParentBytes(ByteString value)

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReplaceAccessLevelsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceAccessLevelsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplaceAccessLevelsRequest.Builder
Overrides