Class ExternalProtectionLevelOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExternalProtectionLevelOptions.Builder>
com.google.cloud.kms.v1.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.GeneratedMessage.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 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.Builder<ExternalProtectionLevelOptions.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.GeneratedMessage.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.GeneratedMessage.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

      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
    • mergeFrom

      public ExternalProtectionLevelOptions.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<ExternalProtectionLevelOptions.Builder>
    • mergeFrom

    • isInitialized

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

      public ExternalProtectionLevelOptions.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<ExternalProtectionLevelOptions.Builder>
      Throws:
      IOException
    • 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.