Class Stage.Builder (1.39.0)

public static final class Stage.Builder extends GeneratedMessageV3.Builder<Stage.Builder> implements StageOrBuilder

Stage specifies a location to which to deploy.

Protobuf type google.cloud.deploy.v1.Stage

Implements

StageOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDeployParameters(Iterable<? extends DeployParameters> values)

public Stage.Builder addAllDeployParameters(Iterable<? extends DeployParameters> values)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.DeployParameters>
Returns
TypeDescription
Stage.Builder

addAllProfiles(Iterable<String> values)

public Stage.Builder addAllProfiles(Iterable<String> values)

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Parameter
NameDescription
valuesIterable<String>

The profiles to add.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

addDeployParameters(DeployParameters value)

public Stage.Builder addDeployParameters(DeployParameters value)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDeployParameters
Returns
TypeDescription
Stage.Builder

addDeployParameters(DeployParameters.Builder builderForValue)

public Stage.Builder addDeployParameters(DeployParameters.Builder builderForValue)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDeployParameters.Builder
Returns
TypeDescription
Stage.Builder

addDeployParameters(int index, DeployParameters value)

public Stage.Builder addDeployParameters(int index, DeployParameters value)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueDeployParameters
Returns
TypeDescription
Stage.Builder

addDeployParameters(int index, DeployParameters.Builder builderForValue)

public Stage.Builder addDeployParameters(int index, DeployParameters.Builder builderForValue)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueDeployParameters.Builder
Returns
TypeDescription
Stage.Builder

addDeployParametersBuilder()

public DeployParameters.Builder addDeployParametersBuilder()

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DeployParameters.Builder

addDeployParametersBuilder(int index)

public DeployParameters.Builder addDeployParametersBuilder(int index)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DeployParameters.Builder

addProfiles(String value)

public Stage.Builder addProfiles(String value)

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Parameter
NameDescription
valueString

The profiles to add.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

addProfilesBytes(ByteString value)

public Stage.Builder addProfilesBytes(ByteString value)

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Parameter
NameDescription
valueByteString

The bytes of the profiles to add.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Stage build()
Returns
TypeDescription
Stage

buildPartial()

public Stage buildPartial()
Returns
TypeDescription
Stage

clear()

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

clearDeployParameters()

public Stage.Builder clearDeployParameters()

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Stage.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProfiles()

public Stage.Builder clearProfiles()

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Returns
TypeDescription
Stage.Builder

This builder for chaining.

clearStrategy()

public Stage.Builder clearStrategy()

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Stage.Builder

clearTargetId()

public Stage.Builder clearTargetId()

The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be my-target (rather than projects/project/locations/location/targets/my-target). The location of the Target is inferred to be the same as the location of the DeliveryPipeline that contains this Stage.

string target_id = 1;

Returns
TypeDescription
Stage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Stage getDefaultInstanceForType()
Returns
TypeDescription
Stage

getDeployParameters(int index)

public DeployParameters getDeployParameters(int index)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DeployParameters

getDeployParametersBuilder(int index)

public DeployParameters.Builder getDeployParametersBuilder(int index)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DeployParameters.Builder

getDeployParametersBuilderList()

public List<DeployParameters.Builder> getDeployParametersBuilderList()

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getDeployParametersCount()

public int getDeployParametersCount()

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getDeployParametersList()

public List<DeployParameters> getDeployParametersList()

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<DeployParameters>

getDeployParametersOrBuilder(int index)

public DeployParametersOrBuilder getDeployParametersOrBuilder(int index)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DeployParametersOrBuilder

getDeployParametersOrBuilderList()

public List<? extends DeployParametersOrBuilder> getDeployParametersOrBuilderList()

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.deploy.v1.DeployParametersOrBuilder>

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProfiles(int index)

public String getProfiles(int index)

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The profiles at the given index.

getProfilesBytes(int index)

public ByteString getProfilesBytes(int index)

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the profiles at the given index.

getProfilesCount()

public int getProfilesCount()

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Returns
TypeDescription
int

The count of profiles.

getProfilesList()

public ProtocolStringList getProfilesList()

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the profiles.

getStrategy()

public Strategy getStrategy()

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Strategy

The strategy.

getStrategyBuilder()

public Strategy.Builder getStrategyBuilder()

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Strategy.Builder

getStrategyOrBuilder()

public StrategyOrBuilder getStrategyOrBuilder()

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StrategyOrBuilder

getTargetId()

public String getTargetId()

The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be my-target (rather than projects/project/locations/location/targets/my-target). The location of the Target is inferred to be the same as the location of the DeliveryPipeline that contains this Stage.

string target_id = 1;

Returns
TypeDescription
String

The targetId.

getTargetIdBytes()

public ByteString getTargetIdBytes()

The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be my-target (rather than projects/project/locations/location/targets/my-target). The location of the Target is inferred to be the same as the location of the DeliveryPipeline that contains this Stage.

string target_id = 1;

Returns
TypeDescription
ByteString

The bytes for targetId.

hasStrategy()

public boolean hasStrategy()

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the strategy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Stage other)

public Stage.Builder mergeFrom(Stage other)
Parameter
NameDescription
otherStage
Returns
TypeDescription
Stage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStrategy(Strategy value)

public Stage.Builder mergeStrategy(Strategy value)

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStrategy
Returns
TypeDescription
Stage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDeployParameters(int index)

public Stage.Builder removeDeployParameters(int index)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Stage.Builder

setDeployParameters(int index, DeployParameters value)

public Stage.Builder setDeployParameters(int index, DeployParameters value)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueDeployParameters
Returns
TypeDescription
Stage.Builder

setDeployParameters(int index, DeployParameters.Builder builderForValue)

public Stage.Builder setDeployParameters(int index, DeployParameters.Builder builderForValue)

Optional. The deploy parameters to use for the target in this stage.

repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueDeployParameters.Builder
Returns
TypeDescription
Stage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProfiles(int index, String value)

public Stage.Builder setProfiles(int index, String value)

Skaffold profiles to use when rendering the manifest for this stage's Target.

repeated string profiles = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The profiles to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

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

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

setStrategy(Strategy value)

public Stage.Builder setStrategy(Strategy value)

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStrategy
Returns
TypeDescription
Stage.Builder

setStrategy(Strategy.Builder builderForValue)

public Stage.Builder setStrategy(Strategy.Builder builderForValue)

Optional. The strategy to use for a Rollout to this stage.

.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueStrategy.Builder
Returns
TypeDescription
Stage.Builder

setTargetId(String value)

public Stage.Builder setTargetId(String value)

The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be my-target (rather than projects/project/locations/location/targets/my-target). The location of the Target is inferred to be the same as the location of the DeliveryPipeline that contains this Stage.

string target_id = 1;

Parameter
NameDescription
valueString

The targetId to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setTargetIdBytes(ByteString value)

public Stage.Builder setTargetIdBytes(ByteString value)

The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be my-target (rather than projects/project/locations/location/targets/my-target). The location of the Target is inferred to be the same as the location of the DeliveryPipeline that contains this Stage.

string target_id = 1;

Parameter
NameDescription
valueByteString

The bytes for targetId to set.

Returns
TypeDescription
Stage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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