Class Stage.Builder (1.6.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
Type Description
Descriptor

Methods

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
Name Description
values Iterable<String>

The profiles to add.

Returns
Type Description
Stage.Builder

This builder for chaining.

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
Name Description
value String

The profiles to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the profiles to add.

Returns
Type Description
Stage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Stage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Stage.Builder
Overrides

build()

public Stage build()
Returns
Type Description
Stage

buildPartial()

public Stage buildPartial()
Returns
Type Description
Stage

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Stage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Stage.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Stage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Stage.Builder

This builder for chaining.

clone()

public Stage.Builder clone()
Returns
Type Description
Stage.Builder
Overrides

getDefaultInstanceForType()

public Stage getDefaultInstanceForType()
Returns
Type Description
Stage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the strategy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Stage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Stage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Strategy
Returns
Type Description
Stage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Stage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Stage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Stage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The profiles to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Strategy
Returns
Type Description
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
Name Description
builderForValue Strategy.Builder
Returns
Type Description
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
Name Description
value String

The targetId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for targetId to set.

Returns
Type Description
Stage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Stage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Stage.Builder
Overrides