Class Resources.PkixPublicKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Resources.PkixPublicKey.Builder>
com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Resources.PkixPublicKeyOrBuilder,Cloneable
- Enclosing class:
- Resources.PkixPublicKey
public static final class Resources.PkixPublicKey.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Resources.PkixPublicKey.Builder>
implements Resources.PkixPublicKeyOrBuilder
A public key in the PkixPublicKey format (see https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). Public keys of this type are typically textually encoded using the PEM format.Protobuf type
google.cloud.binaryauthorization.v1.PkixPublicKey-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13The signature algorithm used to verify a message against a signature using this key.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13com.google.protobuf.ByteStringA PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13The signature algorithm used to verify a message against a signature using this key.intThe signature algorithm used to verify a message against a signature using this key.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Resources.PkixPublicKey other) setPublicKeyPem(String value) A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13setPublicKeyPemBytes(com.google.protobuf.ByteString value) A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13The signature algorithm used to verify a message against a signature using this key.setSignatureAlgorithmValue(int value) The signature algorithm used to verify a message against a signature using this key.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<Resources.PkixPublicKey.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<Resources.PkixPublicKey.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<Resources.PkixPublicKey.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<Resources.PkixPublicKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Resources.PkixPublicKey.Builder>
-
mergeFrom
public Resources.PkixPublicKey.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<Resources.PkixPublicKey.Builder>- Throws:
IOException
-
getPublicKeyPem
A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;- Specified by:
getPublicKeyPemin interfaceResources.PkixPublicKeyOrBuilder- Returns:
- The publicKeyPem.
-
getPublicKeyPemBytes
public com.google.protobuf.ByteString getPublicKeyPemBytes()A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;- Specified by:
getPublicKeyPemBytesin interfaceResources.PkixPublicKeyOrBuilder- Returns:
- The bytes for publicKeyPem.
-
setPublicKeyPem
A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;- Parameters:
value- The publicKeyPem to set.- Returns:
- This builder for chaining.
-
clearPublicKeyPem
A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;- Returns:
- This builder for chaining.
-
setPublicKeyPemBytes
A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;- Parameters:
value- The bytes for publicKeyPem to set.- Returns:
- This builder for chaining.
-
getSignatureAlgorithmValue
public int getSignatureAlgorithmValue()The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).
.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;- Specified by:
getSignatureAlgorithmValuein interfaceResources.PkixPublicKeyOrBuilder- Returns:
- The enum numeric value on the wire for signatureAlgorithm.
-
setSignatureAlgorithmValue
The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).
.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;- Parameters:
value- The enum numeric value on the wire for signatureAlgorithm to set.- Returns:
- This builder for chaining.
-
getSignatureAlgorithm
The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).
.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;- Specified by:
getSignatureAlgorithmin interfaceResources.PkixPublicKeyOrBuilder- Returns:
- The signatureAlgorithm.
-
setSignatureAlgorithm
public Resources.PkixPublicKey.Builder setSignatureAlgorithm(Resources.PkixPublicKey.SignatureAlgorithm value) The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).
.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;- Parameters:
value- The signatureAlgorithm to set.- Returns:
- This builder for chaining.
-
clearSignatureAlgorithm
The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).
.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;- Returns:
- This builder for chaining.
-