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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Command.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Command.Builder>
public Command getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Command build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Command buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Command.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Command.Builder>
public Command.Builder mergeFrom(Command other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Command.Builder>
public Command.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Command.Builder>
IOException
public 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 CommandOrBuilder
public 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 CommandOrBuilder
public 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 CommandOrBuilder
public int getEnvCount()
Environment variables set before running this command.
repeated string env = 2;
getEnvCount
in interface CommandOrBuilder
public String getEnv(int index)
Environment variables set before running this command.
repeated string env = 2;
getEnv
in interface CommandOrBuilder
public ByteString getEnvBytes(int index)
Environment variables set before running this command.
repeated string env = 2;
getEnvBytes
in interface CommandOrBuilder
public 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 CommandOrBuilder
public int getArgsCount()
Command-line arguments used when executing this command.
repeated string args = 3;
getArgsCount
in interface CommandOrBuilder
public String getArgs(int index)
Command-line arguments used when executing this command.
repeated string args = 3;
getArgs
in interface CommandOrBuilder
public ByteString getArgsBytes(int index)
Command-line arguments used when executing this command.
repeated string args = 3;
getArgsBytes
in interface CommandOrBuilder
public 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 CommandOrBuilder
public ByteString getDirBytes()
Working directory (relative to project source root) used when running this command.
string dir = 4;
getDirBytes
in interface CommandOrBuilder
public 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 CommandOrBuilder
public 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 CommandOrBuilder
public 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 CommandOrBuilder
public int getWaitForCount()
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;
getWaitForCount
in interface CommandOrBuilder
public String getWaitFor(int index)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;
getWaitFor
in interface CommandOrBuilder
public ByteString getWaitForBytes(int index)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;
getWaitForBytes
in interface CommandOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Command.Builder>
public final Command.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Command.Builder>
Copyright © 2019 Google LLC. All rights reserved.