Package io.grafeas.v1beta1.provenance
Class Command.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Command.Builder>
io.grafeas.v1beta1.provenance.Command.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommandOrBuilder,Cloneable
- Enclosing class:
- Command
public static final class Command.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Command.Builder>
implements CommandOrBuilder
Command describes a step performed as part of the build pipeline.Protobuf type
grafeas.v1beta1.provenance.Command-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<String> values) Command-line arguments used when executing this command.Environment variables set before running this command.addAllWaitFor(Iterable<String> values) The ID(s) of the command(s) that this command depends on.Command-line arguments used when executing this command.addArgsBytes(com.google.protobuf.ByteString value) Command-line arguments used when executing this command.Environment variables set before running this command.addEnvBytes(com.google.protobuf.ByteString value) Environment variables set before running this command.addWaitFor(String value) The ID(s) of the command(s) that this command depends on.addWaitForBytes(com.google.protobuf.ByteString value) The ID(s) of the command(s) that this command depends on.build()clear()Command-line arguments used when executing this command.clearDir()Working directory (relative to project source root) used when running this command.clearEnv()Environment variables set before running this command.clearId()Optional unique identifier for this command, used in wait_for to reference this command as a dependency.Required.The ID(s) of the command(s) that this command depends on.getArgs(int index) Command-line arguments used when executing this command.com.google.protobuf.ByteStringgetArgsBytes(int index) Command-line arguments used when executing this command.intCommand-line arguments used when executing this command.com.google.protobuf.ProtocolStringListCommand-line arguments used when executing this command.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDir()Working directory (relative to project source root) used when running this command.com.google.protobuf.ByteStringWorking directory (relative to project source root) used when running this command.getEnv(int index) Environment variables set before running this command.com.google.protobuf.ByteStringgetEnvBytes(int index) Environment variables set before running this command.intEnvironment variables set before running this command.com.google.protobuf.ProtocolStringListEnvironment variables set before running this command.getId()Optional unique identifier for this command, used in wait_for to reference this command as a dependency.com.google.protobuf.ByteStringOptional unique identifier for this command, used in wait_for to reference this command as a dependency.getName()Required.com.google.protobuf.ByteStringRequired.getWaitFor(int index) The ID(s) of the command(s) that this command depends on.com.google.protobuf.ByteStringgetWaitForBytes(int index) The ID(s) of the command(s) that this command depends on.intThe ID(s) of the command(s) that this command depends on.com.google.protobuf.ProtocolStringListThe ID(s) of the command(s) that this command depends on.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Command-line arguments used when executing this command.Working directory (relative to project source root) used when running this command.setDirBytes(com.google.protobuf.ByteString value) Working directory (relative to project source root) used when running this command.Environment variables set before running this command.Optional unique identifier for this command, used in wait_for to reference this command as a dependency.setIdBytes(com.google.protobuf.ByteString value) Optional unique identifier for this command, used in wait_for to reference this command as a dependency.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setWaitFor(int index, String value) The ID(s) of the command(s) that this command depends on.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Command.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Command.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Command.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Command.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Command.Builder>
-
mergeFrom
public Command.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Command.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceCommandOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceCommandOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getEnvList
public com.google.protobuf.ProtocolStringList getEnvList()Environment variables set before running this command.
repeated string env = 2;- Specified by:
getEnvListin interfaceCommandOrBuilder- Returns:
- A list containing the env.
-
getEnvCount
public int getEnvCount()Environment variables set before running this command.
repeated string env = 2;- Specified by:
getEnvCountin interfaceCommandOrBuilder- Returns:
- The count of env.
-
getEnv
Environment variables set before running this command.
repeated string env = 2;- Specified by:
getEnvin interfaceCommandOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The env at the given index.
-
getEnvBytes
public com.google.protobuf.ByteString getEnvBytes(int index) Environment variables set before running this command.
repeated string env = 2;- Specified by:
getEnvBytesin interfaceCommandOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the env at the given index.
-
setEnv
Environment variables set before running this command.
repeated string env = 2;- Parameters:
index- The index to set the value at.value- The env to set.- Returns:
- This builder for chaining.
-
addEnv
Environment variables set before running this command.
repeated string env = 2;- Parameters:
value- The env to add.- Returns:
- This builder for chaining.
-
addAllEnv
Environment variables set before running this command.
repeated string env = 2;- Parameters:
values- The env to add.- Returns:
- This builder for chaining.
-
clearEnv
Environment variables set before running this command.
repeated string env = 2;- Returns:
- This builder for chaining.
-
addEnvBytes
Environment variables set before running this command.
repeated string env = 2;- Parameters:
value- The bytes of the env to add.- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()Command-line arguments used when executing this command.
repeated string args = 3;- Specified by:
getArgsListin interfaceCommandOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()Command-line arguments used when executing this command.
repeated string args = 3;- Specified by:
getArgsCountin interfaceCommandOrBuilder- Returns:
- The count of args.
-
getArgs
Command-line arguments used when executing this command.
repeated string args = 3;- Specified by:
getArgsin interfaceCommandOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) Command-line arguments used when executing this command.
repeated string args = 3;- Specified by:
getArgsBytesin interfaceCommandOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
Command-line arguments used when executing this command.
repeated string args = 3;- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
Command-line arguments used when executing this command.
repeated string args = 3;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
Command-line arguments used when executing this command.
repeated string args = 3;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
Command-line arguments used when executing this command.
repeated string args = 3;- Returns:
- This builder for chaining.
-
addArgsBytes
Command-line arguments used when executing this command.
repeated string args = 3;- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getDir
Working directory (relative to project source root) used when running this command.
string dir = 4;- Specified by:
getDirin interfaceCommandOrBuilder- Returns:
- The dir.
-
getDirBytes
public com.google.protobuf.ByteString getDirBytes()Working directory (relative to project source root) used when running this command.
string dir = 4;- Specified by:
getDirBytesin interfaceCommandOrBuilder- Returns:
- The bytes for dir.
-
setDir
Working directory (relative to project source root) used when running this command.
string dir = 4;- Parameters:
value- The dir to set.- Returns:
- This builder for chaining.
-
clearDir
Working directory (relative to project source root) used when running this command.
string dir = 4;- Returns:
- This builder for chaining.
-
setDirBytes
Working directory (relative to project source root) used when running this command.
string dir = 4;- Parameters:
value- The bytes for dir to set.- Returns:
- This builder for chaining.
-
getId
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;- Specified by:
getIdin interfaceCommandOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;- Specified by:
getIdBytesin interfaceCommandOrBuilder- Returns:
- The bytes for id.
-
setId
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;- Returns:
- This builder for chaining.
-
setIdBytes
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
string id = 5;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getWaitForList
public com.google.protobuf.ProtocolStringList getWaitForList()The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Specified by:
getWaitForListin interfaceCommandOrBuilder- Returns:
- A list containing the waitFor.
-
getWaitForCount
public int getWaitForCount()The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Specified by:
getWaitForCountin interfaceCommandOrBuilder- Returns:
- The count of waitFor.
-
getWaitFor
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Specified by:
getWaitForin interfaceCommandOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The waitFor at the given index.
-
getWaitForBytes
public com.google.protobuf.ByteString getWaitForBytes(int index) The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Specified by:
getWaitForBytesin interfaceCommandOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the waitFor at the given index.
-
setWaitFor
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Parameters:
index- The index to set the value at.value- The waitFor to set.- Returns:
- This builder for chaining.
-
addWaitFor
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Parameters:
value- The waitFor to add.- Returns:
- This builder for chaining.
-
addAllWaitFor
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Parameters:
values- The waitFor to add.- Returns:
- This builder for chaining.
-
clearWaitFor
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Returns:
- This builder for chaining.
-
addWaitForBytes
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Parameters:
value- The bytes of the waitFor to add.- Returns:
- This builder for chaining.
-