Class Command (2.21.0)

publicfinalclass CommandextendsGeneratedMessageV3implementsCommandOrBuilder

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

Protobuf type grafeas.v1beta1.provenance.Command

Implements

CommandOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

ARGS_FIELD_NUMBER

publicstaticfinalintARGS_FIELD_NUMBER
Field Value
Type Description
int

DIR_FIELD_NUMBER

publicstaticfinalintDIR_FIELD_NUMBER
Field Value
Type Description
int

ENV_FIELD_NUMBER

publicstaticfinalintENV_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

publicstaticfinalintID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

WAIT_FOR_FIELD_NUMBER

publicstaticfinalintWAIT_FOR_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCommandgetDefaultInstance()
Returns
Type Description
Command

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCommand.BuildernewBuilder()
Returns
Type Description
Command.Builder

newBuilder(Command prototype)

publicstaticCommand.BuildernewBuilder(Commandprototype)
Parameter
Name Description
prototype Command
Returns
Type Description
Command.Builder

parseDelimitedFrom(InputStream input)

publicstaticCommandparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Command
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCommandparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Command
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCommandparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Command
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCommandparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Command
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCommandparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Command
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCommandparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Command
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCommandparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Command
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCommandparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Command
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCommandparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Command
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCommandparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Command
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCommandparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Command
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCommandparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Command
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Command>parser()
Returns
Type Description
Parser<Command>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArgs(int index)

publicStringgetArgs(intindex)

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)

publicByteStringgetArgsBytes(intindex)

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()

publicintgetArgsCount()

Command-line arguments used when executing this command.

repeated string args = 3;

Returns
Type Description
int

The count of args.

getArgsList()

publicProtocolStringListgetArgsList()

Command-line arguments used when executing this command.

repeated string args = 3;

Returns
Type Description
ProtocolStringList

A list containing the args.

getDefaultInstanceForType()

publicCommandgetDefaultInstanceForType()
Returns
Type Description
Command

getDir()

publicStringgetDir()

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

string dir = 4;

Returns
Type Description
String

The dir.

getDirBytes()

publicByteStringgetDirBytes()

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

string dir = 4;

Returns
Type Description
ByteString

The bytes for dir.

getEnv(int index)

publicStringgetEnv(intindex)

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)

publicByteStringgetEnvBytes(intindex)

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()

publicintgetEnvCount()

Environment variables set before running this command.

repeated string env = 2;

Returns
Type Description
int

The count of env.

getEnvList()

publicProtocolStringListgetEnvList()

Environment variables set before running this command.

repeated string env = 2;

Returns
Type Description
ProtocolStringList

A list containing the env.

getId()

publicStringgetId()

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

string id = 5;

Returns
Type Description
String

The id.

getIdBytes()

publicByteStringgetIdBytes()

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

string id = 5;

Returns
Type Description
ByteString

The bytes for id.

getName()

publicStringgetName()

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()

publicByteStringgetNameBytes()

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
ByteString

The bytes for name.

getParserForType()

publicParser<Command>getParserForType()
Returns
Type Description
Parser<Command>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getWaitFor(int index)

publicStringgetWaitFor(intindex)

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)

publicByteStringgetWaitForBytes(intindex)

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()

publicintgetWaitForCount()

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()

publicProtocolStringListgetWaitForList()

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

repeated string wait_for = 6;

Returns
Type Description
ProtocolStringList

A list containing the waitFor.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCommand.BuildernewBuilderForType()
Returns
Type Description
Command.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCommand.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Command.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicCommand.BuildertoBuilder()
Returns
Type Description
Command.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.