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()
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];
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];
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];
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];
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];
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
|
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplaceAccessLevelsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ReplaceAccessLevelsRequest build()
buildPartial()
public ReplaceAccessLevelsRequest buildPartial()
clear()
public ReplaceAccessLevelsRequest.Builder clear()
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];
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;
clearField(Descriptors.FieldDescriptor field)
public ReplaceAccessLevelsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplaceAccessLevelsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public ReplaceAccessLevelsRequest.Builder clone()
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
|
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
|
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];
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];
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ReplaceAccessLevelsRequest other)
public ReplaceAccessLevelsRequest.Builder mergeFrom(ReplaceAccessLevelsRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReplaceAccessLevelsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ReplaceAccessLevelsRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceAccessLevelsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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];
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];
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ReplaceAccessLevelsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReplaceAccessLevelsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceAccessLevelsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides