Class BuildProvenance.Builder (2.22.0)

public static final class BuildProvenance.Builder extends GeneratedMessageV3.Builder<BuildProvenance.Builder> implements BuildProvenanceOrBuilder

Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.

Protobuf type grafeas.v1.BuildProvenance

Static Methods

getDescriptor()

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

Methods

addAllBuiltArtifacts(Iterable<? extends Artifact> values)

public BuildProvenance.Builder addAllBuiltArtifacts(Iterable<? extends Artifact> values)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.Artifact>
Returns
TypeDescription
BuildProvenance.Builder

addAllCommands(Iterable<? extends Command> values)

public BuildProvenance.Builder addAllCommands(Iterable<? extends Command> values)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.Command>
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifacts(int index, Artifact value)

public BuildProvenance.Builder addBuiltArtifacts(int index, Artifact value)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameters
NameDescription
indexint
valueArtifact
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifacts(int index, Artifact.Builder builderForValue)

public BuildProvenance.Builder addBuiltArtifacts(int index, Artifact.Builder builderForValue)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameters
NameDescription
indexint
builderForValueArtifact.Builder
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifacts(Artifact value)

public BuildProvenance.Builder addBuiltArtifacts(Artifact value)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
valueArtifact
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifacts(Artifact.Builder builderForValue)

public BuildProvenance.Builder addBuiltArtifacts(Artifact.Builder builderForValue)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
builderForValueArtifact.Builder
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifactsBuilder()

public Artifact.Builder addBuiltArtifactsBuilder()

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Returns
TypeDescription
Artifact.Builder

addBuiltArtifactsBuilder(int index)

public Artifact.Builder addBuiltArtifactsBuilder(int index)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifact.Builder

addCommands(int index, Command value)

public BuildProvenance.Builder addCommands(int index, Command value)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameters
NameDescription
indexint
valueCommand
Returns
TypeDescription
BuildProvenance.Builder

addCommands(int index, Command.Builder builderForValue)

public BuildProvenance.Builder addCommands(int index, Command.Builder builderForValue)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameters
NameDescription
indexint
builderForValueCommand.Builder
Returns
TypeDescription
BuildProvenance.Builder

addCommands(Command value)

public BuildProvenance.Builder addCommands(Command value)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
valueCommand
Returns
TypeDescription
BuildProvenance.Builder

addCommands(Command.Builder builderForValue)

public BuildProvenance.Builder addCommands(Command.Builder builderForValue)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
builderForValueCommand.Builder
Returns
TypeDescription
BuildProvenance.Builder

addCommandsBuilder()

public Command.Builder addCommandsBuilder()

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Returns
TypeDescription
Command.Builder

addCommandsBuilder(int index)

public Command.Builder addCommandsBuilder(int index)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Command.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BuildProvenance build()
Returns
TypeDescription
BuildProvenance

buildPartial()

public BuildProvenance buildPartial()
Returns
TypeDescription
BuildProvenance

clear()

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

clearBuildOptions()

public BuildProvenance.Builder clearBuildOptions()
Returns
TypeDescription
BuildProvenance.Builder

clearBuilderVersion()

public BuildProvenance.Builder clearBuilderVersion()

Version string of the builder at the time this build was executed.

string builder_version = 13;

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

clearBuiltArtifacts()

public BuildProvenance.Builder clearBuiltArtifacts()

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Returns
TypeDescription
BuildProvenance.Builder

clearCommands()

public BuildProvenance.Builder clearCommands()

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Returns
TypeDescription
BuildProvenance.Builder

clearCreateTime()

public BuildProvenance.Builder clearCreateTime()

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
BuildProvenance.Builder

clearCreator()

public BuildProvenance.Builder clearCreator()

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

string creator = 8;

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

clearEndTime()

public BuildProvenance.Builder clearEndTime()

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Returns
TypeDescription
BuildProvenance.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public BuildProvenance.Builder clearId()

Required. Unique identifier of the build.

string id = 1;

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

clearLogsUri()

public BuildProvenance.Builder clearLogsUri()

URI where any logs for this provenance were written.

string logs_uri = 9;

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public BuildProvenance.Builder clearProjectId()

ID of the project.

string project_id = 2;

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

clearSourceProvenance()

public BuildProvenance.Builder clearSourceProvenance()

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Returns
TypeDescription
BuildProvenance.Builder

clearStartTime()

public BuildProvenance.Builder clearStartTime()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Returns
TypeDescription
BuildProvenance.Builder

clearTriggerId()

public BuildProvenance.Builder clearTriggerId()

Trigger identifier if the build was triggered automatically; empty if not.

string trigger_id = 11;

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

clone()

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

containsBuildOptions(String key)

public boolean containsBuildOptions(String key)

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getBuildOptions()

public Map<String,String> getBuildOptions()

Use #getBuildOptionsMap() instead.

Returns
TypeDescription
Map<String,String>

getBuildOptionsCount()

public int getBuildOptionsCount()

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Returns
TypeDescription
int

getBuildOptionsMap()

public Map<String,String> getBuildOptionsMap()

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Returns
TypeDescription
Map<String,String>

getBuildOptionsOrDefault(String key, String defaultValue)

public String getBuildOptionsOrDefault(String key, String defaultValue)

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getBuildOptionsOrThrow(String key)

public String getBuildOptionsOrThrow(String key)

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getBuilderVersion()

public String getBuilderVersion()

Version string of the builder at the time this build was executed.

string builder_version = 13;

Returns
TypeDescription
String

The builderVersion.

getBuilderVersionBytes()

public ByteString getBuilderVersionBytes()

Version string of the builder at the time this build was executed.

string builder_version = 13;

Returns
TypeDescription
ByteString

The bytes for builderVersion.

getBuiltArtifacts(int index)

public Artifact getBuiltArtifacts(int index)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifact

getBuiltArtifactsBuilder(int index)

public Artifact.Builder getBuiltArtifactsBuilder(int index)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Artifact.Builder

getBuiltArtifactsBuilderList()

public List<Artifact.Builder> getBuiltArtifactsBuilderList()

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Returns
TypeDescription
List<Builder>

getBuiltArtifactsCount()

public int getBuiltArtifactsCount()

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Returns
TypeDescription
int

getBuiltArtifactsList()

public List<Artifact> getBuiltArtifactsList()

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Returns
TypeDescription
List<Artifact>

getBuiltArtifactsOrBuilder(int index)

public ArtifactOrBuilder getBuiltArtifactsOrBuilder(int index)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ArtifactOrBuilder

getBuiltArtifactsOrBuilderList()

public List<? extends ArtifactOrBuilder> getBuiltArtifactsOrBuilderList()

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Returns
TypeDescription
List<? extends io.grafeas.v1.ArtifactOrBuilder>

getCommands(int index)

public Command getCommands(int index)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Command

getCommandsBuilder(int index)

public Command.Builder getCommandsBuilder(int index)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Command.Builder

getCommandsBuilderList()

public List<Command.Builder> getCommandsBuilderList()

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Returns
TypeDescription
List<Builder>

getCommandsCount()

public int getCommandsCount()

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Returns
TypeDescription
int

getCommandsList()

public List<Command> getCommandsList()

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Returns
TypeDescription
List<Command>

getCommandsOrBuilder(int index)

public CommandOrBuilder getCommandsOrBuilder(int index)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
CommandOrBuilder

getCommandsOrBuilderList()

public List<? extends CommandOrBuilder> getCommandsOrBuilderList()

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Returns
TypeDescription
List<? extends io.grafeas.v1.CommandOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getCreator()

public String getCreator()

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

string creator = 8;

Returns
TypeDescription
String

The creator.

getCreatorBytes()

public ByteString getCreatorBytes()

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

string creator = 8;

Returns
TypeDescription
ByteString

The bytes for creator.

getDefaultInstanceForType()

public BuildProvenance getDefaultInstanceForType()
Returns
TypeDescription
BuildProvenance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getId()

public String getId()

Required. Unique identifier of the build.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. Unique identifier of the build.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getLogsUri()

public String getLogsUri()

URI where any logs for this provenance were written.

string logs_uri = 9;

Returns
TypeDescription
String

The logsUri.

getLogsUriBytes()

public ByteString getLogsUriBytes()

URI where any logs for this provenance were written.

string logs_uri = 9;

Returns
TypeDescription
ByteString

The bytes for logsUri.

getMutableBuildOptions()

public Map<String,String> getMutableBuildOptions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getProjectId()

public String getProjectId()

ID of the project.

string project_id = 2;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

ID of the project.

string project_id = 2;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSourceProvenance()

public Source getSourceProvenance()

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Returns
TypeDescription
Source

The sourceProvenance.

getSourceProvenanceBuilder()

public Source.Builder getSourceProvenanceBuilder()

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Returns
TypeDescription
Source.Builder

getSourceProvenanceOrBuilder()

public SourceOrBuilder getSourceProvenanceOrBuilder()

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Returns
TypeDescription
SourceOrBuilder

getStartTime()

public Timestamp getStartTime()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getTriggerId()

public String getTriggerId()

Trigger identifier if the build was triggered automatically; empty if not.

string trigger_id = 11;

Returns
TypeDescription
String

The triggerId.

getTriggerIdBytes()

public ByteString getTriggerIdBytes()

Trigger identifier if the build was triggered automatically; empty if not.

string trigger_id = 11;

Returns
TypeDescription
ByteString

The bytes for triggerId.

hasCreateTime()

public boolean hasCreateTime()

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEndTime()

public boolean hasEndTime()

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasSourceProvenance()

public boolean hasSourceProvenance()

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Returns
TypeDescription
boolean

Whether the sourceProvenance field is set.

hasStartTime()

public boolean hasStartTime()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public BuildProvenance.Builder mergeCreateTime(Timestamp value)

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BuildProvenance.Builder

mergeEndTime(Timestamp value)

public BuildProvenance.Builder mergeEndTime(Timestamp value)

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BuildProvenance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(BuildProvenance other)

public BuildProvenance.Builder mergeFrom(BuildProvenance other)
Parameter
NameDescription
otherBuildProvenance
Returns
TypeDescription
BuildProvenance.Builder

mergeSourceProvenance(Source value)

public BuildProvenance.Builder mergeSourceProvenance(Source value)

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Parameter
NameDescription
valueSource
Returns
TypeDescription
BuildProvenance.Builder

mergeStartTime(Timestamp value)

public BuildProvenance.Builder mergeStartTime(Timestamp value)

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BuildProvenance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllBuildOptions(Map<String,String> values)

public BuildProvenance.Builder putAllBuildOptions(Map<String,String> values)

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
BuildProvenance.Builder

putBuildOptions(String key, String value)

public BuildProvenance.Builder putBuildOptions(String key, String value)

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
BuildProvenance.Builder

removeBuildOptions(String key)

public BuildProvenance.Builder removeBuildOptions(String key)

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

map<string, string> build_options = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
BuildProvenance.Builder

removeBuiltArtifacts(int index)

public BuildProvenance.Builder removeBuiltArtifacts(int index)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
BuildProvenance.Builder

removeCommands(int index)

public BuildProvenance.Builder removeCommands(int index)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
BuildProvenance.Builder

setBuilderVersion(String value)

public BuildProvenance.Builder setBuilderVersion(String value)

Version string of the builder at the time this build was executed.

string builder_version = 13;

Parameter
NameDescription
valueString

The builderVersion to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setBuilderVersionBytes(ByteString value)

public BuildProvenance.Builder setBuilderVersionBytes(ByteString value)

Version string of the builder at the time this build was executed.

string builder_version = 13;

Parameter
NameDescription
valueByteString

The bytes for builderVersion to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setBuiltArtifacts(int index, Artifact value)

public BuildProvenance.Builder setBuiltArtifacts(int index, Artifact value)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameters
NameDescription
indexint
valueArtifact
Returns
TypeDescription
BuildProvenance.Builder

setBuiltArtifacts(int index, Artifact.Builder builderForValue)

public BuildProvenance.Builder setBuiltArtifacts(int index, Artifact.Builder builderForValue)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameters
NameDescription
indexint
builderForValueArtifact.Builder
Returns
TypeDescription
BuildProvenance.Builder

setCommands(int index, Command value)

public BuildProvenance.Builder setCommands(int index, Command value)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameters
NameDescription
indexint
valueCommand
Returns
TypeDescription
BuildProvenance.Builder

setCommands(int index, Command.Builder builderForValue)

public BuildProvenance.Builder setCommands(int index, Command.Builder builderForValue)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameters
NameDescription
indexint
builderForValueCommand.Builder
Returns
TypeDescription
BuildProvenance.Builder

setCreateTime(Timestamp value)

public BuildProvenance.Builder setCreateTime(Timestamp value)

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BuildProvenance.Builder

setCreateTime(Timestamp.Builder builderForValue)

public BuildProvenance.Builder setCreateTime(Timestamp.Builder builderForValue)

Time at which the build was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildProvenance.Builder

setCreator(String value)

public BuildProvenance.Builder setCreator(String value)

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

string creator = 8;

Parameter
NameDescription
valueString

The creator to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setCreatorBytes(ByteString value)

public BuildProvenance.Builder setCreatorBytes(ByteString value)

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

string creator = 8;

Parameter
NameDescription
valueByteString

The bytes for creator to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setEndTime(Timestamp value)

public BuildProvenance.Builder setEndTime(Timestamp value)

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BuildProvenance.Builder

setEndTime(Timestamp.Builder builderForValue)

public BuildProvenance.Builder setEndTime(Timestamp.Builder builderForValue)

Time at which execution of the build was finished.

.google.protobuf.Timestamp end_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildProvenance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public BuildProvenance.Builder setId(String value)

Required. Unique identifier of the build.

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setIdBytes(ByteString value)

public BuildProvenance.Builder setIdBytes(ByteString value)

Required. Unique identifier of the build.

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setLogsUri(String value)

public BuildProvenance.Builder setLogsUri(String value)

URI where any logs for this provenance were written.

string logs_uri = 9;

Parameter
NameDescription
valueString

The logsUri to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setLogsUriBytes(ByteString value)

public BuildProvenance.Builder setLogsUriBytes(ByteString value)

URI where any logs for this provenance were written.

string logs_uri = 9;

Parameter
NameDescription
valueByteString

The bytes for logsUri to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setProjectId(String value)

public BuildProvenance.Builder setProjectId(String value)

ID of the project.

string project_id = 2;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public BuildProvenance.Builder setProjectIdBytes(ByteString value)

ID of the project.

string project_id = 2;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

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

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

setSourceProvenance(Source value)

public BuildProvenance.Builder setSourceProvenance(Source value)

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Parameter
NameDescription
valueSource
Returns
TypeDescription
BuildProvenance.Builder

setSourceProvenance(Source.Builder builderForValue)

public BuildProvenance.Builder setSourceProvenance(Source.Builder builderForValue)

Details of the Source input to the build.

.grafeas.v1.Source source_provenance = 10;

Parameter
NameDescription
builderForValueSource.Builder
Returns
TypeDescription
BuildProvenance.Builder

setStartTime(Timestamp value)

public BuildProvenance.Builder setStartTime(Timestamp value)

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BuildProvenance.Builder

setStartTime(Timestamp.Builder builderForValue)

public BuildProvenance.Builder setStartTime(Timestamp.Builder builderForValue)

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildProvenance.Builder

setTriggerId(String value)

public BuildProvenance.Builder setTriggerId(String value)

Trigger identifier if the build was triggered automatically; empty if not.

string trigger_id = 11;

Parameter
NameDescription
valueString

The triggerId to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setTriggerIdBytes(ByteString value)

public BuildProvenance.Builder setTriggerIdBytes(ByteString value)

Trigger identifier if the build was triggered automatically; empty if not.

string trigger_id = 11;

Parameter
NameDescription
valueByteString

The bytes for triggerId to set.

Returns
TypeDescription
BuildProvenance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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