Class SignatureInfo.Builder (2.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SignatureInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SignatureInfo.Builder
Overrides

build()

public SignatureInfo build()
Returns
TypeDescription
SignatureInfo

buildPartial()

public SignatureInfo buildPartial()
Returns
TypeDescription
SignatureInfo

clear()

public SignatureInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
SignatureInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SignatureInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SignatureInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SignatureInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SignatureInfo.Builder
Overrides

clearSignature()

public SignatureInfo.Builder clearSignature()

The digital signature.

bytes signature = 1;

Returns
TypeDescription
SignatureInfo.Builder

This builder for chaining.

clearVerificationInfo()

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

clone()

public SignatureInfo.Builder clone()
Returns
TypeDescription
SignatureInfo.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SignatureInfo other)

public SignatureInfo.Builder mergeFrom(SignatureInfo other)
Parameter
NameDescription
otherSignatureInfo
Returns
TypeDescription
SignatureInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SignatureInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignatureInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SignatureInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SignatureInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SignatureInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The customerKmsKeyVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for customerKmsKeyVersion to set.

Returns
TypeDescription
SignatureInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SignatureInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The googlePublicKeyPem to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for googlePublicKeyPem to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SignatureInfo.Builder
Overrides

setSignature(ByteString value)

public SignatureInfo.Builder setSignature(ByteString value)

The digital signature.

bytes signature = 1;

Parameter
NameDescription
valueByteString

The signature to set.

Returns
TypeDescription
SignatureInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SignatureInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SignatureInfo.Builder
Overrides