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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Command.BuilderImplements
CommandOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllArgs(Iterable<String> values)
public Command.Builder addAllArgs(Iterable<String> values)
Command-line arguments used when executing this command.
repeated string args = 3;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The args to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addAllEnv(Iterable<String> values)
public Command.Builder addAllEnv(Iterable<String> values)
Environment variables set before running this command.
repeated string env = 2;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The env to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addAllWaitFor(Iterable<String> values)
public Command.Builder addAllWaitFor(Iterable<String> values)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The waitFor to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addArgs(String value)
public Command.Builder addArgs(String value)
Command-line arguments used when executing this command.
repeated string args = 3;
Parameter | |
---|---|
Name | Description |
value | String The args to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addArgsBytes(ByteString value)
public Command.Builder addArgsBytes(ByteString value)
Command-line arguments used when executing this command.
repeated string args = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the args to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addEnv(String value)
public Command.Builder addEnv(String value)
Environment variables set before running this command.
repeated string env = 2;
Parameter | |
---|---|
Name | Description |
value | String The env to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addEnvBytes(ByteString value)
public Command.Builder addEnvBytes(ByteString value)
Environment variables set before running this command.
repeated string env = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the env to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Command.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Command.Builder |
addWaitFor(String value)
public Command.Builder addWaitFor(String value)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;
Parameter | |
---|---|
Name | Description |
value | String The waitFor to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
addWaitForBytes(ByteString value)
public Command.Builder addWaitForBytes(ByteString value)
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the waitFor to add. |
Returns | |
---|---|
Type | Description |
Command.Builder | This builder for chaining. |
build()
public Command build()