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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Command.Builder> implements CommandOrBuilder
Command describes a step performed as part of the build pipeline.
Protobuf typegrafeas.v1beta1.provenance.Command
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Command.BuilderaddAllArgs(Iterable<String> values)Command-line arguments used when executing this command.Command.BuilderaddAllEnv(Iterable<String> values)Environment variables set before running this command.Command.BuilderaddAllWaitFor(Iterable<String> values)The ID(s) of the command(s) that this command depends on.Command.BuilderaddArgs(String value)Command-line arguments used when executing this command.Command.BuilderaddArgsBytes(com.google.protobuf.ByteString value)Command-line arguments used when executing this command.Command.BuilderaddEnv(String value)Environment variables set before running this command.Command.BuilderaddEnvBytes(com.google.protobuf.ByteString value)Environment variables set before running this command.Command.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Command.BuilderaddWaitFor(String value)The ID(s) of the command(s) that this command depends on.Command.BuilderaddWaitForBytes(com.google.protobuf.ByteString value)The ID(s) of the command(s) that this command depends on.Commandbuild()CommandbuildPartial()Command.Builderclear()Command.BuilderclearArgs()Command-line arguments used when executing this command.Command.BuilderclearDir()Working directory (relative to project source root) used when running this command.Command.BuilderclearEnv()Environment variables set before running this command.Command.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Command.BuilderclearId()Optional unique identifier for this command, used in wait_for to reference this command as a dependency.Command.BuilderclearName()Required.Command.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Command.BuilderclearWaitFor()The ID(s) of the command(s) that this command depends on.Command.Builderclone()StringgetArgs(int index)Command-line arguments used when executing this command.com.google.protobuf.ByteStringgetArgsBytes(int index)Command-line arguments used when executing this command.intgetArgsCount()Command-line arguments used when executing this command.com.google.protobuf.ProtocolStringListgetArgsList()Command-line arguments used when executing this command.CommandgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDir()Working directory (relative to project source root) used when running this command.com.google.protobuf.ByteStringgetDirBytes()Working directory (relative to project source root) used when running this command.StringgetEnv(int index)Environment variables set before running this command.com.google.protobuf.ByteStringgetEnvBytes(int index)Environment variables set before running this command.intgetEnvCount()Environment variables set before running this command.com.google.protobuf.ProtocolStringListgetEnvList()Environment variables set before running this command.StringgetId()Optional unique identifier for this command, used in wait_for to reference this command as a dependency.com.google.protobuf.ByteStringgetIdBytes()Optional unique identifier for this command, used in wait_for to reference this command as a dependency.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.StringgetWaitFor(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.intgetWaitForCount()The ID(s) of the command(s) that this command depends on.com.google.protobuf.ProtocolStringListgetWaitForList()The ID(s) of the command(s) that this command depends on.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Command.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Command.BuildermergeFrom(com.google.protobuf.Message other)Command.BuildermergeFrom(Command other)Command.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Command.BuildersetArgs(int index, String value)Command-line arguments used when executing this command.Command.BuildersetDir(String value)Working directory (relative to project source root) used when running this command.Command.BuildersetDirBytes(com.google.protobuf.ByteString value)Working directory (relative to project source root) used when running this command.Command.BuildersetEnv(int index, String value)Environment variables set before running this command.Command.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Command.BuildersetId(String value)Optional unique identifier for this command, used in wait_for to reference this command as a dependency.Command.BuildersetIdBytes(com.google.protobuf.ByteString value)Optional unique identifier for this command, used in wait_for to reference this command as a dependency.Command.BuildersetName(String value)Required.Command.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.Command.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Command.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Command.BuildersetWaitFor(int index, String value)The ID(s) of the command(s) that this command depends on.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
clear
public Command.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Command.Builder>
-
getDefaultInstanceForType
public Command getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Command build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Command buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Command.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
setField
public Command.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
clearField
public Command.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
clearOneof
public Command.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
setRepeatedField
public Command.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
addRepeatedField
public Command.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
mergeFrom
public Command.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Command.Builder>
-
mergeFrom
public Command.Builder mergeFrom(Command other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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;- 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
public Command.Builder setName(String value)
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
public Command.Builder 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
public Command.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public String getEnv(int index)
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
public Command.Builder setEnv(int index, String value)
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
public Command.Builder addEnv(String value)
Environment variables set before running this command.
repeated string env = 2;- Parameters:
value- The env to add.- Returns:
- This builder for chaining.
-
addAllEnv
public Command.Builder addAllEnv(Iterable<String> values)
Environment variables set before running this command.
repeated string env = 2;- Parameters:
values- The env to add.- Returns:
- This builder for chaining.
-
clearEnv
public Command.Builder clearEnv()
Environment variables set before running this command.
repeated string env = 2;- Returns:
- This builder for chaining.
-
addEnvBytes
public Command.Builder addEnvBytes(com.google.protobuf.ByteString value)
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
public String getArgs(int index)
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
public Command.Builder setArgs(int index, String value)
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
public Command.Builder addArgs(String value)
Command-line arguments used when executing this command.
repeated string args = 3;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
public Command.Builder addAllArgs(Iterable<String> values)
Command-line arguments used when executing this command.
repeated string args = 3;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
public Command.Builder clearArgs()
Command-line arguments used when executing this command.
repeated string args = 3;- Returns:
- This builder for chaining.
-
addArgsBytes
public Command.Builder addArgsBytes(com.google.protobuf.ByteString value)
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
public String 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
public Command.Builder setDir(String value)
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
public Command.Builder clearDir()
Working directory (relative to project source root) used when running this command.
string dir = 4;- Returns:
- This builder for chaining.
-
setDirBytes
public Command.Builder setDirBytes(com.google.protobuf.ByteString value)
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
public String 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
public Command.Builder setId(String value)
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
public Command.Builder 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
public Command.Builder setIdBytes(com.google.protobuf.ByteString value)
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
public String getWaitFor(int index)
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
public Command.Builder setWaitFor(int index, String value)
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
public Command.Builder addWaitFor(String value)
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
public Command.Builder addAllWaitFor(Iterable<String> values)
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
public Command.Builder clearWaitFor()
The ID(s) of the command(s) that this command depends on.
repeated string wait_for = 6;- Returns:
- This builder for chaining.
-
addWaitForBytes
public Command.Builder addWaitForBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final Command.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
mergeUnknownFields
public final Command.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
-