Class KmsConfig

  • All Implemented Interfaces:
    KmsConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class KmsConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements KmsConfigOrBuilder
     KmsConfig is the customer managed encryption key(CMEK) configuration.
     
    Protobuf type google.cloud.netapp.v1.KmsConfig
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Output only. Name of the KmsConfig.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface KmsConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Name of the KmsConfig.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface KmsConfigOrBuilder
        Returns:
        The bytes for name.
      • getCryptoKeyName

        public String getCryptoKeyName()
         Required. Customer managed crypto key resource full name. Format:
         projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
         
        string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCryptoKeyName in interface KmsConfigOrBuilder
        Returns:
        The cryptoKeyName.
      • getCryptoKeyNameBytes

        public com.google.protobuf.ByteString getCryptoKeyNameBytes()
         Required. Customer managed crypto key resource full name. Format:
         projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
         
        string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCryptoKeyNameBytes in interface KmsConfigOrBuilder
        Returns:
        The bytes for cryptoKeyName.
      • getStateValue

        public int getStateValue()
         Output only. State of the KmsConfig.
         
        .google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface KmsConfigOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public KmsConfig.State getState()
         Output only. State of the KmsConfig.
         
        .google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface KmsConfigOrBuilder
        Returns:
        The state.
      • getStateDetails

        public String getStateDetails()
         Output only. State details of the KmsConfig.
         
        string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetails in interface KmsConfigOrBuilder
        Returns:
        The stateDetails.
      • getStateDetailsBytes

        public com.google.protobuf.ByteString getStateDetailsBytes()
         Output only. State details of the KmsConfig.
         
        string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetailsBytes in interface KmsConfigOrBuilder
        Returns:
        The bytes for stateDetails.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface KmsConfigOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface KmsConfigOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface KmsConfigOrBuilder
      • getDescription

        public String getDescription()
         Description of the KmsConfig.
         
        string description = 6;
        Specified by:
        getDescription in interface KmsConfigOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Description of the KmsConfig.
         
        string description = 6;
        Specified by:
        getDescriptionBytes in interface KmsConfigOrBuilder
        Returns:
        The bytes for description.
      • getInstructions

        public String getInstructions()
         Output only. Instructions to provide the access to the customer provided
         encryption key.
         
        string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getInstructions in interface KmsConfigOrBuilder
        Returns:
        The instructions.
      • getInstructionsBytes

        public com.google.protobuf.ByteString getInstructionsBytes()
         Output only. Instructions to provide the access to the customer provided
         encryption key.
         
        string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getInstructionsBytes in interface KmsConfigOrBuilder
        Returns:
        The bytes for instructions.
      • getServiceAccount

        public String getServiceAccount()
         Output only. The Service account which will have access to the customer
         provided encryption key.
         
        string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceAccount in interface KmsConfigOrBuilder
        Returns:
        The serviceAccount.
      • getServiceAccountBytes

        public com.google.protobuf.ByteString getServiceAccountBytes()
         Output only. The Service account which will have access to the customer
         provided encryption key.
         
        string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceAccountBytes in interface KmsConfigOrBuilder
        Returns:
        The bytes for serviceAccount.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 KmsConfig parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected KmsConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static KmsConfig getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<KmsConfig> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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