Class BuildOccurrence.Builder (2.4.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BuildOccurrence build()
Returns
TypeDescription
BuildOccurrence

buildPartial()

public BuildOccurrence buildPartial()
Returns
TypeDescription
BuildOccurrence

clear()

public BuildOccurrence.Builder clear()
Returns
TypeDescription
BuildOccurrence.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BuildOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BuildOccurrence.Builder
Overrides

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
TypeDescription
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
TypeDescription
BuildOccurrence.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProvenance()

public BuildOccurrence.Builder clearProvenance()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
TypeDescription
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
TypeDescription
BuildOccurrence.Builder

This builder for chaining.

clone()

public BuildOccurrence.Builder clone()
Returns
TypeDescription
BuildOccurrence.Builder
Overrides

getDefaultInstanceForType()

public BuildOccurrence getDefaultInstanceForType()
Returns
TypeDescription
BuildOccurrence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InTotoStatementOrBuilder

getProvenance()

public BuildProvenance getProvenance()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
TypeDescription
BuildProvenance

The provenance.

getProvenanceBuilder()

public BuildProvenance.Builder getProvenanceBuilder()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for provenanceBytes.

getProvenanceOrBuilder()

public BuildProvenanceOrBuilder getProvenanceOrBuilder()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
TypeDescription
BuildProvenanceOrBuilder

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
TypeDescription
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
TypeDescription
boolean

Whether the intotoStatement field is set.

hasProvenance()

public boolean hasProvenance()

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
TypeDescription
boolean

Whether the provenance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(BuildOccurrence other)

public BuildOccurrence.Builder mergeFrom(BuildOccurrence other)
Parameter
NameDescription
otherBuildOccurrence
Returns
TypeDescription
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
NameDescription
valueInTotoProvenance
Returns
TypeDescription
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
NameDescription
valueInTotoStatement
Returns
TypeDescription
BuildOccurrence.Builder

mergeProvenance(BuildProvenance value)

public BuildOccurrence.Builder mergeProvenance(BuildProvenance value)

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
NameDescription
valueBuildProvenance
Returns
TypeDescription
BuildOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BuildOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BuildOccurrence.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueInTotoProvenance
Returns
TypeDescription
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
NameDescription
builderForValueInTotoProvenance.Builder
Returns
TypeDescription
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
NameDescription
valueInTotoStatement
Returns
TypeDescription
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
NameDescription
builderForValueInTotoStatement.Builder
Returns
TypeDescription
BuildOccurrence.Builder

setProvenance(BuildProvenance value)

public BuildOccurrence.Builder setProvenance(BuildProvenance value)

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
NameDescription
valueBuildProvenance
Returns
TypeDescription
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
NameDescription
builderForValueBuildProvenance.Builder
Returns
TypeDescription
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
NameDescription
valueString

The provenanceBytes to set.

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

The bytes for provenanceBytes to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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