public final class Command extends GeneratedMessageV3 implements CommandOrBuilder
Command describes a step performed as part of the build pipeline.
Protobuf type grafeas.v1.Command
Fields
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
Field Value
DIR_FIELD_NUMBER
public static final int DIR_FIELD_NUMBER
Field Value
ENV_FIELD_NUMBER
public static final int ENV_FIELD_NUMBER
Field Value
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
WAIT_FOR_FIELD_NUMBER
public static final int WAIT_FOR_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getArgs(int index)
public String getArgs(int index)
Command-line arguments used when executing this command.
repeated string args = 3;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
int | The count of args.
|
getArgsList()
public ProtocolStringList getArgsList()
Command-line arguments used when executing this command.
repeated string args = 3;
Returns
getDefaultInstance()
public static Command getDefaultInstance()
Returns
getDefaultInstanceForType()
public Command getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDir()
Working directory (relative to project source root) used when running this
command.
string dir = 4;
Returns
getDirBytes()
public ByteString getDirBytes()
Working directory (relative to project source root) used when running this
command.
string dir = 4;
Returns
getEnv(int index)
public String getEnv(int index)
Environment variables set before running this command.
repeated string env = 2;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the env at the given index.
|
getEnvCount()
Environment variables set before running this command.
repeated string env = 2;
Returns
Type | Description |
int | The count of env.
|
getEnvList()
public ProtocolStringList getEnvList()
Environment variables set before running this command.
repeated string env = 2;
Returns
getId()
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
string id = 5;
Returns
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
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
Type | Description |
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
getParserForType()
public Parser<Command> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Command.Builder newBuilder()
Returns
newBuilder(Command prototype)
public static Command.Builder newBuilder(Command prototype)
Parameter
Returns
newBuilderForType()
public Command.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Command.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Command parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Command parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Command parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Command parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Command parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Command parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Command parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Command parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Command parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Command parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Command parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Command parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Command> parser()
Returns
toBuilder()
public Command.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions