Package com.google.cloud.kms.v1
Class ImportJob.WrappingPublicKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder>
com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder
- All Implemented Interfaces:
ImportJob.WrappingPublicKeyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportJob.WrappingPublicKey
public static final class ImportJob.WrappingPublicKey.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder>
implements ImportJob.WrappingPublicKeyOrBuilder
The public key component of the wrapping key. For details of the type of key this public key corresponds to, see the [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod].Protobuf type
google.cloud.kms.v1.ImportJob.WrappingPublicKey-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.clearPem()The public key, encoded in PEM format.com.google.protobuf.ByteStringgetData()Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPem()The public key, encoded in PEM format.com.google.protobuf.ByteStringThe public key, encoded in PEM format.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setData(com.google.protobuf.ByteString value) Output only.The public key, encoded in PEM format.setPemBytes(com.google.protobuf.ByteString value) The public key, encoded in PEM format.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportJob.WrappingPublicKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder>
-
mergeFrom
public ImportJob.WrappingPublicKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportJob.WrappingPublicKey.Builder>- Throws:
IOException
-
getPem
The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] and set the public_key_format to the desired public key format.
string pem = 1;- Specified by:
getPemin interfaceImportJob.WrappingPublicKeyOrBuilder- Returns:
- The pem.
-
getPemBytes
public com.google.protobuf.ByteString getPemBytes()The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] and set the public_key_format to the desired public key format.
string pem = 1;- Specified by:
getPemBytesin interfaceImportJob.WrappingPublicKeyOrBuilder- Returns:
- The bytes for pem.
-
setPem
The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] and set the public_key_format to the desired public key format.
string pem = 1;- Parameters:
value- The pem to set.- Returns:
- This builder for chaining.
-
clearPem
The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] and set the public_key_format to the desired public key format.
string pem = 1;- Returns:
- This builder for chaining.
-
setPemBytes
The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] and set the public_key_format to the desired public key format.
string pem = 1;- Parameters:
value- The bytes for pem to set.- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()Output only. Contains the public key, formatted according to the [PublicKey.PublicKeyFormat][google.cloud.kms.v1.PublicKey.PublicKeyFormat] specified in the [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] request.
bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDatain interfaceImportJob.WrappingPublicKeyOrBuilder- Returns:
- The data.
-
setData
Output only. Contains the public key, formatted according to the [PublicKey.PublicKeyFormat][google.cloud.kms.v1.PublicKey.PublicKeyFormat] specified in the [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] request.
bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The data to set.- Returns:
- This builder for chaining.
-
clearData
Output only. Contains the public key, formatted according to the [PublicKey.PublicKeyFormat][google.cloud.kms.v1.PublicKey.PublicKeyFormat] specified in the [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob] request.
bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-