Class Pipeline.Builder

  • All Implemented Interfaces:
    PipelineOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Pipeline

    public static final class Pipeline.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
    implements PipelineOrBuilder
     Specifies a series of actions to execute, expressed as Docker containers.
     
    Protobuf type google.cloud.lifesciences.v2beta.Pipeline
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • clear

        public Pipeline.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • getDefaultInstanceForType

        public Pipeline getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Pipeline build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Pipeline buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Pipeline.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • setField

        public Pipeline.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • clearField

        public Pipeline.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • clearOneof

        public Pipeline.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • setRepeatedField

        public Pipeline.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • addRepeatedField

        public Pipeline.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • mergeFrom

        public Pipeline.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Pipeline.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • mergeFrom

        public Pipeline.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Pipeline.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getActionsList in interface PipelineOrBuilder
      • getActionsCount

        public int getActionsCount()
         The list of actions to execute, in the order they are specified.
         
        repeated .google.cloud.lifesciences.v2beta.Action actions = 1;
        Specified by:
        getActionsCount in interface PipelineOrBuilder
      • getActions

        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;
        Specified by:
        getActions in interface PipelineOrBuilder
      • setActions

        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;
      • setActions

        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;
      • addActions

        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;
      • addActions

        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;
      • addActions

        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;
      • addActions

        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;
      • addAllActions

        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;
      • 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;
      • removeActions

        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;
      • getActionsBuilder

        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;
      • getActionsOrBuilder

        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;
        Specified by:
        getActionsOrBuilder in interface PipelineOrBuilder
      • 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;
      • addActionsBuilder

        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;
      • 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;
      • hasResources

        public boolean hasResources()
         The resources required for execution.
         
        .google.cloud.lifesciences.v2beta.Resources resources = 2;
        Specified by:
        hasResources in interface PipelineOrBuilder
        Returns:
        Whether the resources field is set.
      • getResources

        public Resources getResources()
         The resources required for execution.
         
        .google.cloud.lifesciences.v2beta.Resources resources = 2;
        Specified by:
        getResources in interface PipelineOrBuilder
        Returns:
        The resources.
      • setResources

        public Pipeline.Builder setResources​(Resources value)
         The resources required for execution.
         
        .google.cloud.lifesciences.v2beta.Resources resources = 2;
      • setResources

        public Pipeline.Builder setResources​(Resources.Builder builderForValue)
         The resources required for execution.
         
        .google.cloud.lifesciences.v2beta.Resources resources = 2;
      • mergeResources

        public Pipeline.Builder mergeResources​(Resources value)
         The resources required for execution.
         
        .google.cloud.lifesciences.v2beta.Resources resources = 2;
      • clearResources

        public Pipeline.Builder clearResources()
         The resources required for execution.
         
        .google.cloud.lifesciences.v2beta.Resources resources = 2;
      • getResourcesBuilder

        public Resources.Builder getResourcesBuilder()
         The resources required for execution.
         
        .google.cloud.lifesciences.v2beta.Resources resources = 2;
      • getEnvironmentCount

        public int getEnvironmentCount()
        Description copied from interface: PipelineOrBuilder
         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;
        Specified by:
        getEnvironmentCount in interface PipelineOrBuilder
      • containsEnvironment

        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;
        Specified by:
        containsEnvironment in interface PipelineOrBuilder
      • 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;
        Specified by:
        getEnvironmentMap in interface PipelineOrBuilder
      • getEnvironmentOrDefault

        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;
        Specified by:
        getEnvironmentOrDefault in interface PipelineOrBuilder
      • getEnvironmentOrThrow

        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;
        Specified by:
        getEnvironmentOrThrow in interface PipelineOrBuilder
      • removeEnvironment

        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;
      • getMutableEnvironment

        @Deprecated
        public Map<String,​String> getMutableEnvironment()
        Deprecated.
        Use alternate mutation accessors instead.
      • putEnvironment

        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;
      • putAllEnvironment

        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;
      • 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;
        Specified by:
        hasEncryptedEnvironment in interface PipelineOrBuilder
        Returns:
        Whether the encryptedEnvironment field is set.
      • 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;
        Specified by:
        getEncryptedEnvironment in interface PipelineOrBuilder
        Returns:
        The encryptedEnvironment.
      • setEncryptedEnvironment

        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;
      • setEncryptedEnvironment

        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;
      • mergeEncryptedEnvironment

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getEncryptedEnvironmentOrBuilder in interface PipelineOrBuilder
      • 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;
        Specified by:
        hasTimeout in interface PipelineOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.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;
        Specified by:
        getTimeout in interface PipelineOrBuilder
        Returns:
        The timeout.
      • setTimeout

        public Pipeline.Builder setTimeout​(com.google.protobuf.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;
      • setTimeout

        public Pipeline.Builder setTimeout​(com.google.protobuf.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;
      • mergeTimeout

        public Pipeline.Builder mergeTimeout​(com.google.protobuf.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;
      • 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;
      • getTimeoutBuilder

        public com.google.protobuf.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;
      • getTimeoutOrBuilder

        public com.google.protobuf.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;
        Specified by:
        getTimeoutOrBuilder in interface PipelineOrBuilder
      • setUnknownFields

        public final Pipeline.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>
      • mergeUnknownFields

        public final Pipeline.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Pipeline.Builder>