Class GetPublicKeyRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetPublicKeyRequest.Builder>
com.google.cloud.kms.v1.GetPublicKeyRequest.Builder
All Implemented Interfaces:
GetPublicKeyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetPublicKeyRequest

public static final class GetPublicKeyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetPublicKeyRequest.Builder> implements GetPublicKeyRequestOrBuilder
 Request message for
 [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
 
Protobuf type google.cloud.kms.v1.GetPublicKeyRequest
  • 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<GetPublicKeyRequest.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<GetPublicKeyRequest.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<GetPublicKeyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface GetPublicKeyRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface GetPublicKeyRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GetPublicKeyRequest.Builder setName(String value)
       Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GetPublicKeyRequest.Builder clearName()
       Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public GetPublicKeyRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPublicKeyFormatValue

      public int getPublicKeyFormatValue()
       Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified
       by the user. This field is required for PQC algorithms. If specified, the
       public key will be exported through the
       [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
       requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem]
       field will be populated for non-PQC algorithms, and an error will be
       returned for PQC algorithms.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeyFormatValue in interface GetPublicKeyRequestOrBuilder
      Returns:
      The enum numeric value on the wire for publicKeyFormat.
    • setPublicKeyFormatValue

      public GetPublicKeyRequest.Builder setPublicKeyFormatValue(int value)
       Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified
       by the user. This field is required for PQC algorithms. If specified, the
       public key will be exported through the
       [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
       requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem]
       field will be populated for non-PQC algorithms, and an error will be
       returned for PQC algorithms.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for publicKeyFormat to set.
      Returns:
      This builder for chaining.
    • getPublicKeyFormat

      public PublicKey.PublicKeyFormat getPublicKeyFormat()
       Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified
       by the user. This field is required for PQC algorithms. If specified, the
       public key will be exported through the
       [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
       requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem]
       field will be populated for non-PQC algorithms, and an error will be
       returned for PQC algorithms.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeyFormat in interface GetPublicKeyRequestOrBuilder
      Returns:
      The publicKeyFormat.
    • setPublicKeyFormat

      public GetPublicKeyRequest.Builder setPublicKeyFormat(PublicKey.PublicKeyFormat value)
       Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified
       by the user. This field is required for PQC algorithms. If specified, the
       public key will be exported through the
       [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
       requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem]
       field will be populated for non-PQC algorithms, and an error will be
       returned for PQC algorithms.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The publicKeyFormat to set.
      Returns:
      This builder for chaining.
    • clearPublicKeyFormat

      public GetPublicKeyRequest.Builder clearPublicKeyFormat()
       Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified
       by the user. This field is required for PQC algorithms. If specified, the
       public key will be exported through the
       [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
       requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem]
       field will be populated for non-PQC algorithms, and an error will be
       returned for PQC algorithms.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.