# Interface BuildProvenanceOrBuilder (2.94.0)

2.94.0 (latest) 2.92.0 2.89.0 2.88.0 2.86.0 2.84.0 2.83.0 2.82.0 2.81.0 2.79.0 2.77.0 2.76.0 2.75.0 2.74.0 2.73.0 2.71.0 2.69.0 2.68.0 2.65.0 2.64.0 2.63.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.53.0 2.52.0 2.50.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.10 2.3.1 2.2.16

    public interface BuildProvenanceOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsBuildOptions(String key)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getBuildOptions() (deprecated)

    public abstract Map<String,String> getBuildOptions()

Use [#getBuildOptionsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.BuildProvenanceOrBuilder#io_grafeas_v1beta1_provenance_BuildProvenanceOrBuilder_getBuildOptionsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getBuildOptionsCount()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getBuildOptionsMap()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getBuildOptionsOrDefault(String key, String defaultValue)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getBuildOptionsOrThrow(String key)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getBuilderVersion()

    public abstract String getBuilderVersion()

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

`string builder_version = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The builderVersion. |

### getBuilderVersionBytes()

    public abstract ByteString getBuilderVersionBytes()

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

`string builder_version = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for builderVersion. |

### getBuiltArtifacts(int index)

    public abstract Artifact getBuiltArtifacts(int index)

Output of the build.

`repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.Artifact` |   |

### getBuiltArtifactsCount()

    public abstract int getBuiltArtifactsCount()

Output of the build.

`repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getBuiltArtifactsList()

    public abstract List<Artifact> getBuiltArtifactsList()

Output of the build.

`repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.Artifact>` |   |

### getBuiltArtifactsOrBuilder(int index)

    public abstract ArtifactOrBuilder getBuiltArtifactsOrBuilder(int index)

Output of the build.

`repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.ArtifactOrBuilder` |   |

### getBuiltArtifactsOrBuilderList()

    public abstract List<? extends ArtifactOrBuilder> getBuiltArtifactsOrBuilderList()

Output of the build.

`repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends io.grafeas.v1beta1.provenance.ArtifactOrBuilder>` |   |

### getCommands(int index)

    public abstract Command getCommands(int index)

Commands requested by the build.

`repeated .grafeas.v1beta1.provenance.Command commands = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.Command` |   |

### getCommandsCount()

    public abstract int getCommandsCount()

Commands requested by the build.

`repeated .grafeas.v1beta1.provenance.Command commands = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCommandsList()

    public abstract List<Command> getCommandsList()

Commands requested by the build.

`repeated .grafeas.v1beta1.provenance.Command commands = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.Command>` |   |

### getCommandsOrBuilder(int index)

    public abstract CommandOrBuilder getCommandsOrBuilder(int index)

Commands requested by the build.

`repeated .grafeas.v1beta1.provenance.Command commands = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.CommandOrBuilder` |   |

### getCommandsOrBuilderList()

    public abstract List<? extends CommandOrBuilder> getCommandsOrBuilderList()

Commands requested by the build.

`repeated .grafeas.v1beta1.provenance.Command commands = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends io.grafeas.v1beta1.provenance.CommandOrBuilder>` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Time at which the build was created.

`.google.protobuf.Timestamp create_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Time at which the build was created.

`.google.protobuf.Timestamp create_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getCreator()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The creator. |

### getCreatorBytes()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for creator. |

### getEndTime()

    public abstract Timestamp getEndTime()

Time at which execution of the build was finished.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The endTime. |

### getEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEndTimeOrBuilder()

Time at which execution of the build was finished.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getId()

    public abstract String getId()

Required. Unique identifier of the build.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

Required. Unique identifier of the build.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getLogsUri()

    public abstract String getLogsUri()

URI where any logs for this provenance were written.

`string logs_uri = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The logsUri. |

### getLogsUriBytes()

    public abstract ByteString getLogsUriBytes()

URI where any logs for this provenance were written.

`string logs_uri = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for logsUri. |

### getProjectId()

    public abstract String getProjectId()

ID of the project.

`string project_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The projectId. |

### getProjectIdBytes()

    public abstract ByteString getProjectIdBytes()

ID of the project.

`string project_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for projectId. |

### getSourceProvenance()

    public abstract Source getSourceProvenance()

Details of the Source input to the build.

`.grafeas.v1beta1.provenance.Source source_provenance = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.Source` | The sourceProvenance. |

### getSourceProvenanceOrBuilder()

    public abstract SourceOrBuilder getSourceProvenanceOrBuilder()

Details of the Source input to the build.

`.grafeas.v1beta1.provenance.Source source_provenance = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/io.grafeas.v1beta1.provenance.SourceOrBuilder` |   |

### getStartTime()

    public abstract Timestamp getStartTime()

Time at which execution of the build was started.

`.google.protobuf.Timestamp start_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The startTime. |

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

Time at which execution of the build was started.

`.google.protobuf.Timestamp start_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getTriggerId()

    public abstract String getTriggerId()

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

`string trigger_id = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The triggerId. |

### getTriggerIdBytes()

    public abstract ByteString getTriggerIdBytes()

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

`string trigger_id = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for triggerId. |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Time at which the build was created.

`.google.protobuf.Timestamp create_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasEndTime()

    public abstract boolean hasEndTime()

Time at which execution of the build was finished.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the endTime field is set. |

### hasSourceProvenance()

    public abstract boolean hasSourceProvenance()

Details of the Source input to the build.

`.grafeas.v1beta1.provenance.Source source_provenance = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the sourceProvenance field is set. |

### hasStartTime()

    public abstract boolean hasStartTime()

Time at which execution of the build was started.

`.google.protobuf.Timestamp start_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTime field is set. |