Class ReplaceAccessLevelsRequest.Builder (1.4.1)

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
TypeDescription
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
NameDescription
valueAccessLevel
Returns
TypeDescription
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
NameDescription
builderForValueAccessLevel.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAccessLevel
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAccessLevel.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.identity.accesscontextmanager.v1.AccessLevel>
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplaceAccessLevelsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder
Overrides

build()

public ReplaceAccessLevelsRequest build()
Returns
TypeDescription
ReplaceAccessLevelsRequest

buildPartial()

public ReplaceAccessLevelsRequest buildPartial()
Returns
TypeDescription
ReplaceAccessLevelsRequest

clear()

public ReplaceAccessLevelsRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReplaceAccessLevelsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplaceAccessLevelsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

clone()

public ReplaceAccessLevelsRequest.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>

getDefaultInstanceForType()

public ReplaceAccessLevelsRequest getDefaultInstanceForType()
Returns
TypeDescription
ReplaceAccessLevelsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReplaceAccessLevelsRequest other)

public ReplaceAccessLevelsRequest.Builder mergeFrom(ReplaceAccessLevelsRequest other)
Parameter
NameDescription
otherReplaceAccessLevelsRequest
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplaceAccessLevelsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReplaceAccessLevelsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceAccessLevelsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueAccessLevel
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAccessLevel.Builder
Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReplaceAccessLevelsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceAccessLevelsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReplaceAccessLevelsRequest.Builder
Overrides