Class Metadata.Builder (2.35.0)

public static final class Metadata.Builder extends GeneratedMessageV3.Builder<Metadata.Builder> implements MetadataOrBuilder

Other properties of the build.

Protobuf type grafeas.v1.Metadata

Implements

MetadataOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Metadata build()
Returns
TypeDescription
Metadata

buildPartial()

public Metadata buildPartial()
Returns
TypeDescription
Metadata

clear()

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

clearBuildFinishedOn()

public Metadata.Builder clearBuildFinishedOn()

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Returns
TypeDescription
Metadata.Builder

clearBuildInvocationId()

public Metadata.Builder clearBuildInvocationId()

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

string build_invocation_id = 1;

Returns
TypeDescription
Metadata.Builder

This builder for chaining.

clearBuildStartedOn()

public Metadata.Builder clearBuildStartedOn()

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Returns
TypeDescription
Metadata.Builder

clearCompleteness()

public Metadata.Builder clearCompleteness()

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Returns
TypeDescription
Metadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReproducible()

public Metadata.Builder clearReproducible()

If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.

bool reproducible = 5;

Returns
TypeDescription
Metadata.Builder

This builder for chaining.

clone()

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

getBuildFinishedOn()

public Timestamp getBuildFinishedOn()

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Returns
TypeDescription
Timestamp

The buildFinishedOn.

getBuildFinishedOnBuilder()

public Timestamp.Builder getBuildFinishedOnBuilder()

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Returns
TypeDescription
Builder

getBuildFinishedOnOrBuilder()

public TimestampOrBuilder getBuildFinishedOnOrBuilder()

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Returns
TypeDescription
TimestampOrBuilder

getBuildInvocationId()

public String getBuildInvocationId()

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

string build_invocation_id = 1;

Returns
TypeDescription
String

The buildInvocationId.

getBuildInvocationIdBytes()

public ByteString getBuildInvocationIdBytes()

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

string build_invocation_id = 1;

Returns
TypeDescription
ByteString

The bytes for buildInvocationId.

getBuildStartedOn()

public Timestamp getBuildStartedOn()

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Returns
TypeDescription
Timestamp

The buildStartedOn.

getBuildStartedOnBuilder()

public Timestamp.Builder getBuildStartedOnBuilder()

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Returns
TypeDescription
Builder

getBuildStartedOnOrBuilder()

public TimestampOrBuilder getBuildStartedOnOrBuilder()

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Returns
TypeDescription
TimestampOrBuilder

getCompleteness()

public Completeness getCompleteness()

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Returns
TypeDescription
Completeness

The completeness.

getCompletenessBuilder()

public Completeness.Builder getCompletenessBuilder()

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Returns
TypeDescription
Completeness.Builder

getCompletenessOrBuilder()

public CompletenessOrBuilder getCompletenessOrBuilder()

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Returns
TypeDescription
CompletenessOrBuilder

getDefaultInstanceForType()

public Metadata getDefaultInstanceForType()
Returns
TypeDescription
Metadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReproducible()

public boolean getReproducible()

If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.

bool reproducible = 5;

Returns
TypeDescription
boolean

The reproducible.

hasBuildFinishedOn()

public boolean hasBuildFinishedOn()

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Returns
TypeDescription
boolean

Whether the buildFinishedOn field is set.

hasBuildStartedOn()

public boolean hasBuildStartedOn()

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Returns
TypeDescription
boolean

Whether the buildStartedOn field is set.

hasCompleteness()

public boolean hasCompleteness()

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Returns
TypeDescription
boolean

Whether the completeness field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBuildFinishedOn(Timestamp value)

public Metadata.Builder mergeBuildFinishedOn(Timestamp value)

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Metadata.Builder

mergeBuildStartedOn(Timestamp value)

public Metadata.Builder mergeBuildStartedOn(Timestamp value)

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Metadata.Builder

mergeCompleteness(Completeness value)

public Metadata.Builder mergeCompleteness(Completeness value)

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Parameter
NameDescription
valueCompleteness
Returns
TypeDescription
Metadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Metadata other)

public Metadata.Builder mergeFrom(Metadata other)
Parameter
NameDescription
otherMetadata
Returns
TypeDescription
Metadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBuildFinishedOn(Timestamp value)

public Metadata.Builder setBuildFinishedOn(Timestamp value)

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Metadata.Builder

setBuildFinishedOn(Timestamp.Builder builderForValue)

public Metadata.Builder setBuildFinishedOn(Timestamp.Builder builderForValue)

The timestamp of when the build completed.

.google.protobuf.Timestamp build_finished_on = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Metadata.Builder

setBuildInvocationId(String value)

public Metadata.Builder setBuildInvocationId(String value)

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

string build_invocation_id = 1;

Parameter
NameDescription
valueString

The buildInvocationId to set.

Returns
TypeDescription
Metadata.Builder

This builder for chaining.

setBuildInvocationIdBytes(ByteString value)

public Metadata.Builder setBuildInvocationIdBytes(ByteString value)

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.

string build_invocation_id = 1;

Parameter
NameDescription
valueByteString

The bytes for buildInvocationId to set.

Returns
TypeDescription
Metadata.Builder

This builder for chaining.

setBuildStartedOn(Timestamp value)

public Metadata.Builder setBuildStartedOn(Timestamp value)

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Metadata.Builder

setBuildStartedOn(Timestamp.Builder builderForValue)

public Metadata.Builder setBuildStartedOn(Timestamp.Builder builderForValue)

The timestamp of when the build started.

.google.protobuf.Timestamp build_started_on = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Metadata.Builder

setCompleteness(Completeness value)

public Metadata.Builder setCompleteness(Completeness value)

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Parameter
NameDescription
valueCompleteness
Returns
TypeDescription
Metadata.Builder

setCompleteness(Completeness.Builder builderForValue)

public Metadata.Builder setCompleteness(Completeness.Builder builderForValue)

Indicates that the builder claims certain fields in this message to be complete.

.grafeas.v1.Completeness completeness = 4;

Parameter
NameDescription
builderForValueCompleteness.Builder
Returns
TypeDescription
Metadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Metadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Metadata.Builder
Overrides

setReproducible(boolean value)

public Metadata.Builder setReproducible(boolean value)

If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.

bool reproducible = 5;

Parameter
NameDescription
valueboolean

The reproducible to set.

Returns
TypeDescription
Metadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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