Class ContainerImageSignature.Builder (0.31.0)

publicstaticfinalclass ContainerImageSignature.BuilderextendsGeneratedMessageV3.Builder<ContainerImageSignature.Builder>implementsContainerImageSignatureOrBuilder

ContainerImageSignature holds necessary metadata to verify a container image signature.

Protobuf type google.cloud.confidentialcomputing.v1.ContainerImageSignature

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicContainerImageSignature.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerImageSignature.Builder
Overrides

build()

publicContainerImageSignaturebuild()
Returns
Type Description
ContainerImageSignature

buildPartial()

publicContainerImageSignaturebuildPartial()
Returns
Type Description
ContainerImageSignature

clear()

publicContainerImageSignature.Builderclear()
Returns
Type Description
ContainerImageSignature.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicContainerImageSignature.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContainerImageSignature.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicContainerImageSignature.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContainerImageSignature.Builder
Overrides

clearPayload()

publicContainerImageSignature.BuilderclearPayload()

Optional. The binary signature payload following the SimpleSigning format https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. This payload includes the container image digest.

bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

clearPublicKey()

publicContainerImageSignature.BuilderclearPublicKey()

Optional. Reserved for future use.

bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

clearSigAlg()

publicContainerImageSignature.BuilderclearSigAlg()

Optional. Reserved for future use.

.google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

clearSignature()

publicContainerImageSignature.BuilderclearSignature()

Optional. A signature over the payload. The container image digest is incorporated into the signature as follows:

  1. Generate a SimpleSigning format payload that includes the container image digest.
  2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))

bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

clone()

publicContainerImageSignature.Builderclone()
Returns
Type Description
ContainerImageSignature.Builder
Overrides

getDefaultInstanceForType()

publicContainerImageSignaturegetDefaultInstanceForType()
Returns
Type Description
ContainerImageSignature

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPayload()

publicByteStringgetPayload()

Optional. The binary signature payload following the SimpleSigning format https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. This payload includes the container image digest.

bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The payload.

getPublicKey()

publicByteStringgetPublicKey()

Optional. Reserved for future use.

bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The publicKey.

getSigAlg()

publicSigningAlgorithmgetSigAlg()

Optional. Reserved for future use.

.google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SigningAlgorithm

The sigAlg.

getSigAlgValue()

publicintgetSigAlgValue()

Optional. Reserved for future use.

.google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for sigAlg.

getSignature()

publicByteStringgetSignature()

Optional. A signature over the payload. The container image digest is incorporated into the signature as follows:

  1. Generate a SimpleSigning format payload that includes the container image digest.
  2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))

bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The signature.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContainerImageSignature other)

publicContainerImageSignature.BuildermergeFrom(ContainerImageSignatureother)
Parameter
Name Description
other ContainerImageSignature
Returns
Type Description
ContainerImageSignature.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicContainerImageSignature.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImageSignature.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicContainerImageSignature.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ContainerImageSignature.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalContainerImageSignature.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerImageSignature.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicContainerImageSignature.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerImageSignature.Builder
Overrides

setPayload(ByteString value)

publicContainerImageSignature.BuildersetPayload(ByteStringvalue)

Optional. The binary signature payload following the SimpleSigning format https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. This payload includes the container image digest.

bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The payload to set.

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

setPublicKey(ByteString value)

publicContainerImageSignature.BuildersetPublicKey(ByteStringvalue)

Optional. Reserved for future use.

bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The publicKey to set.

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

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

publicContainerImageSignature.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContainerImageSignature.Builder
Overrides

setSigAlg(SigningAlgorithm value)

publicContainerImageSignature.BuildersetSigAlg(SigningAlgorithmvalue)

Optional. Reserved for future use.

.google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SigningAlgorithm

The sigAlg to set.

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

setSigAlgValue(int value)

publicContainerImageSignature.BuildersetSigAlgValue(intvalue)

Optional. Reserved for future use.

.google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for sigAlg to set.

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

setSignature(ByteString value)

publicContainerImageSignature.BuildersetSignature(ByteStringvalue)

Optional. A signature over the payload. The container image digest is incorporated into the signature as follows:

  1. Generate a SimpleSigning format payload that includes the container image digest.
  2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))

bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The signature to set.

Returns
Type Description
ContainerImageSignature.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalContainerImageSignature.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerImageSignature.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.