public static final class Command.Builder extends GeneratedMessageV3.Builder<Command.Builder> implements CommandOrBuilder
Command describes a step performed as part of the build pipeline.Protobuf type
grafeas.v1.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(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(ByteString value)
Environment variables set before running this command.
|
Command.Builder |
addRepeatedField(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(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(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()
Required.
|
Command.Builder |
clearOneof(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.
|
ByteString |
getArgsBytes(int index)
Command-line arguments used when executing this command.
|
int |
getArgsCount()
Command-line arguments used when executing this command.
|
ProtocolStringList |
getArgsList()
Command-line arguments used when executing this command.
|
Command |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getDir()
Working directory (relative to project source root) used when running this
command.
|
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.
|
ByteString |
getEnvBytes(int index)
Environment variables set before running this command.
|
int |
getEnvCount()
Environment variables set before running this command.
|
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.
|
ByteString |
getIdBytes()
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
|
String |
getName()
Required.
|
ByteString |
getNameBytes()
Required.
|
String |
getWaitFor(int index)
The ID(s) of the command(s) that this command depends on.
|
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.
|
ProtocolStringList |
getWaitForList()
The ID(s) of the command(s) that this command depends on.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Command.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Command.Builder |
mergeFrom(Command other) |
Command.Builder |
mergeFrom(Message other) |
Command.Builder |
mergeUnknownFields(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(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(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(ByteString value)
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
|
Command.Builder |
setName(String value)
Required.
|
Command.Builder |
setNameBytes(ByteString value)
Required.
|
Command.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Command.Builder |
setUnknownFields(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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Command.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Command.Builder>public Command getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Command build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Command buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Command.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Command.Builder>public Command.Builder mergeFrom(Command other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Command.Builder>public Command.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Command.Builder>IOExceptionpublic String getName()
Required. 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 ByteString getNameBytes()
Required. 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)
Required. 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()
Required. 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(ByteString value)
Required. 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 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 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(ByteString value)
Environment variables set before running this command.
repeated string env = 2;public 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 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(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 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(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 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(ByteString value)
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;public 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 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(ByteString value)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;public final Command.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Command.Builder>public final Command.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Command.Builder>Copyright © 2019 Google LLC. All rights reserved.