Class Command (2.6.0)

public final class Command extends GeneratedMessageV3 implements CommandOrBuilder

Command describes a step performed as part of the build pipeline.

Protobuf type grafeas.v1.Command

Implements

CommandOrBuilder

Static Fields

ARGS_FIELD_NUMBER

public static final int ARGS_FIELD_NUMBER
Field Value
TypeDescription
int

DIR_FIELD_NUMBER

public static final int DIR_FIELD_NUMBER
Field Value
TypeDescription
int

ENV_FIELD_NUMBER

public static final int ENV_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

WAIT_FOR_FIELD_NUMBER

public static final int WAIT_FOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Command getDefaultInstance()
Returns
TypeDescription
Command

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Command.Builder newBuilder()
Returns
TypeDescription
Command.Builder

newBuilder(Command prototype)

public static Command.Builder newBuilder(Command prototype)
Parameter
NameDescription
prototypeCommand
Returns
TypeDescription
Command.Builder

parseDelimitedFrom(InputStream input)

public static Command parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Command
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Command parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Command
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Command parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Command
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Command parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Command
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Command parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Command
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Command parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Command
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Command parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Command
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Command parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Command
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Command parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Command
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Command parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Command
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Command parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Command
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Command parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Command
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Command> parser()
Returns
TypeDescription
Parser<Command>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getArgs(int index)

public String getArgs(int index)

Command-line arguments used when executing this command.

repeated string args = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The args at the given index.

getArgsBytes(int index)

public ByteString getArgsBytes(int index)

Command-line arguments used when executing this command.

repeated string args = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the args at the given index.

getArgsCount()

public int getArgsCount()

Command-line arguments used when executing this command.

repeated string args = 3;

Returns
TypeDescription
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Command-line arguments used when executing this command.

repeated string args = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the args.

getDefaultInstanceForType()

public Command getDefaultInstanceForType()
Returns
TypeDescription
Command

getDir()

public String getDir()

Working directory (relative to project source root) used when running this command.

string dir = 4;

Returns
TypeDescription
String

The dir.

getDirBytes()

public ByteString getDirBytes()

Working directory (relative to project source root) used when running this command.

string dir = 4;

Returns
TypeDescription
ByteString

The bytes for dir.

getEnv(int index)

public String getEnv(int index)

Environment variables set before running this command.

repeated string env = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The env at the given index.

getEnvBytes(int index)

public ByteString getEnvBytes(int index)

Environment variables set before running this command.

repeated string env = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the env at the given index.

getEnvCount()

public int getEnvCount()

Environment variables set before running this command.

repeated string env = 2;

Returns
TypeDescription
int

The count of env.

getEnvList()

public ProtocolStringList getEnvList()

Environment variables set before running this command.

repeated string env = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the env.

getId()

public String getId()

Optional unique identifier for this command, used in wait_for to reference this command as a dependency.

string id = 5;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Optional unique identifier for this command, used in wait_for to reference this command as a dependency.

string id = 5;

Returns
TypeDescription
ByteString

The bytes for id.

getName()

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;

Returns
TypeDescription
String

The name.

getNameBytes()

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;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Command> getParserForType()
Returns
TypeDescription
Parser<Command>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWaitFor(int index)

public String getWaitFor(int index)

The ID(s) of the command(s) that this command depends on.

repeated string wait_for = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The waitFor at the given index.

getWaitForBytes(int index)

public ByteString getWaitForBytes(int index)

The ID(s) of the command(s) that this command depends on.

repeated string wait_for = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the waitFor at the given index.

getWaitForCount()

public int getWaitForCount()

The ID(s) of the command(s) that this command depends on.

repeated string wait_for = 6;

Returns
TypeDescription
int

The count of waitFor.

getWaitForList()

public ProtocolStringList getWaitForList()

The ID(s) of the command(s) that this command depends on.

repeated string wait_for = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the waitFor.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Command.Builder newBuilderForType()
Returns
TypeDescription
Command.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Command.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Command.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Command.Builder toBuilder()
Returns
TypeDescription
Command.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException