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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplaceAccessLevelsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ReplaceAccessLevelsRequest build()
Returns
buildPartial()
public ReplaceAccessLevelsRequest buildPartial()
Returns
clear()
public ReplaceAccessLevelsRequest.Builder clear()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public ReplaceAccessLevelsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplaceAccessLevelsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ReplaceAccessLevelsRequest.Builder clone()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ReplaceAccessLevelsRequest other)
public ReplaceAccessLevelsRequest.Builder mergeFrom(ReplaceAccessLevelsRequest other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReplaceAccessLevelsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ReplaceAccessLevelsRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceAccessLevelsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public ReplaceAccessLevelsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReplaceAccessLevelsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceAccessLevelsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides