Class SignatureInfo.Builder (2.45.0)

public static final class SignatureInfo.Builder extends GeneratedMessageV3.Builder<SignatureInfo.Builder> implements SignatureInfoOrBuilder

Information about the digital signature of the resource.

Protobuf type google.cloud.accessapproval.v1.SignatureInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SignatureInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SignatureInfo.Builder
Overrides

build()

public SignatureInfo build()
Returns
Type Description
SignatureInfo

buildPartial()

public SignatureInfo buildPartial()
Returns
Type Description
SignatureInfo

clear()

public SignatureInfo.Builder clear()
Returns
Type Description
SignatureInfo.Builder
Overrides

clearCustomerKmsKeyVersion()

public SignatureInfo.Builder clearCustomerKmsKeyVersion()

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Returns
Type Description
SignatureInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SignatureInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SignatureInfo.Builder
Overrides

clearGooglePublicKeyPem()

public SignatureInfo.Builder clearGooglePublicKeyPem()

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
Type Description
SignatureInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SignatureInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SignatureInfo.Builder
Overrides

clearSignature()

public SignatureInfo.Builder clearSignature()

The digital signature.

bytes signature = 1;

Returns
Type Description
SignatureInfo.Builder

This builder for chaining.

clearVerificationInfo()

public SignatureInfo.Builder clearVerificationInfo()
Returns
Type Description
SignatureInfo.Builder

clone()

public SignatureInfo.Builder clone()
Returns
Type Description
SignatureInfo.Builder
Overrides

getCustomerKmsKeyVersion()

public String getCustomerKmsKeyVersion()

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Returns
Type Description
String

The customerKmsKeyVersion.

getCustomerKmsKeyVersionBytes()

public ByteString getCustomerKmsKeyVersionBytes()

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Returns
Type Description
ByteString

The bytes for customerKmsKeyVersion.

getDefaultInstanceForType()

public SignatureInfo getDefaultInstanceForType()
Returns
Type Description
SignatureInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for googlePublicKeyPem.

getSignature()

public ByteString getSignature()

The digital signature.

bytes signature = 1;

Returns
Type Description
ByteString

The signature.

getVerificationInfoCase()

public SignatureInfo.VerificationInfoCase getVerificationInfoCase()
Returns
Type Description
SignatureInfo.VerificationInfoCase

hasCustomerKmsKeyVersion()

public boolean hasCustomerKmsKeyVersion()

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Returns
Type Description
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
Type Description
boolean

Whether the googlePublicKeyPem field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SignatureInfo other)

public SignatureInfo.Builder mergeFrom(SignatureInfo other)
Parameter
Name Description
other SignatureInfo
Returns
Type Description
SignatureInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SignatureInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignatureInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SignatureInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SignatureInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SignatureInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SignatureInfo.Builder
Overrides

setCustomerKmsKeyVersion(String value)

public SignatureInfo.Builder setCustomerKmsKeyVersion(String value)

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Parameter
Name Description
value String

The customerKmsKeyVersion to set.

Returns
Type Description
SignatureInfo.Builder

This builder for chaining.

setCustomerKmsKeyVersionBytes(ByteString value)

public SignatureInfo.Builder setCustomerKmsKeyVersionBytes(ByteString value)

The resource name of the customer CryptoKeyVersion used for signing.

string customer_kms_key_version = 3;

Parameter
Name Description
value ByteString

The bytes for customerKmsKeyVersion to set.

Returns
Type Description
SignatureInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SignatureInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SignatureInfo.Builder
Overrides

setGooglePublicKeyPem(String value)

public SignatureInfo.Builder setGooglePublicKeyPem(String value)

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;

Parameter
Name Description
value String

The googlePublicKeyPem to set.

Returns
Type Description
SignatureInfo.Builder

This builder for chaining.

setGooglePublicKeyPemBytes(ByteString value)

public SignatureInfo.Builder setGooglePublicKeyPemBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for googlePublicKeyPem to set.

Returns
Type Description
SignatureInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SignatureInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SignatureInfo.Builder
Overrides

setSignature(ByteString value)

public SignatureInfo.Builder setSignature(ByteString value)

The digital signature.

bytes signature = 1;

Parameter
Name Description
value ByteString

The signature to set.

Returns
Type Description
SignatureInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SignatureInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SignatureInfo.Builder
Overrides