/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/provenance.proto package io.grafeas.v1; /** * * *
* Provenance of a build. Contains all information needed to verify the full * details about the build from source to completion. ** * Protobuf type {@code grafeas.v1.BuildProvenance} */ public final class BuildProvenance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.BuildProvenance) BuildProvenanceOrBuilder { private static final long serialVersionUID = 0L; // Use BuildProvenance.newBuilder() to construct. private BuildProvenance(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private BuildProvenance() { id_ = ""; projectId_ = ""; commands_ = java.util.Collections.emptyList(); builtArtifacts_ = java.util.Collections.emptyList(); creator_ = ""; logsUri_ = ""; triggerId_ = ""; builderVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BuildProvenance(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Provenance.internal_static_grafeas_v1_BuildProvenance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 12: return internalGetBuildOptions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Provenance.internal_static_grafeas_v1_BuildProvenance_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.BuildProvenance.class, io.grafeas.v1.BuildProvenance.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
* Required. Unique identifier of the build. ** *
string id = 1;
*
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
*
* * Required. Unique identifier of the build. ** *
string id = 1;
*
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECT_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object projectId_ = "";
/**
*
*
* * ID of the project. ** *
string project_id = 2;
*
* @return The projectId.
*/
@java.lang.Override
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectId_ = s;
return s;
}
}
/**
*
*
* * ID of the project. ** *
string project_id = 2;
*
* @return The bytes for projectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMANDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List* Commands requested by the build. ** *
repeated .grafeas.v1.Command commands = 3;
*/
@java.lang.Override
public java.util.List* Commands requested by the build. ** *
repeated .grafeas.v1.Command commands = 3;
*/
@java.lang.Override
public java.util.List extends io.grafeas.v1.CommandOrBuilder> getCommandsOrBuilderList() {
return commands_;
}
/**
*
*
* * Commands requested by the build. ** *
repeated .grafeas.v1.Command commands = 3;
*/
@java.lang.Override
public int getCommandsCount() {
return commands_.size();
}
/**
*
*
* * Commands requested by the build. ** *
repeated .grafeas.v1.Command commands = 3;
*/
@java.lang.Override
public io.grafeas.v1.Command getCommands(int index) {
return commands_.get(index);
}
/**
*
*
* * Commands requested by the build. ** *
repeated .grafeas.v1.Command commands = 3;
*/
@java.lang.Override
public io.grafeas.v1.CommandOrBuilder getCommandsOrBuilder(int index) {
return commands_.get(index);
}
public static final int BUILT_ARTIFACTS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List* Output of the build. ** *
repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
@java.lang.Override
public java.util.List* Output of the build. ** *
repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
@java.lang.Override
public java.util.List extends io.grafeas.v1.ArtifactOrBuilder>
getBuiltArtifactsOrBuilderList() {
return builtArtifacts_;
}
/**
*
*
* * Output of the build. ** *
repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
@java.lang.Override
public int getBuiltArtifactsCount() {
return builtArtifacts_.size();
}
/**
*
*
* * Output of the build. ** *
repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
@java.lang.Override
public io.grafeas.v1.Artifact getBuiltArtifacts(int index) {
return builtArtifacts_.get(index);
}
/**
*
*
* * Output of the build. ** *
repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
@java.lang.Override
public io.grafeas.v1.ArtifactOrBuilder getBuiltArtifactsOrBuilder(int index) {
return builtArtifacts_.get(index);
}
public static final int CREATE_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
* * Time at which the build was created. ** *
.google.protobuf.Timestamp create_time = 5;
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
/**
*
*
* * Time at which the build was created. ** *
.google.protobuf.Timestamp create_time = 5;
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
* * Time at which the build was created. ** *
.google.protobuf.Timestamp create_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int START_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp startTime_;
/**
*
*
* * Time at which execution of the build was started. ** *
.google.protobuf.Timestamp start_time = 6;
*
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
/**
*
*
* * Time at which execution of the build was started. ** *
.google.protobuf.Timestamp start_time = 6;
*
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
*
* * Time at which execution of the build was started. ** *
.google.protobuf.Timestamp start_time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int END_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp endTime_;
/**
*
*
* * Time at which execution of the build was finished. ** *
.google.protobuf.Timestamp end_time = 7;
*
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return endTime_ != null;
}
/**
*
*
* * Time at which execution of the build was finished. ** *
.google.protobuf.Timestamp end_time = 7;
*
* @return The endTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEndTime() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
/**
*
*
* * Time at which execution of the build was finished. ** *
.google.protobuf.Timestamp end_time = 7;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
public static final int CREATOR_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object creator_ = "";
/**
*
*
* * 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;
*
* @return The creator.
*/
@java.lang.Override
public java.lang.String getCreator() {
java.lang.Object ref = creator_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
creator_ = s;
return s;
}
}
/**
*
*
* * 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;
*
* @return The bytes for creator.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCreatorBytes() {
java.lang.Object ref = creator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
creator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOGS_URI_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object logsUri_ = "";
/**
*
*
* * URI where any logs for this provenance were written. ** *
string logs_uri = 9;
*
* @return The logsUri.
*/
@java.lang.Override
public java.lang.String getLogsUri() {
java.lang.Object ref = logsUri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logsUri_ = s;
return s;
}
}
/**
*
*
* * URI where any logs for this provenance were written. ** *
string logs_uri = 9;
*
* @return The bytes for logsUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLogsUriBytes() {
java.lang.Object ref = logsUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logsUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 10;
private io.grafeas.v1.Source sourceProvenance_;
/**
*
*
* * Details of the Source input to the build. ** *
.grafeas.v1.Source source_provenance = 10;
*
* @return Whether the sourceProvenance field is set.
*/
@java.lang.Override
public boolean hasSourceProvenance() {
return sourceProvenance_ != null;
}
/**
*
*
* * Details of the Source input to the build. ** *
.grafeas.v1.Source source_provenance = 10;
*
* @return The sourceProvenance.
*/
@java.lang.Override
public io.grafeas.v1.Source getSourceProvenance() {
return sourceProvenance_ == null
? io.grafeas.v1.Source.getDefaultInstance()
: sourceProvenance_;
}
/**
*
*
* * Details of the Source input to the build. ** *
.grafeas.v1.Source source_provenance = 10;
*/
@java.lang.Override
public io.grafeas.v1.SourceOrBuilder getSourceProvenanceOrBuilder() {
return sourceProvenance_ == null
? io.grafeas.v1.Source.getDefaultInstance()
: sourceProvenance_;
}
public static final int TRIGGER_ID_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object triggerId_ = "";
/**
*
*
* * Trigger identifier if the build was triggered automatically; empty if not. ** *
string trigger_id = 11;
*
* @return The triggerId.
*/
@java.lang.Override
public java.lang.String getTriggerId() {
java.lang.Object ref = triggerId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
triggerId_ = s;
return s;
}
}
/**
*
*
* * Trigger identifier if the build was triggered automatically; empty if not. ** *
string trigger_id = 11;
*
* @return The bytes for triggerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTriggerIdBytes() {
java.lang.Object ref = triggerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
triggerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUILD_OPTIONS_FIELD_NUMBER = 12;
private static final class BuildOptionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry* 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;
*/
@java.lang.Override
public boolean containsBuildOptions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetBuildOptions().getMap().containsKey(key);
}
/** Use {@link #getBuildOptionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map* 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;
*/
@java.lang.Override
public java.util.Map* 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;
*/
@java.lang.Override
public /* nullable */ java.lang.String getBuildOptionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map* 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;
*/
@java.lang.Override
public java.lang.String getBuildOptionsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map* Version string of the builder at the time this build was executed. ** *
string builder_version = 13;
*
* @return The builderVersion.
*/
@java.lang.Override
public java.lang.String getBuilderVersion() {
java.lang.Object ref = builderVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
builderVersion_ = s;
return s;
}
}
/**
*
*
* * Version string of the builder at the time this build was executed. ** *
string builder_version = 13;
*
* @return The bytes for builderVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBuilderVersionBytes() {
java.lang.Object ref = builderVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
builderVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
}
for (int i = 0; i < commands_.size(); i++) {
output.writeMessage(3, commands_.get(i));
}
for (int i = 0; i < builtArtifacts_.size(); i++) {
output.writeMessage(4, builtArtifacts_.get(i));
}
if (createTime_ != null) {
output.writeMessage(5, getCreateTime());
}
if (startTime_ != null) {
output.writeMessage(6, getStartTime());
}
if (endTime_ != null) {
output.writeMessage(7, getEndTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, creator_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, logsUri_);
}
if (sourceProvenance_ != null) {
output.writeMessage(10, getSourceProvenance());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, triggerId_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetBuildOptions(), BuildOptionsDefaultEntryHolder.defaultEntry, 12);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builderVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, builderVersion_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
}
for (int i = 0; i < commands_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, commands_.get(i));
}
for (int i = 0; i < builtArtifacts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, builtArtifacts_.get(i));
}
if (createTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
}
if (startTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartTime());
}
if (endTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, creator_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, logsUri_);
}
if (sourceProvenance_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSourceProvenance());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, triggerId_);
}
for (java.util.Map.Entry* Provenance of a build. Contains all information needed to verify the full * details about the build from source to completion. ** * Protobuf type {@code grafeas.v1.BuildProvenance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* Required. Unique identifier of the build.
*
*
* string id = 1;
*
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. Unique identifier of the build.
*
*
* string id = 1;
*
* @return The bytes for id.
*/
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. Unique identifier of the build.
*
*
* string id = 1;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. Unique identifier of the build.
*
*
* string id = 1;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Required. Unique identifier of the build.
*
*
* string id = 1;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object projectId_ = "";
/**
*
*
*
* ID of the project.
*
*
* string project_id = 2;
*
* @return The projectId.
*/
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 2;
*
* @return The bytes for projectId.
*/
public com.google.protobuf.ByteString getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 2;
*
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
projectId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 2;
*
* @return This builder for chaining.
*/
public Builder clearProjectId() {
projectId_ = getDefaultInstance().getProjectId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 2;
*
* @param value The bytes for projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
projectId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public java.util.List
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public int getCommandsCount() {
if (commandsBuilder_ == null) {
return commands_.size();
} else {
return commandsBuilder_.getCount();
}
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public io.grafeas.v1.Command getCommands(int index) {
if (commandsBuilder_ == null) {
return commands_.get(index);
} else {
return commandsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder setCommands(int index, io.grafeas.v1.Command value) {
if (commandsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandsIsMutable();
commands_.set(index, value);
onChanged();
} else {
commandsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder setCommands(int index, io.grafeas.v1.Command.Builder builderForValue) {
if (commandsBuilder_ == null) {
ensureCommandsIsMutable();
commands_.set(index, builderForValue.build());
onChanged();
} else {
commandsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder addCommands(io.grafeas.v1.Command value) {
if (commandsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandsIsMutable();
commands_.add(value);
onChanged();
} else {
commandsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder addCommands(int index, io.grafeas.v1.Command value) {
if (commandsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandsIsMutable();
commands_.add(index, value);
onChanged();
} else {
commandsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder addCommands(io.grafeas.v1.Command.Builder builderForValue) {
if (commandsBuilder_ == null) {
ensureCommandsIsMutable();
commands_.add(builderForValue.build());
onChanged();
} else {
commandsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder addCommands(int index, io.grafeas.v1.Command.Builder builderForValue) {
if (commandsBuilder_ == null) {
ensureCommandsIsMutable();
commands_.add(index, builderForValue.build());
onChanged();
} else {
commandsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder addAllCommands(java.lang.Iterable extends io.grafeas.v1.Command> values) {
if (commandsBuilder_ == null) {
ensureCommandsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commands_);
onChanged();
} else {
commandsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder clearCommands() {
if (commandsBuilder_ == null) {
commands_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
commandsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public Builder removeCommands(int index) {
if (commandsBuilder_ == null) {
ensureCommandsIsMutable();
commands_.remove(index);
onChanged();
} else {
commandsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public io.grafeas.v1.Command.Builder getCommandsBuilder(int index) {
return getCommandsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public io.grafeas.v1.CommandOrBuilder getCommandsOrBuilder(int index) {
if (commandsBuilder_ == null) {
return commands_.get(index);
} else {
return commandsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public java.util.List extends io.grafeas.v1.CommandOrBuilder> getCommandsOrBuilderList() {
if (commandsBuilder_ != null) {
return commandsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(commands_);
}
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public io.grafeas.v1.Command.Builder addCommandsBuilder() {
return getCommandsFieldBuilder().addBuilder(io.grafeas.v1.Command.getDefaultInstance());
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public io.grafeas.v1.Command.Builder addCommandsBuilder(int index) {
return getCommandsFieldBuilder()
.addBuilder(index, io.grafeas.v1.Command.getDefaultInstance());
}
/**
*
*
*
* Commands requested by the build.
*
*
* repeated .grafeas.v1.Command commands = 3;
*/
public java.util.List
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public java.util.List
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public int getBuiltArtifactsCount() {
if (builtArtifactsBuilder_ == null) {
return builtArtifacts_.size();
} else {
return builtArtifactsBuilder_.getCount();
}
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public io.grafeas.v1.Artifact getBuiltArtifacts(int index) {
if (builtArtifactsBuilder_ == null) {
return builtArtifacts_.get(index);
} else {
return builtArtifactsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder setBuiltArtifacts(int index, io.grafeas.v1.Artifact value) {
if (builtArtifactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBuiltArtifactsIsMutable();
builtArtifacts_.set(index, value);
onChanged();
} else {
builtArtifactsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder setBuiltArtifacts(int index, io.grafeas.v1.Artifact.Builder builderForValue) {
if (builtArtifactsBuilder_ == null) {
ensureBuiltArtifactsIsMutable();
builtArtifacts_.set(index, builderForValue.build());
onChanged();
} else {
builtArtifactsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder addBuiltArtifacts(io.grafeas.v1.Artifact value) {
if (builtArtifactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBuiltArtifactsIsMutable();
builtArtifacts_.add(value);
onChanged();
} else {
builtArtifactsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder addBuiltArtifacts(int index, io.grafeas.v1.Artifact value) {
if (builtArtifactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBuiltArtifactsIsMutable();
builtArtifacts_.add(index, value);
onChanged();
} else {
builtArtifactsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder addBuiltArtifacts(io.grafeas.v1.Artifact.Builder builderForValue) {
if (builtArtifactsBuilder_ == null) {
ensureBuiltArtifactsIsMutable();
builtArtifacts_.add(builderForValue.build());
onChanged();
} else {
builtArtifactsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder addBuiltArtifacts(int index, io.grafeas.v1.Artifact.Builder builderForValue) {
if (builtArtifactsBuilder_ == null) {
ensureBuiltArtifactsIsMutable();
builtArtifacts_.add(index, builderForValue.build());
onChanged();
} else {
builtArtifactsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder addAllBuiltArtifacts(
java.lang.Iterable extends io.grafeas.v1.Artifact> values) {
if (builtArtifactsBuilder_ == null) {
ensureBuiltArtifactsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, builtArtifacts_);
onChanged();
} else {
builtArtifactsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder clearBuiltArtifacts() {
if (builtArtifactsBuilder_ == null) {
builtArtifacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
builtArtifactsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public Builder removeBuiltArtifacts(int index) {
if (builtArtifactsBuilder_ == null) {
ensureBuiltArtifactsIsMutable();
builtArtifacts_.remove(index);
onChanged();
} else {
builtArtifactsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public io.grafeas.v1.Artifact.Builder getBuiltArtifactsBuilder(int index) {
return getBuiltArtifactsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public io.grafeas.v1.ArtifactOrBuilder getBuiltArtifactsOrBuilder(int index) {
if (builtArtifactsBuilder_ == null) {
return builtArtifacts_.get(index);
} else {
return builtArtifactsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public java.util.List extends io.grafeas.v1.ArtifactOrBuilder>
getBuiltArtifactsOrBuilderList() {
if (builtArtifactsBuilder_ != null) {
return builtArtifactsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(builtArtifacts_);
}
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public io.grafeas.v1.Artifact.Builder addBuiltArtifactsBuilder() {
return getBuiltArtifactsFieldBuilder()
.addBuilder(io.grafeas.v1.Artifact.getDefaultInstance());
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public io.grafeas.v1.Artifact.Builder addBuiltArtifactsBuilder(int index) {
return getBuiltArtifactsFieldBuilder()
.addBuilder(index, io.grafeas.v1.Artifact.getDefaultInstance());
}
/**
*
*
*
* Output of the build.
*
*
* repeated .grafeas.v1.Artifact built_artifacts = 4;
*/
public java.util.List
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000010);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Time at which the build was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
startTimeBuilder_;
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*/
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000020);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getStartTime(), getParentForChildren(), isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
private com.google.protobuf.Timestamp endTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
endTimeBuilder_;
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*
* @return The endTime.
*/
public com.google.protobuf.Timestamp getEndTime() {
if (endTimeBuilder_ == null) {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
} else {
return endTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
} else {
endTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*/
public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (endTimeBuilder_ == null) {
endTime_ = builderForValue.build();
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& endTime_ != null
&& endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEndTimeBuilder().mergeFrom(value);
} else {
endTime_ = value;
}
} else {
endTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000040);
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
if (endTimeBuilder_ != null) {
return endTimeBuilder_.getMessageOrBuilder();
} else {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
}
/**
*
*
*
* Time at which execution of the build was finished.
*
*
* .google.protobuf.Timestamp end_time = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder() {
if (endTimeBuilder_ == null) {
endTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getEndTime(), getParentForChildren(), isClean());
endTime_ = null;
}
return endTimeBuilder_;
}
private java.lang.Object creator_ = "";
/**
*
*
*
* 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;
*
* @return The creator.
*/
public java.lang.String getCreator() {
java.lang.Object ref = creator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
creator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* 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;
*
* @return The bytes for creator.
*/
public com.google.protobuf.ByteString getCreatorBytes() {
java.lang.Object ref = creator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
creator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* 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;
*
* @param value The creator to set.
* @return This builder for chaining.
*/
public Builder setCreator(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
creator_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @return This builder for chaining.
*/
public Builder clearCreator() {
creator_ = getDefaultInstance().getCreator();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @param value The bytes for creator to set.
* @return This builder for chaining.
*/
public Builder setCreatorBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
creator_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object logsUri_ = "";
/**
*
*
*
* URI where any logs for this provenance were written.
*
*
* string logs_uri = 9;
*
* @return The logsUri.
*/
public java.lang.String getLogsUri() {
java.lang.Object ref = logsUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logsUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* URI where any logs for this provenance were written.
*
*
* string logs_uri = 9;
*
* @return The bytes for logsUri.
*/
public com.google.protobuf.ByteString getLogsUriBytes() {
java.lang.Object ref = logsUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logsUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* URI where any logs for this provenance were written.
*
*
* string logs_uri = 9;
*
* @param value The logsUri to set.
* @return This builder for chaining.
*/
public Builder setLogsUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logsUri_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* URI where any logs for this provenance were written.
*
*
* string logs_uri = 9;
*
* @return This builder for chaining.
*/
public Builder clearLogsUri() {
logsUri_ = getDefaultInstance().getLogsUri();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*
*
* URI where any logs for this provenance were written.
*
*
* string logs_uri = 9;
*
* @param value The bytes for logsUri to set.
* @return This builder for chaining.
*/
public Builder setLogsUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logsUri_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private io.grafeas.v1.Source sourceProvenance_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.Source, io.grafeas.v1.Source.Builder, io.grafeas.v1.SourceOrBuilder>
sourceProvenanceBuilder_;
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*
* @return Whether the sourceProvenance field is set.
*/
public boolean hasSourceProvenance() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*
* @return The sourceProvenance.
*/
public io.grafeas.v1.Source getSourceProvenance() {
if (sourceProvenanceBuilder_ == null) {
return sourceProvenance_ == null
? io.grafeas.v1.Source.getDefaultInstance()
: sourceProvenance_;
} else {
return sourceProvenanceBuilder_.getMessage();
}
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*/
public Builder setSourceProvenance(io.grafeas.v1.Source value) {
if (sourceProvenanceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sourceProvenance_ = value;
} else {
sourceProvenanceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*/
public Builder setSourceProvenance(io.grafeas.v1.Source.Builder builderForValue) {
if (sourceProvenanceBuilder_ == null) {
sourceProvenance_ = builderForValue.build();
} else {
sourceProvenanceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*/
public Builder mergeSourceProvenance(io.grafeas.v1.Source value) {
if (sourceProvenanceBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)
&& sourceProvenance_ != null
&& sourceProvenance_ != io.grafeas.v1.Source.getDefaultInstance()) {
getSourceProvenanceBuilder().mergeFrom(value);
} else {
sourceProvenance_ = value;
}
} else {
sourceProvenanceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*/
public Builder clearSourceProvenance() {
bitField0_ = (bitField0_ & ~0x00000200);
sourceProvenance_ = null;
if (sourceProvenanceBuilder_ != null) {
sourceProvenanceBuilder_.dispose();
sourceProvenanceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*/
public io.grafeas.v1.Source.Builder getSourceProvenanceBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getSourceProvenanceFieldBuilder().getBuilder();
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*/
public io.grafeas.v1.SourceOrBuilder getSourceProvenanceOrBuilder() {
if (sourceProvenanceBuilder_ != null) {
return sourceProvenanceBuilder_.getMessageOrBuilder();
} else {
return sourceProvenance_ == null
? io.grafeas.v1.Source.getDefaultInstance()
: sourceProvenance_;
}
}
/**
*
*
*
* Details of the Source input to the build.
*
*
* .grafeas.v1.Source source_provenance = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.Source, io.grafeas.v1.Source.Builder, io.grafeas.v1.SourceOrBuilder>
getSourceProvenanceFieldBuilder() {
if (sourceProvenanceBuilder_ == null) {
sourceProvenanceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.Source, io.grafeas.v1.Source.Builder, io.grafeas.v1.SourceOrBuilder>(
getSourceProvenance(), getParentForChildren(), isClean());
sourceProvenance_ = null;
}
return sourceProvenanceBuilder_;
}
private java.lang.Object triggerId_ = "";
/**
*
*
*
* Trigger identifier if the build was triggered automatically; empty if not.
*
*
* string trigger_id = 11;
*
* @return The triggerId.
*/
public java.lang.String getTriggerId() {
java.lang.Object ref = triggerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
triggerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Trigger identifier if the build was triggered automatically; empty if not.
*
*
* string trigger_id = 11;
*
* @return The bytes for triggerId.
*/
public com.google.protobuf.ByteString getTriggerIdBytes() {
java.lang.Object ref = triggerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
triggerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Trigger identifier if the build was triggered automatically; empty if not.
*
*
* string trigger_id = 11;
*
* @param value The triggerId to set.
* @return This builder for chaining.
*/
public Builder setTriggerId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
triggerId_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Trigger identifier if the build was triggered automatically; empty if not.
*
*
* string trigger_id = 11;
*
* @return This builder for chaining.
*/
public Builder clearTriggerId() {
triggerId_ = getDefaultInstance().getTriggerId();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*
*
* Trigger identifier if the build was triggered automatically; empty if not.
*
*
* string trigger_id = 11;
*
* @param value The bytes for triggerId to set.
* @return This builder for chaining.
*/
public Builder setTriggerIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
triggerId_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private com.google.protobuf.MapField
* 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;
*/
@java.lang.Override
public boolean containsBuildOptions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetBuildOptions().getMap().containsKey(key);
}
/** Use {@link #getBuildOptionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
* 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;
*/
@java.lang.Override
public java.util.Map
* 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;
*/
@java.lang.Override
public /* nullable */ java.lang.String getBuildOptionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map
* 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;
*/
@java.lang.Override
public java.lang.String getBuildOptionsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map
* 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;
*/
public Builder removeBuildOptions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableBuildOptions().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map
* 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;
*/
public Builder putBuildOptions(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableBuildOptions().getMutableMap().put(key, value);
bitField0_ |= 0x00000800;
return this;
}
/**
*
*
*
* 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;
*/
public Builder putAllBuildOptions(java.util.Map
* Version string of the builder at the time this build was executed.
*
*
* string builder_version = 13;
*
* @return The builderVersion.
*/
public java.lang.String getBuilderVersion() {
java.lang.Object ref = builderVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
builderVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Version string of the builder at the time this build was executed.
*
*
* string builder_version = 13;
*
* @return The bytes for builderVersion.
*/
public com.google.protobuf.ByteString getBuilderVersionBytes() {
java.lang.Object ref = builderVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
builderVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Version string of the builder at the time this build was executed.
*
*
* string builder_version = 13;
*
* @param value The builderVersion to set.
* @return This builder for chaining.
*/
public Builder setBuilderVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
builderVersion_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* Version string of the builder at the time this build was executed.
*
*
* string builder_version = 13;
*
* @return This builder for chaining.
*/
public Builder clearBuilderVersion() {
builderVersion_ = getDefaultInstance().getBuilderVersion();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
*
*
* Version string of the builder at the time this build was executed.
*
*
* string builder_version = 13;
*
* @param value The bytes for builderVersion to set.
* @return This builder for chaining.
*/
public Builder setBuilderVersionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
builderVersion_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grafeas.v1.BuildProvenance)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.BuildProvenance)
private static final io.grafeas.v1.BuildProvenance DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.BuildProvenance();
}
public static io.grafeas.v1.BuildProvenance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser