public static final class KeyAccessJustificationsPolicy.Builder extends GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder> implements KeyAccessJustificationsPolicyOrBuilder
A
KeyAccessJustificationsPolicy
specifies zero or more allowed
AccessReason values for encrypt, decrypt,
and sign operations on a CryptoKey.
Protobuf type google.cloud.kms.v1.KeyAccessJustificationsPolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
addAllAllowedAccessReasons(Iterable<? extends AccessReason> values)
public KeyAccessJustificationsPolicy.Builder addAllAllowedAccessReasons(Iterable<? extends AccessReason> values)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.kms.v1.AccessReason>
The allowedAccessReasons to add.
|
addAllAllowedAccessReasonsValue(Iterable<Integer> values)
public KeyAccessJustificationsPolicy.Builder addAllAllowedAccessReasonsValue(Iterable<Integer> values)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameter |
Name |
Description |
values |
Iterable<Integer>
The enum numeric values on the wire for allowedAccessReasons to add.
|
addAllowedAccessReasons(AccessReason value)
public KeyAccessJustificationsPolicy.Builder addAllowedAccessReasons(AccessReason value)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameter |
Name |
Description |
value |
AccessReason
The allowedAccessReasons to add.
|
addAllowedAccessReasonsValue(int value)
public KeyAccessJustificationsPolicy.Builder addAllowedAccessReasonsValue(int value)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for allowedAccessReasons to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KeyAccessJustificationsPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public KeyAccessJustificationsPolicy build()
buildPartial()
public KeyAccessJustificationsPolicy buildPartial()
clear()
public KeyAccessJustificationsPolicy.Builder clear()
Overrides
clearAllowedAccessReasons()
public KeyAccessJustificationsPolicy.Builder clearAllowedAccessReasons()
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
clearField(Descriptors.FieldDescriptor field)
public KeyAccessJustificationsPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public KeyAccessJustificationsPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public KeyAccessJustificationsPolicy.Builder clone()
Overrides
getAllowedAccessReasons(int index)
public AccessReason getAllowedAccessReasons(int index)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
AccessReason |
The allowedAccessReasons at the given index.
|
getAllowedAccessReasonsCount()
public int getAllowedAccessReasonsCount()
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Returns |
Type |
Description |
int |
The count of allowedAccessReasons.
|
getAllowedAccessReasonsList()
public List<AccessReason> getAllowedAccessReasonsList()
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Returns |
Type |
Description |
List<AccessReason> |
A list containing the allowedAccessReasons.
|
getAllowedAccessReasonsValue(int index)
public int getAllowedAccessReasonsValue(int index)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
int |
The enum numeric value on the wire of allowedAccessReasons at the given index.
|
getAllowedAccessReasonsValueList()
public List<Integer> getAllowedAccessReasonsValueList()
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Returns |
Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for allowedAccessReasons.
|
getDefaultInstanceForType()
public KeyAccessJustificationsPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(KeyAccessJustificationsPolicy other)
public KeyAccessJustificationsPolicy.Builder mergeFrom(KeyAccessJustificationsPolicy other)
public KeyAccessJustificationsPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public KeyAccessJustificationsPolicy.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KeyAccessJustificationsPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAllowedAccessReasons(int index, AccessReason value)
public KeyAccessJustificationsPolicy.Builder setAllowedAccessReasons(int index, AccessReason value)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
AccessReason
The allowedAccessReasons to set.
|
setAllowedAccessReasonsValue(int index, int value)
public KeyAccessJustificationsPolicy.Builder setAllowedAccessReasonsValue(int index, int value)
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
int
The enum numeric value on the wire for allowedAccessReasons to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public KeyAccessJustificationsPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KeyAccessJustificationsPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final KeyAccessJustificationsPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides