public static final class KeyAccessJustificationsPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder> implements KeyAccessJustificationsPolicyOrBuilder
A [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy] specifies zero or more allowed [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt, and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey].Protobuf type
google.cloud.kms.v1.KeyAccessJustificationsPolicy| Modifier and Type | Method and Description |
|---|---|
KeyAccessJustificationsPolicy.Builder |
addAllAllowedAccessReasons(Iterable<? extends AccessReason> values)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy.Builder |
addAllAllowedAccessReasonsValue(Iterable<Integer> values)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy.Builder |
addAllowedAccessReasons(AccessReason value)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy.Builder |
addAllowedAccessReasonsValue(int value)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KeyAccessJustificationsPolicy |
build() |
KeyAccessJustificationsPolicy |
buildPartial() |
KeyAccessJustificationsPolicy.Builder |
clear() |
KeyAccessJustificationsPolicy.Builder |
clearAllowedAccessReasons()
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
KeyAccessJustificationsPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
KeyAccessJustificationsPolicy.Builder |
clone() |
AccessReason |
getAllowedAccessReasons(int index)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
int |
getAllowedAccessReasonsCount()
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
List<AccessReason> |
getAllowedAccessReasonsList()
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
int |
getAllowedAccessReasonsValue(int index)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
List<Integer> |
getAllowedAccessReasonsValueList()
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
KeyAccessJustificationsPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
KeyAccessJustificationsPolicy.Builder |
mergeFrom(KeyAccessJustificationsPolicy other) |
KeyAccessJustificationsPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
KeyAccessJustificationsPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
KeyAccessJustificationsPolicy.Builder |
setAllowedAccessReasons(int index,
AccessReason value)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy.Builder |
setAllowedAccessReasonsValue(int index,
int value)
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey].
|
KeyAccessJustificationsPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KeyAccessJustificationsPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
KeyAccessJustificationsPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic KeyAccessJustificationsPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic KeyAccessJustificationsPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic KeyAccessJustificationsPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder mergeFrom(KeyAccessJustificationsPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public KeyAccessJustificationsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyAccessJustificationsPolicy.Builder>IOExceptionpublic List<AccessReason> getAllowedAccessReasonsList()
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;getAllowedAccessReasonsList in interface KeyAccessJustificationsPolicyOrBuilderpublic int getAllowedAccessReasonsCount()
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;getAllowedAccessReasonsCount in interface KeyAccessJustificationsPolicyOrBuilderpublic AccessReason getAllowedAccessReasons(int index)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;getAllowedAccessReasons in interface KeyAccessJustificationsPolicyOrBuilderindex - The index of the element to return.public KeyAccessJustificationsPolicy.Builder setAllowedAccessReasons(int index, AccessReason value)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;index - The index to set the value at.value - The allowedAccessReasons to set.public KeyAccessJustificationsPolicy.Builder addAllowedAccessReasons(AccessReason value)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;value - The allowedAccessReasons to add.public KeyAccessJustificationsPolicy.Builder addAllAllowedAccessReasons(Iterable<? extends AccessReason> values)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;values - The allowedAccessReasons to add.public KeyAccessJustificationsPolicy.Builder clearAllowedAccessReasons()
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;public List<Integer> getAllowedAccessReasonsValueList()
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;getAllowedAccessReasonsValueList in interface KeyAccessJustificationsPolicyOrBuilderpublic int getAllowedAccessReasonsValue(int index)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;getAllowedAccessReasonsValue in interface KeyAccessJustificationsPolicyOrBuilderindex - The index of the value to return.public KeyAccessJustificationsPolicy.Builder setAllowedAccessReasonsValue(int index, int value)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;index - The index to set the value at.value - The enum numeric value on the wire for allowedAccessReasons to set.public KeyAccessJustificationsPolicy.Builder addAllowedAccessReasonsValue(int value)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;value - The enum numeric value on the wire for allowedAccessReasons to add.public KeyAccessJustificationsPolicy.Builder addAllAllowedAccessReasonsValue(Iterable<Integer> values)
The list of allowed reasons for access to a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will fail.
repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;values - The enum numeric values on the wire for allowedAccessReasons to add.public final KeyAccessJustificationsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>public final KeyAccessJustificationsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeyAccessJustificationsPolicy.Builder>Copyright © 2024 Google LLC. All rights reserved.