Class SerialPipeline.Builder (1.81.0)

public static final class SerialPipeline.Builder extends GeneratedMessage.Builder<SerialPipeline.Builder> implements SerialPipelineOrBuilder

SerialPipeline defines a sequential set of stages for a DeliveryPipeline.

Protobuf type google.cloud.deploy.v1.SerialPipeline

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllStages(Iterable<? extends Stage> values)

public SerialPipeline.Builder addAllStages(Iterable<? extends Stage> values)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.Stage>
Returns
Type Description
SerialPipeline.Builder

addStages(Stage value)

public SerialPipeline.Builder addStages(Stage value)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Stage
Returns
Type Description
SerialPipeline.Builder

addStages(Stage.Builder builderForValue)

public SerialPipeline.Builder addStages(Stage.Builder builderForValue)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Stage.Builder
Returns
Type Description
SerialPipeline.Builder

addStages(int index, Stage value)

public SerialPipeline.Builder addStages(int index, Stage value)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Stage
Returns
Type Description
SerialPipeline.Builder

addStages(int index, Stage.Builder builderForValue)

public SerialPipeline.Builder addStages(int index, Stage.Builder builderForValue)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Stage.Builder
Returns
Type Description
SerialPipeline.Builder

addStagesBuilder()

public Stage.Builder addStagesBuilder()

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Stage.Builder

addStagesBuilder(int index)

public Stage.Builder addStagesBuilder(int index)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Stage.Builder

build()

public SerialPipeline build()
Returns
Type Description
SerialPipeline

buildPartial()

public SerialPipeline buildPartial()
Returns
Type Description
SerialPipeline

clear()

public SerialPipeline.Builder clear()
Returns
Type Description
SerialPipeline.Builder
Overrides

clearStages()

public SerialPipeline.Builder clearStages()

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SerialPipeline.Builder

getDefaultInstanceForType()

public SerialPipeline getDefaultInstanceForType()
Returns
Type Description
SerialPipeline

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getStages(int index)

public Stage getStages(int index)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Stage

getStagesBuilder(int index)

public Stage.Builder getStagesBuilder(int index)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Stage.Builder

getStagesBuilderList()

public List<Stage.Builder> getStagesBuilderList()

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getStagesCount()

public int getStagesCount()

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getStagesList()

public List<Stage> getStagesList()

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Stage>

getStagesOrBuilder(int index)

public StageOrBuilder getStagesOrBuilder(int index)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
StageOrBuilder

getStagesOrBuilderList()

public List<? extends StageOrBuilder> getStagesOrBuilderList()

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.StageOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SerialPipeline other)

public SerialPipeline.Builder mergeFrom(SerialPipeline other)
Parameter
Name Description
other SerialPipeline
Returns
Type Description
SerialPipeline.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SerialPipeline.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SerialPipeline.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SerialPipeline.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SerialPipeline.Builder
Overrides

removeStages(int index)

public SerialPipeline.Builder removeStages(int index)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SerialPipeline.Builder

setStages(int index, Stage value)

public SerialPipeline.Builder setStages(int index, Stage value)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Stage
Returns
Type Description
SerialPipeline.Builder

setStages(int index, Stage.Builder builderForValue)

public SerialPipeline.Builder setStages(int index, Stage.Builder builderForValue)

Optional. Each stage specifies configuration for a Target. The ordering of this list defines the promotion flow.

repeated .google.cloud.deploy.v1.Stage stages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Stage.Builder
Returns
Type Description
SerialPipeline.Builder