Class ExternalProtectionLevelOptions.Builder

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

    public static final class ExternalProtectionLevelOptions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExternalProtectionLevelOptions.Builder>
    implements ExternalProtectionLevelOptionsOrBuilder
     ExternalProtectionLevelOptions stores a group of additional fields for
     configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
     are specific to the [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL]
     protection level and
     [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] protection
     levels.
     
    Protobuf type google.cloud.kms.v1.ExternalProtectionLevelOptions
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExternalProtectionLevelOptions.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<ExternalProtectionLevelOptions.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public String getExternalKeyUri()
         The URI for an external resource that this
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
         
        string external_key_uri = 1;
        Specified by:
        getExternalKeyUri in interface ExternalProtectionLevelOptionsOrBuilder
        Returns:
        The externalKeyUri.
      • getExternalKeyUriBytes

        public com.google.protobuf.ByteString getExternalKeyUriBytes()
         The URI for an external resource that this
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
         
        string external_key_uri = 1;
        Specified by:
        getExternalKeyUriBytes in interface ExternalProtectionLevelOptionsOrBuilder
        Returns:
        The bytes for externalKeyUri.
      • setExternalKeyUri

        public ExternalProtectionLevelOptions.Builder setExternalKeyUri​(String value)
         The URI for an external resource that this
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
         
        string external_key_uri = 1;
        Parameters:
        value - The externalKeyUri to set.
        Returns:
        This builder for chaining.
      • clearExternalKeyUri

        public ExternalProtectionLevelOptions.Builder clearExternalKeyUri()
         The URI for an external resource that this
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
         
        string external_key_uri = 1;
        Returns:
        This builder for chaining.
      • setExternalKeyUriBytes

        public ExternalProtectionLevelOptions.Builder setExternalKeyUriBytes​(com.google.protobuf.ByteString value)
         The URI for an external resource that this
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
         
        string external_key_uri = 1;
        Parameters:
        value - The bytes for externalKeyUri to set.
        Returns:
        This builder for chaining.
      • getEkmConnectionKeyPath

        public String getEkmConnectionKeyPath()
         The path to the external key material on the EKM when using
         [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
         this field instead of external_key_uri when using an
         [EkmConnection][google.cloud.kms.v1.EkmConnection].
         
        string ekm_connection_key_path = 2;
        Specified by:
        getEkmConnectionKeyPath in interface ExternalProtectionLevelOptionsOrBuilder
        Returns:
        The ekmConnectionKeyPath.
      • getEkmConnectionKeyPathBytes

        public com.google.protobuf.ByteString getEkmConnectionKeyPathBytes()
         The path to the external key material on the EKM when using
         [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
         this field instead of external_key_uri when using an
         [EkmConnection][google.cloud.kms.v1.EkmConnection].
         
        string ekm_connection_key_path = 2;
        Specified by:
        getEkmConnectionKeyPathBytes in interface ExternalProtectionLevelOptionsOrBuilder
        Returns:
        The bytes for ekmConnectionKeyPath.
      • setEkmConnectionKeyPath

        public ExternalProtectionLevelOptions.Builder setEkmConnectionKeyPath​(String value)
         The path to the external key material on the EKM when using
         [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
         this field instead of external_key_uri when using an
         [EkmConnection][google.cloud.kms.v1.EkmConnection].
         
        string ekm_connection_key_path = 2;
        Parameters:
        value - The ekmConnectionKeyPath to set.
        Returns:
        This builder for chaining.
      • clearEkmConnectionKeyPath

        public ExternalProtectionLevelOptions.Builder clearEkmConnectionKeyPath()
         The path to the external key material on the EKM when using
         [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
         this field instead of external_key_uri when using an
         [EkmConnection][google.cloud.kms.v1.EkmConnection].
         
        string ekm_connection_key_path = 2;
        Returns:
        This builder for chaining.
      • setEkmConnectionKeyPathBytes

        public ExternalProtectionLevelOptions.Builder setEkmConnectionKeyPathBytes​(com.google.protobuf.ByteString value)
         The path to the external key material on the EKM when using
         [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
         this field instead of external_key_uri when using an
         [EkmConnection][google.cloud.kms.v1.EkmConnection].
         
        string ekm_connection_key_path = 2;
        Parameters:
        value - The bytes for ekmConnectionKeyPath to set.
        Returns:
        This builder for chaining.