Class KmsConfig.Builder

  • All Implemented Interfaces:
    KmsConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    KmsConfig

    public static final class KmsConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
    implements KmsConfigOrBuilder
     KmsConfig is the customer managed encryption key(CMEK) configuration.
     
    Protobuf type google.cloud.netapp.v1.KmsConfig
    • Method Detail

      • 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.Builder<KmsConfig.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • clear

        public KmsConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public KmsConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • setField

        public KmsConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • clearField

        public KmsConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • clearOneof

        public KmsConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • setRepeatedField

        public KmsConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • addRepeatedField

        public KmsConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • mergeFrom

        public KmsConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KmsConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • mergeFrom

        public KmsConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KmsConfig.Builder>
        Throws:
        IOException
      • 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.
      • setName

        public KmsConfig.Builder setName​(String value)
         Output only. Name of the KmsConfig.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public KmsConfig.Builder clearName()
         Output only. Name of the KmsConfig.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public KmsConfig.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Name of the KmsConfig.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setCryptoKeyName

        public KmsConfig.Builder setCryptoKeyName​(String value)
         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];
        Parameters:
        value - The cryptoKeyName to set.
        Returns:
        This builder for chaining.
      • clearCryptoKeyName

        public KmsConfig.Builder clearCryptoKeyName()
         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];
        Returns:
        This builder for chaining.
      • setCryptoKeyNameBytes

        public KmsConfig.Builder setCryptoKeyNameBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for cryptoKeyName to set.
        Returns:
        This builder for chaining.
      • 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.
      • setStateValue

        public KmsConfig.Builder setStateValue​(int value)
         Output only. State of the KmsConfig.
         
        .google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • 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.
      • setState

        public KmsConfig.Builder setState​(KmsConfig.State value)
         Output only. State of the KmsConfig.
         
        .google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public KmsConfig.Builder clearState()
         Output only. State of the KmsConfig.
         
        .google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • 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.
      • setStateDetails

        public KmsConfig.Builder setStateDetails​(String value)
         Output only. State details of the KmsConfig.
         
        string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The stateDetails to set.
        Returns:
        This builder for chaining.
      • clearStateDetails

        public KmsConfig.Builder clearStateDetails()
         Output only. State details of the KmsConfig.
         
        string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setStateDetailsBytes

        public KmsConfig.Builder setStateDetailsBytes​(com.google.protobuf.ByteString value)
         Output only. State details of the KmsConfig.
         
        string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for stateDetails to set.
        Returns:
        This builder for chaining.
      • 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.
      • setCreateTime

        public KmsConfig.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public KmsConfig.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public KmsConfig.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public KmsConfig.Builder clearCreateTime()
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Create time of the KmsConfig.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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.
      • setDescription

        public KmsConfig.Builder setDescription​(String value)
         Description of the KmsConfig.
         
        string description = 6;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public KmsConfig.Builder clearDescription()
         Description of the KmsConfig.
         
        string description = 6;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public KmsConfig.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Description of the KmsConfig.
         
        string description = 6;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • removeLabels

        public KmsConfig.Builder removeLabels​(String key)
         Labels as key value pairs
         
        map<string, string> labels = 7;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • 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.
      • setInstructions

        public KmsConfig.Builder setInstructions​(String value)
         Output only. Instructions to provide the access to the customer provided
         encryption key.
         
        string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The instructions to set.
        Returns:
        This builder for chaining.
      • clearInstructions

        public KmsConfig.Builder clearInstructions()
         Output only. Instructions to provide the access to the customer provided
         encryption key.
         
        string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setInstructionsBytes

        public KmsConfig.Builder setInstructionsBytes​(com.google.protobuf.ByteString value)
         Output only. Instructions to provide the access to the customer provided
         encryption key.
         
        string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for instructions to set.
        Returns:
        This builder for chaining.
      • 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.
      • setServiceAccount

        public KmsConfig.Builder setServiceAccount​(String value)
         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];
        Parameters:
        value - The serviceAccount to set.
        Returns:
        This builder for chaining.
      • clearServiceAccount

        public KmsConfig.Builder clearServiceAccount()
         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];
        Returns:
        This builder for chaining.
      • setServiceAccountBytes

        public KmsConfig.Builder setServiceAccountBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for serviceAccount to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final KmsConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>
      • mergeUnknownFields

        public final KmsConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>