Class BuildOccurrence.Builder (2.47.0)

public static final class BuildOccurrence.Builder extends GeneratedMessageV3.Builder<BuildOccurrence.Builder> implements BuildOccurrenceOrBuilder

Details of a build occurrence.

Protobuf type grafeas.v1.BuildOccurrence

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BuildOccurrence build()
Returns
Type Description
BuildOccurrence

buildPartial()

public BuildOccurrence buildPartial()
Returns
Type Description
BuildOccurrence

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInTotoSlsaProvenanceV1()

public BuildOccurrence.Builder clearInTotoSlsaProvenanceV1()

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Returns
Type Description
BuildOccurrence.Builder

clearIntotoProvenance()

public BuildOccurrence.Builder clearIntotoProvenance()

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type Description
BuildOccurrence.Builder

clearIntotoStatement()

public BuildOccurrence.Builder clearIntotoStatement()

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Returns
Type Description
BuildOccurrence.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProvenance()

public BuildOccurrence.Builder clearProvenance()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
BuildOccurrence.Builder

clearProvenanceBytes()

public BuildOccurrence.Builder clearProvenanceBytes()

Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, provenance_bytes can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification.

The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.

string provenance_bytes = 2;

Returns
Type Description
BuildOccurrence.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BuildOccurrence getDefaultInstanceForType()
Returns
Type Description
BuildOccurrence

getDescriptorForType()

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

getInTotoSlsaProvenanceV1()

public InTotoSlsaProvenanceV1 getInTotoSlsaProvenanceV1()

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Returns
Type Description
InTotoSlsaProvenanceV1

The inTotoSlsaProvenanceV1.

getInTotoSlsaProvenanceV1Builder()

public InTotoSlsaProvenanceV1.Builder getInTotoSlsaProvenanceV1Builder()

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

getInTotoSlsaProvenanceV1OrBuilder()

public InTotoSlsaProvenanceV1OrBuilder getInTotoSlsaProvenanceV1OrBuilder()

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Returns
Type Description
InTotoSlsaProvenanceV1OrBuilder

getIntotoProvenance()

public InTotoProvenance getIntotoProvenance()

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type Description
InTotoProvenance

The intotoProvenance.

getIntotoProvenanceBuilder()

public InTotoProvenance.Builder getIntotoProvenanceBuilder()

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type Description
InTotoProvenance.Builder

getIntotoProvenanceOrBuilder()

public InTotoProvenanceOrBuilder getIntotoProvenanceOrBuilder()

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type Description
InTotoProvenanceOrBuilder

getIntotoStatement()

public InTotoStatement getIntotoStatement()

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Returns
Type Description
InTotoStatement

The intotoStatement.

getIntotoStatementBuilder()

public InTotoStatement.Builder getIntotoStatementBuilder()

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Returns
Type Description
InTotoStatement.Builder

getIntotoStatementOrBuilder()

public InTotoStatementOrBuilder getIntotoStatementOrBuilder()

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Returns
Type Description
InTotoStatementOrBuilder

getProvenance()

public BuildProvenance getProvenance()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
BuildProvenance

The provenance.

getProvenanceBuilder()

public BuildProvenance.Builder getProvenanceBuilder()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
BuildProvenance.Builder

getProvenanceBytes()

public String getProvenanceBytes()

Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, provenance_bytes can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification.

The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.

string provenance_bytes = 2;

Returns
Type Description
String

The provenanceBytes.

getProvenanceBytesBytes()

public ByteString getProvenanceBytesBytes()

Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, provenance_bytes can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification.

The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.

string provenance_bytes = 2;

Returns
Type Description
ByteString

The bytes for provenanceBytes.

getProvenanceOrBuilder()

public BuildProvenanceOrBuilder getProvenanceOrBuilder()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
BuildProvenanceOrBuilder

hasInTotoSlsaProvenanceV1()

public boolean hasInTotoSlsaProvenanceV1()

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Returns
Type Description
boolean

Whether the inTotoSlsaProvenanceV1 field is set.

hasIntotoProvenance()

public boolean hasIntotoProvenance()

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type Description
boolean

Whether the intotoProvenance field is set.

hasIntotoStatement()

public boolean hasIntotoStatement()

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Returns
Type Description
boolean

Whether the intotoStatement field is set.

hasProvenance()

public boolean hasProvenance()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
boolean

Whether the provenance field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(BuildOccurrence other)

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

mergeInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1 value)

public BuildOccurrence.Builder mergeInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1 value)

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Parameter
Name Description
value InTotoSlsaProvenanceV1
Returns
Type Description
BuildOccurrence.Builder

mergeIntotoProvenance(InTotoProvenance value)

public BuildOccurrence.Builder mergeIntotoProvenance(InTotoProvenance value)

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Parameter
Name Description
value InTotoProvenance
Returns
Type Description
BuildOccurrence.Builder

mergeIntotoStatement(InTotoStatement value)

public BuildOccurrence.Builder mergeIntotoStatement(InTotoStatement value)

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Parameter
Name Description
value InTotoStatement
Returns
Type Description
BuildOccurrence.Builder

mergeProvenance(BuildProvenance value)

public BuildOccurrence.Builder mergeProvenance(BuildProvenance value)

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name Description
value BuildProvenance
Returns
Type Description
BuildOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1 value)

public BuildOccurrence.Builder setInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1 value)

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Parameter
Name Description
value InTotoSlsaProvenanceV1
Returns
Type Description
BuildOccurrence.Builder

setInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1.Builder builderForValue)

public BuildOccurrence.Builder setInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1.Builder builderForValue)

In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.

.grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5;

Parameter
Name Description
builderForValue InTotoSlsaProvenanceV1.Builder
Returns
Type Description
BuildOccurrence.Builder

setIntotoProvenance(InTotoProvenance value)

public BuildOccurrence.Builder setIntotoProvenance(InTotoProvenance value)

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Parameter
Name Description
value InTotoProvenance
Returns
Type Description
BuildOccurrence.Builder

setIntotoProvenance(InTotoProvenance.Builder builderForValue)

public BuildOccurrence.Builder setIntotoProvenance(InTotoProvenance.Builder builderForValue)

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Parameter
Name Description
builderForValue InTotoProvenance.Builder
Returns
Type Description
BuildOccurrence.Builder

setIntotoStatement(InTotoStatement value)

public BuildOccurrence.Builder setIntotoStatement(InTotoStatement value)

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Parameter
Name Description
value InTotoStatement
Returns
Type Description
BuildOccurrence.Builder

setIntotoStatement(InTotoStatement.Builder builderForValue)

public BuildOccurrence.Builder setIntotoStatement(InTotoStatement.Builder builderForValue)

In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.

.grafeas.v1.InTotoStatement intoto_statement = 4;

Parameter
Name Description
builderForValue InTotoStatement.Builder
Returns
Type Description
BuildOccurrence.Builder

setProvenance(BuildProvenance value)

public BuildOccurrence.Builder setProvenance(BuildProvenance value)

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name Description
value BuildProvenance
Returns
Type Description
BuildOccurrence.Builder

setProvenance(BuildProvenance.Builder builderForValue)

public BuildOccurrence.Builder setProvenance(BuildProvenance.Builder builderForValue)

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name Description
builderForValue BuildProvenance.Builder
Returns
Type Description
BuildOccurrence.Builder

setProvenanceBytes(String value)

public BuildOccurrence.Builder setProvenanceBytes(String value)

Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, provenance_bytes can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification.

The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.

string provenance_bytes = 2;

Parameter
Name Description
value String

The provenanceBytes to set.

Returns
Type Description
BuildOccurrence.Builder

This builder for chaining.

setProvenanceBytesBytes(ByteString value)

public BuildOccurrence.Builder setProvenanceBytesBytes(ByteString value)

Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, provenance_bytes can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification.

The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.

string provenance_bytes = 2;

Parameter
Name Description
value ByteString

The bytes for provenanceBytes to set.

Returns
Type Description
BuildOccurrence.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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