Class Pipeline.Builder (0.11.0)

public static final class Pipeline.Builder extends GeneratedMessageV3.Builder<Pipeline.Builder> implements PipelineOrBuilder

Specifies a series of actions to execute, expressed as Docker containers.

Protobuf type google.cloud.lifesciences.v2beta.Pipeline

Implements

PipelineOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addActions(Action value)

public Pipeline.Builder addActions(Action value)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
valueAction
Returns
TypeDescription
Pipeline.Builder

addActions(Action.Builder builderForValue)

public Pipeline.Builder addActions(Action.Builder builderForValue)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
builderForValueAction.Builder
Returns
TypeDescription
Pipeline.Builder

addActions(int index, Action value)

public Pipeline.Builder addActions(int index, Action value)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameters
NameDescription
indexint
valueAction
Returns
TypeDescription
Pipeline.Builder

addActions(int index, Action.Builder builderForValue)

public Pipeline.Builder addActions(int index, Action.Builder builderForValue)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameters
NameDescription
indexint
builderForValueAction.Builder
Returns
TypeDescription
Pipeline.Builder

addActionsBuilder()

public Action.Builder addActionsBuilder()

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Returns
TypeDescription
Action.Builder

addActionsBuilder(int index)

public Action.Builder addActionsBuilder(int index)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Action.Builder

addAllActions(Iterable<? extends Action> values)

public Pipeline.Builder addAllActions(Iterable<? extends Action> values)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.lifesciences.v2beta.Action>
Returns
TypeDescription
Pipeline.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Pipeline.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Pipeline.Builder
Overrides

build()

public Pipeline build()
Returns
TypeDescription
Pipeline

buildPartial()

public Pipeline buildPartial()
Returns
TypeDescription
Pipeline

clear()

public Pipeline.Builder clear()
Returns
TypeDescription
Pipeline.Builder
Overrides

clearActions()

public Pipeline.Builder clearActions()

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Returns
TypeDescription
Pipeline.Builder

clearEncryptedEnvironment()

public Pipeline.Builder clearEncryptedEnvironment()

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Returns
TypeDescription
Pipeline.Builder

clearEnvironment()

public Pipeline.Builder clearEnvironment()
Returns
TypeDescription
Pipeline.Builder

clearField(Descriptors.FieldDescriptor field)

public Pipeline.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Pipeline.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Pipeline.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Pipeline.Builder
Overrides

clearResources()

public Pipeline.Builder clearResources()

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Returns
TypeDescription
Pipeline.Builder

clearTimeout()

public Pipeline.Builder clearTimeout()

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
Pipeline.Builder

clone()

public Pipeline.Builder clone()
Returns
TypeDescription
Pipeline.Builder
Overrides

containsEnvironment(String key)

public boolean containsEnvironment(String key)

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getActions(int index)

public Action getActions(int index)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Action

getActionsBuilder(int index)

public Action.Builder getActionsBuilder(int index)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Action.Builder

getActionsBuilderList()

public List<Action.Builder> getActionsBuilderList()

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Returns
TypeDescription
List<Builder>

getActionsCount()

public int getActionsCount()

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Returns
TypeDescription
int

getActionsList()

public List<Action> getActionsList()

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Returns
TypeDescription
List<Action>

getActionsOrBuilder(int index)

public ActionOrBuilder getActionsOrBuilder(int index)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ActionOrBuilder

getActionsOrBuilderList()

public List<? extends ActionOrBuilder> getActionsOrBuilderList()

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Returns
TypeDescription
List<? extends com.google.cloud.lifesciences.v2beta.ActionOrBuilder>

getDefaultInstanceForType()

public Pipeline getDefaultInstanceForType()
Returns
TypeDescription
Pipeline

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEncryptedEnvironment()

public Secret getEncryptedEnvironment()

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Returns
TypeDescription
Secret

The encryptedEnvironment.

getEncryptedEnvironmentBuilder()

public Secret.Builder getEncryptedEnvironmentBuilder()

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Returns
TypeDescription
Secret.Builder

getEncryptedEnvironmentOrBuilder()

public SecretOrBuilder getEncryptedEnvironmentOrBuilder()

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Returns
TypeDescription
SecretOrBuilder

getEnvironment()

public Map<String,String> getEnvironment()

Use #getEnvironmentMap() instead.

Returns
TypeDescription
Map<String,String>

getEnvironmentCount()

public int getEnvironmentCount()

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Returns
TypeDescription
int

getEnvironmentMap()

public Map<String,String> getEnvironmentMap()

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Returns
TypeDescription
Map<String,String>

getEnvironmentOrDefault(String key, String defaultValue)

public String getEnvironmentOrDefault(String key, String defaultValue)

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getEnvironmentOrThrow(String key)

public String getEnvironmentOrThrow(String key)

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableEnvironment()

public Map<String,String> getMutableEnvironment()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getResources()

public Resources getResources()

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Returns
TypeDescription
Resources

The resources.

getResourcesBuilder()

public Resources.Builder getResourcesBuilder()

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Returns
TypeDescription
Resources.Builder

getResourcesOrBuilder()

public ResourcesOrBuilder getResourcesOrBuilder()

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Returns
TypeDescription
ResourcesOrBuilder

getTimeout()

public Duration getTimeout()

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
DurationOrBuilder

hasEncryptedEnvironment()

public boolean hasEncryptedEnvironment()

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Returns
TypeDescription
boolean

Whether the encryptedEnvironment field is set.

hasResources()

public boolean hasResources()

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Returns
TypeDescription
boolean

Whether the resources field is set.

hasTimeout()

public boolean hasTimeout()

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEncryptedEnvironment(Secret value)

public Pipeline.Builder mergeEncryptedEnvironment(Secret value)

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Parameter
NameDescription
valueSecret
Returns
TypeDescription
Pipeline.Builder

mergeFrom(Pipeline other)

public Pipeline.Builder mergeFrom(Pipeline other)
Parameter
NameDescription
otherPipeline
Returns
TypeDescription
Pipeline.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Pipeline.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pipeline.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Pipeline.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Pipeline.Builder
Overrides

mergeResources(Resources value)

public Pipeline.Builder mergeResources(Resources value)

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Parameter
NameDescription
valueResources
Returns
TypeDescription
Pipeline.Builder

mergeTimeout(Duration value)

public Pipeline.Builder mergeTimeout(Duration value)

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Pipeline.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Pipeline.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Pipeline.Builder
Overrides

putAllEnvironment(Map<String,String> values)

public Pipeline.Builder putAllEnvironment(Map<String,String> values)

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Pipeline.Builder

putEnvironment(String key, String value)

public Pipeline.Builder putEnvironment(String key, String value)

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Pipeline.Builder

removeActions(int index)

public Pipeline.Builder removeActions(int index)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Pipeline.Builder

removeEnvironment(String key)

public Pipeline.Builder removeEnvironment(String key)

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).

map<string, string> environment = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
Pipeline.Builder

setActions(int index, Action value)

public Pipeline.Builder setActions(int index, Action value)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameters
NameDescription
indexint
valueAction
Returns
TypeDescription
Pipeline.Builder

setActions(int index, Action.Builder builderForValue)

public Pipeline.Builder setActions(int index, Action.Builder builderForValue)

The list of actions to execute, in the order they are specified.

repeated .google.cloud.lifesciences.v2beta.Action actions = 1;

Parameters
NameDescription
indexint
builderForValueAction.Builder
Returns
TypeDescription
Pipeline.Builder

setEncryptedEnvironment(Secret value)

public Pipeline.Builder setEncryptedEnvironment(Secret value)

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Parameter
NameDescription
valueSecret
Returns
TypeDescription
Pipeline.Builder

setEncryptedEnvironment(Secret.Builder builderForValue)

public Pipeline.Builder setEncryptedEnvironment(Secret.Builder builderForValue)

The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the environment field.

.google.cloud.lifesciences.v2beta.Secret encrypted_environment = 5;

Parameter
NameDescription
builderForValueSecret.Builder
Returns
TypeDescription
Pipeline.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Pipeline.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Pipeline.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Pipeline.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Pipeline.Builder
Overrides

setResources(Resources value)

public Pipeline.Builder setResources(Resources value)

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Parameter
NameDescription
valueResources
Returns
TypeDescription
Pipeline.Builder

setResources(Resources.Builder builderForValue)

public Pipeline.Builder setResources(Resources.Builder builderForValue)

The resources required for execution.

.google.cloud.lifesciences.v2beta.Resources resources = 2;

Parameter
NameDescription
builderForValueResources.Builder
Returns
TypeDescription
Pipeline.Builder

setTimeout(Duration value)

public Pipeline.Builder setTimeout(Duration value)

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Pipeline.Builder

setTimeout(Duration.Builder builderForValue)

public Pipeline.Builder setTimeout(Duration.Builder builderForValue)

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.

.google.protobuf.Duration timeout = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Pipeline.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Pipeline.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Pipeline.Builder
Overrides