Class Command (2.47.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
Type
Description
int

DIR_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DIR_FIELD_NUMBER 
 
Field Value
Type
Description
int

ENV_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ENV_FIELD_NUMBER 
 
Field Value
Type
Description
int

ID_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ID_FIELD_NUMBER 
 
Field Value
Type
Description
int

NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

WAIT_FOR_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 WAIT_FOR_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Command 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 Command 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Command prototype)

  public 
  
 static 
  
 Command 
 . 
 Builder 
  
 newBuilder 
 ( 
 Command 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Command 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Command 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Command 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Command> 
  
 parser 
 () 
 
Returns
Type
Description

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
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

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

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
Type
Description

A list containing the args.

getDefaultInstanceForType()

  public 
  
 Command 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDir()

  public 
  
 String 
  
 getDir 
 () 
 

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

string dir = 4;

Returns
Type
Description

The dir.

getDirBytes()

  public 
  
 ByteString 
  
 getDirBytes 
 () 
 

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

string dir = 4;

Returns
Type
Description

The bytes for dir.

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

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

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
Type
Description
int

The count of env.

getEnvList()

  public 
  
 ProtocolStringList 
  
 getEnvList 
 () 
 

Environment variables set before running this command.

repeated string env = 2;

Returns
Type
Description

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
Type
Description

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
Type
Description

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
Type
Description

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
Type
Description

The bytes for name.

getParserForType()

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

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
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

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

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
Type
Description

A list containing the waitFor.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Command 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Command 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Command 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: