Class BuildProvenance.Builder (2.7.0)

Stay organized with collections Save and categorize content based on your preferences.
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