Class KeyAccessJustificationsPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.kms.v1.KeyAccessJustificationsPolicy
All Implemented Interfaces:
KeyAccessJustificationsPolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class KeyAccessJustificationsPolicy extends com.google.protobuf.GeneratedMessage 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] or
 [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig]
 (the default Key Access Justifications policy).
 
Protobuf type google.cloud.kms.v1.KeyAccessJustificationsPolicy
See Also:
  • Field Details

    • ALLOWED_ACCESS_REASONS_FIELD_NUMBER

      public static final int ALLOWED_ACCESS_REASONS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAllowedAccessReasonsList

      public List<AccessReason> getAllowedAccessReasonsList()
       The list of allowed reasons for access to a
       [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
       allowed_access_reasons has a different meaning depending on where this
       message appears. If this is under
       [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
       it means allow-all. If this is under
       [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
       
      repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
      Specified by:
      getAllowedAccessReasonsList in interface KeyAccessJustificationsPolicyOrBuilder
      Returns:
      A list containing the allowedAccessReasons.
    • getAllowedAccessReasonsCount

      public int getAllowedAccessReasonsCount()
       The list of allowed reasons for access to a
       [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
       allowed_access_reasons has a different meaning depending on where this
       message appears. If this is under
       [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
       it means allow-all. If this is under
       [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
       
      repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
      Specified by:
      getAllowedAccessReasonsCount in interface KeyAccessJustificationsPolicyOrBuilder
      Returns:
      The count of allowedAccessReasons.
    • getAllowedAccessReasons

      public AccessReason getAllowedAccessReasons(int index)
       The list of allowed reasons for access to a
       [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
       allowed_access_reasons has a different meaning depending on where this
       message appears. If this is under
       [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
       it means allow-all. If this is under
       [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
       
      repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
      Specified by:
      getAllowedAccessReasons in interface KeyAccessJustificationsPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedAccessReasons at the given index.
    • getAllowedAccessReasonsValueList

      public List<Integer> getAllowedAccessReasonsValueList()
       The list of allowed reasons for access to a
       [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
       allowed_access_reasons has a different meaning depending on where this
       message appears. If this is under
       [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
       it means allow-all. If this is under
       [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
       
      repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
      Specified by:
      getAllowedAccessReasonsValueList in interface KeyAccessJustificationsPolicyOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for allowedAccessReasons.
    • getAllowedAccessReasonsValue

      public int getAllowedAccessReasonsValue(int index)
       The list of allowed reasons for access to a
       [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
       allowed_access_reasons has a different meaning depending on where this
       message appears. If this is under
       [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
       it means allow-all. If this is under
       [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
       
      repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;
      Specified by:
      getAllowedAccessReasonsValue in interface KeyAccessJustificationsPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of allowedAccessReasons at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static KeyAccessJustificationsPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static KeyAccessJustificationsPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static KeyAccessJustificationsPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public KeyAccessJustificationsPolicy.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static KeyAccessJustificationsPolicy.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected KeyAccessJustificationsPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static KeyAccessJustificationsPolicy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<KeyAccessJustificationsPolicy> parser()
    • getParserForType

      public com.google.protobuf.Parser<KeyAccessJustificationsPolicy> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public KeyAccessJustificationsPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder