Class SignatureInfo (2.25.0)

public final class SignatureInfo extends GeneratedMessageV3 implements SignatureInfoOrBuilder

Information about the digital signature of the resource.

Protobuf type google.cloud.accessapproval.v1.SignatureInfo

Static Fields

CUSTOMER_KMS_KEY_VERSION_FIELD_NUMBER

public static final int CUSTOMER_KMS_KEY_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

GOOGLE_PUBLIC_KEY_PEM_FIELD_NUMBER

public static final int GOOGLE_PUBLIC_KEY_PEM_FIELD_NUMBER
Field Value
TypeDescription
int

SIGNATURE_FIELD_NUMBER

public static final int SIGNATURE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SignatureInfo getDefaultInstance()
Returns
TypeDescription
SignatureInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SignatureInfo.Builder newBuilder()
Returns
TypeDescription
SignatureInfo.Builder

newBuilder(SignatureInfo prototype)

public static SignatureInfo.Builder newBuilder(SignatureInfo prototype)
Parameter
NameDescription
prototypeSignatureInfo
Returns
TypeDescription
SignatureInfo.Builder

parseDelimitedFrom(InputStream input)

public static SignatureInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignatureInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SignatureInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SignatureInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SignatureInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SignatureInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SignatureInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SignatureInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SignatureInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignatureInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SignatureInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SignatureInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignatureInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SignatureInfo> parser()
Returns
TypeDescription
Parser<SignatureInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCustomerKmsKeyVersion()

public String getCustomerKmsKeyVersion()

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Returns
TypeDescription
String

The customerKmsKeyVersion.

getCustomerKmsKeyVersionBytes()

public ByteString getCustomerKmsKeyVersionBytes()

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Returns
TypeDescription
ByteString

The bytes for customerKmsKeyVersion.

getDefaultInstanceForType()

public SignatureInfo getDefaultInstanceForType()
Returns
TypeDescription
SignatureInfo

getGooglePublicKeyPem()

public String getGooglePublicKeyPem()

The public key for the Google default signing, encoded in PEM format. The signature was created using a private key which may be verified using this public key.

string google_public_key_pem = 2;

Returns
TypeDescription
String

The googlePublicKeyPem.

getGooglePublicKeyPemBytes()

public ByteString getGooglePublicKeyPemBytes()

The public key for the Google default signing, encoded in PEM format. The signature was created using a private key which may be verified using this public key.

string google_public_key_pem = 2;

Returns
TypeDescription
ByteString

The bytes for googlePublicKeyPem.

getParserForType()

public Parser<SignatureInfo> getParserForType()
Returns
TypeDescription
Parser<SignatureInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSignature()

public ByteString getSignature()

The digital signature.

bytes signature = 1;

Returns
TypeDescription
ByteString

The signature.

getVerificationInfoCase()

public SignatureInfo.VerificationInfoCase getVerificationInfoCase()
Returns
TypeDescription
SignatureInfo.VerificationInfoCase

hasCustomerKmsKeyVersion()

public boolean hasCustomerKmsKeyVersion()

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Returns
TypeDescription
boolean

Whether the customerKmsKeyVersion field is set.

hasGooglePublicKeyPem()

public boolean hasGooglePublicKeyPem()

The public key for the Google default signing, encoded in PEM format. The signature was created using a private key which may be verified using this public key.

string google_public_key_pem = 2;

Returns
TypeDescription
boolean

Whether the googlePublicKeyPem field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SignatureInfo.Builder newBuilderForType()
Returns
TypeDescription
SignatureInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SignatureInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SignatureInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SignatureInfo.Builder toBuilder()
Returns
TypeDescription
SignatureInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException