Class CreateCryptoKeyRequest

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

@Generated public final class CreateCryptoKeyRequest extends com.google.protobuf.GeneratedMessage implements CreateCryptoKeyRequestOrBuilder
 Request message for
 [KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey].
 
Protobuf type google.cloud.kms.v1.CreateCryptoKeyRequest
See Also:
  • Field Details

    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • CRYPTO_KEY_ID_FIELD_NUMBER

      public static final int CRYPTO_KEY_ID_FIELD_NUMBER
      See Also:
    • CRYPTO_KEY_FIELD_NUMBER

      public static final int CRYPTO_KEY_FIELD_NUMBER
      See Also:
    • SKIP_INITIAL_VERSION_CREATION_FIELD_NUMBER

      public static final int SKIP_INITIAL_VERSION_CREATION_FIELD_NUMBER
      See Also:
    • TRUSTED_WRAPPING_ENABLED_FIELD_NUMBER

      public static final int TRUSTED_WRAPPING_ENABLED_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
    • getParent

      public String getParent()
       Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
       associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
       associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      The bytes for parent.
    • getCryptoKeyId

      public String getCryptoKeyId()
       Required. It must be unique within a KeyRing and match the regular
       expression `[a-zA-Z0-9_-]{1,63}`
       
      string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCryptoKeyId in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      The cryptoKeyId.
    • getCryptoKeyIdBytes

      public com.google.protobuf.ByteString getCryptoKeyIdBytes()
       Required. It must be unique within a KeyRing and match the regular
       expression `[a-zA-Z0-9_-]{1,63}`
       
      string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCryptoKeyIdBytes in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      The bytes for cryptoKeyId.
    • hasCryptoKey

      public boolean hasCryptoKey()
       Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
       values.
       
      .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCryptoKey in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      Whether the cryptoKey field is set.
    • getCryptoKey

      public CryptoKey getCryptoKey()
       Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
       values.
       
      .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCryptoKey in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      The cryptoKey.
    • getCryptoKeyOrBuilder

      public CryptoKeyOrBuilder getCryptoKeyOrBuilder()
       Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
       values.
       
      .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCryptoKeyOrBuilder in interface CreateCryptoKeyRequestOrBuilder
    • getSkipInitialVersionCreation

      public boolean getSkipInitialVersionCreation()
       If set to true, the request will create a
       [CryptoKey][google.cloud.kms.v1.CryptoKey] without any
       [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. You must
       manually call
       [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion]
       or
       [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion]
       before you can use this [CryptoKey][google.cloud.kms.v1.CryptoKey].
       
      bool skip_initial_version_creation = 5;
      Specified by:
      getSkipInitialVersionCreation in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      The skipInitialVersionCreation.
    • getTrustedWrappingEnabled

      public boolean getTrustedWrappingEnabled()
       Optional. Whether trusted wrapping will be enabled on the first
       [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] created for this
       [CryptoKey][google.cloud.kms.v1.CryptoKey]. This field is only supported
       for keys with
       [CryptoKeyVersionTemplate.protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
       [HSM_SINGLE_TENANT][google.cloud.kms.v1.ProtectionLevel.HSM_SINGLE_TENANT].
       This field is supported for all
       [CryptoKeyPurposes][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] except
       [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
       
      bool trusted_wrapping_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTrustedWrappingEnabled in interface CreateCryptoKeyRequestOrBuilder
      Returns:
      The trustedWrappingEnabled.
    • 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 CreateCryptoKeyRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static CreateCryptoKeyRequest.Builder newBuilder()
    • newBuilder

      public static CreateCryptoKeyRequest.Builder newBuilder(CreateCryptoKeyRequest prototype)
    • toBuilder

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

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

      public static CreateCryptoKeyRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CreateCryptoKeyRequest> 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 CreateCryptoKeyRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder