public static final class Command.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder> implements CommandOrBuilder
Command describes a step performed as part of the build pipeline.Protobuf type
grafeas.v1beta1.provenance.Command| Modifier and Type | Method and Description |
|---|---|
Command.Builder |
addAllArgs(Iterable<String> values)
Command-line arguments used when executing this command.
|
Command.Builder |
addAllEnv(Iterable<String> values)
Environment variables set before running this command.
|
Command.Builder |
addAllWaitFor(Iterable<String> values)
The ID(s) of the command(s) that this command depends on.
|
Command.Builder |
addArgs(String value)
Command-line arguments used when executing this command.
|
Command.Builder |
addArgsBytes(com.google.protobuf.ByteString value)
Command-line arguments used when executing this command.
|
Command.Builder |
addEnv(String value)
Environment variables set before running this command.
|
Command.Builder |
addEnvBytes(com.google.protobuf.ByteString value)
Environment variables set before running this command.
|
Command.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Command.Builder |
addWaitFor(String value)
The ID(s) of the command(s) that this command depends on.
|
Command.Builder |
addWaitForBytes(com.google.protobuf.ByteString value)
The ID(s) of the command(s) that this command depends on.
|
Command |
build() |
Command |
buildPartial() |
Command.Builder |
clear() |
Command.Builder |
clearArgs()
Command-line arguments used when executing this command.
|
Command.Builder |
clearDir()
Working directory (relative to project source root) used when running this
command.
|
Command.Builder |
clearEnv()
Environment variables set before running this command.
|
Command.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Command.Builder |
clearId()
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
|
Command.Builder |
clearName()
Name of the command, as presented on the command line, or if the command is
packaged as a Docker container, as presented to `docker pull`.
|
Command.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Command.Builder |
clearWaitFor()
The ID(s) of the command(s) that this command depends on.
|
Command.Builder |
clone() |
String |
getArgs(int index)
Command-line arguments used when executing this command.
|
com.google.protobuf.ByteString |
getArgsBytes(int index)
Command-line arguments used when executing this command.
|
int |
getArgsCount()
Command-line arguments used when executing this command.
|
com.google.protobuf.ProtocolStringList |
getArgsList()
Command-line arguments used when executing this command.
|
Command |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDir()
Working directory (relative to project source root) used when running this
command.
|
com.google.protobuf.ByteString |
getDirBytes()
Working directory (relative to project source root) used when running this
command.
|
String |
getEnv(int index)
Environment variables set before running this command.
|
com.google.protobuf.ByteString |
getEnvBytes(int index)
Environment variables set before running this command.
|
int |
getEnvCount()
Environment variables set before running this command.
|
com.google.protobuf.ProtocolStringList |
getEnvList()
Environment variables set before running this command.
|
String |
getId()
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
|
com.google.protobuf.ByteString |
getIdBytes()
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
|
String |
getName()
Name of the command, as presented on the command line, or if the command is
packaged as a Docker container, as presented to `docker pull`.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the command, as presented on the command line, or if the command is
packaged as a Docker container, as presented to `docker pull`.
|
String |
getWaitFor(int index)
The ID(s) of the command(s) that this command depends on.
|
com.google.protobuf.ByteString |
getWaitForBytes(int index)
The ID(s) of the command(s) that this command depends on.
|
int |
getWaitForCount()
The ID(s) of the command(s) that this command depends on.
|
com.google.protobuf.ProtocolStringList |
getWaitForList()
The ID(s) of the command(s) that this command depends on.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Command.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Command.Builder |
mergeFrom(Command other) |
Command.Builder |
mergeFrom(com.google.protobuf.Message other) |
Command.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Command.Builder |
setArgs(int index,
String value)
Command-line arguments used when executing this command.
|
Command.Builder |
setDir(String value)
Working directory (relative to project source root) used when running this
command.
|
Command.Builder |
setDirBytes(com.google.protobuf.ByteString value)
Working directory (relative to project source root) used when running this
command.
|
Command.Builder |
setEnv(int index,
String value)
Environment variables set before running this command.
|
Command.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Command.Builder |
setId(String value)
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
|
Command.Builder |
setIdBytes(com.google.protobuf.ByteString value)
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
|
Command.Builder |
setName(String value)
Name of the command, as presented on the command line, or if the command is
packaged as a Docker container, as presented to `docker pull`.
|
Command.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the command, as presented on the command line, or if the command is
packaged as a Docker container, as presented to `docker pull`.
|
Command.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Command.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Command.Builder |
setWaitFor(int index,
String value)
The ID(s) of the command(s) that this command depends on.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Command build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Command buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Command.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Command.Builder>public Command.Builder mergeFrom(Command other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public Command.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Command.Builder>IOExceptionpublic String getName()
Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
string name = 1;getName in interface CommandOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
string name = 1;getNameBytes in interface CommandOrBuilderpublic Command.Builder setName(String value)
Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
string name = 1;public Command.Builder clearName()
Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
string name = 1;public Command.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
string name = 1;public com.google.protobuf.ProtocolStringList getEnvList()
Environment variables set before running this command.
repeated string env = 2;getEnvList in interface CommandOrBuilderpublic int getEnvCount()
Environment variables set before running this command.
repeated string env = 2;getEnvCount in interface CommandOrBuilderpublic String getEnv(int index)
Environment variables set before running this command.
repeated string env = 2;getEnv in interface CommandOrBuilderpublic com.google.protobuf.ByteString getEnvBytes(int index)
Environment variables set before running this command.
repeated string env = 2;getEnvBytes in interface CommandOrBuilderpublic Command.Builder setEnv(int index, String value)
Environment variables set before running this command.
repeated string env = 2;public Command.Builder addEnv(String value)
Environment variables set before running this command.
repeated string env = 2;public Command.Builder addAllEnv(Iterable<String> values)
Environment variables set before running this command.
repeated string env = 2;public Command.Builder clearEnv()
Environment variables set before running this command.
repeated string env = 2;public Command.Builder addEnvBytes(com.google.protobuf.ByteString value)
Environment variables set before running this command.
repeated string env = 2;public com.google.protobuf.ProtocolStringList getArgsList()
Command-line arguments used when executing this command.
repeated string args = 3;getArgsList in interface CommandOrBuilderpublic int getArgsCount()
Command-line arguments used when executing this command.
repeated string args = 3;getArgsCount in interface CommandOrBuilderpublic String getArgs(int index)
Command-line arguments used when executing this command.
repeated string args = 3;getArgs in interface CommandOrBuilderpublic com.google.protobuf.ByteString getArgsBytes(int index)
Command-line arguments used when executing this command.
repeated string args = 3;getArgsBytes in interface CommandOrBuilderpublic Command.Builder setArgs(int index, String value)
Command-line arguments used when executing this command.
repeated string args = 3;public Command.Builder addArgs(String value)
Command-line arguments used when executing this command.
repeated string args = 3;public Command.Builder addAllArgs(Iterable<String> values)
Command-line arguments used when executing this command.
repeated string args = 3;public Command.Builder clearArgs()
Command-line arguments used when executing this command.
repeated string args = 3;public Command.Builder addArgsBytes(com.google.protobuf.ByteString value)
Command-line arguments used when executing this command.
repeated string args = 3;public String getDir()
Working directory (relative to project source root) used when running this command.
string dir = 4;getDir in interface CommandOrBuilderpublic com.google.protobuf.ByteString getDirBytes()
Working directory (relative to project source root) used when running this command.
string dir = 4;getDirBytes in interface CommandOrBuilderpublic Command.Builder setDir(String value)
Working directory (relative to project source root) used when running this command.
string dir = 4;public Command.Builder clearDir()
Working directory (relative to project source root) used when running this command.
string dir = 4;public Command.Builder setDirBytes(com.google.protobuf.ByteString value)
Working directory (relative to project source root) used when running this command.
string dir = 4;public String getId()
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;getId in interface CommandOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;getIdBytes in interface CommandOrBuilderpublic Command.Builder setId(String value)
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;public Command.Builder clearId()
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;public Command.Builder setIdBytes(com.google.protobuf.ByteString value)
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;public com.google.protobuf.ProtocolStringList getWaitForList()
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;getWaitForList in interface CommandOrBuilderpublic int getWaitForCount()
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;getWaitForCount in interface CommandOrBuilderpublic String getWaitFor(int index)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;getWaitFor in interface CommandOrBuilderpublic com.google.protobuf.ByteString getWaitForBytes(int index)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;getWaitForBytes in interface CommandOrBuilderpublic Command.Builder setWaitFor(int index, String value)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;public Command.Builder addWaitFor(String value)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;public Command.Builder addAllWaitFor(Iterable<String> values)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;public Command.Builder clearWaitFor()
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;public Command.Builder addWaitForBytes(com.google.protobuf.ByteString value)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;public final Command.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>public final Command.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>Copyright © 2019 Google LLC. All rights reserved.