Class CanaryDeployment.Builder (1.40.0)

public static final class CanaryDeployment.Builder extends GeneratedMessageV3.Builder<CanaryDeployment.Builder> implements CanaryDeploymentOrBuilder

CanaryDeployment represents the canary deployment configuration

Protobuf type google.cloud.deploy.v1.CanaryDeployment

Static Methods

getDescriptor()

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

Methods

addAllPercentages(Iterable<? extends Integer> values)

public CanaryDeployment.Builder addAllPercentages(Iterable<? extends Integer> values)

Required. The percentage based deployments that will occur as a part of a Rollout. List is expected in ascending order and each integer n is 0 <= n < 100.

repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The percentages to add.

Returns
Type Description
CanaryDeployment.Builder

This builder for chaining.

addPercentages(int value)

public CanaryDeployment.Builder addPercentages(int value)

Required. The percentage based deployments that will occur as a part of a Rollout. List is expected in ascending order and each integer n is 0 <= n < 100.

repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The percentages to add.

Returns
Type Description
CanaryDeployment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CanaryDeployment build()
Returns
Type Description
CanaryDeployment

buildPartial()

public CanaryDeployment buildPartial()
Returns
Type Description
CanaryDeployment

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CanaryDeployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CanaryDeployment.Builder
Overrides

clearPercentages()

public CanaryDeployment.Builder clearPercentages()

Required. The percentage based deployments that will occur as a part of a Rollout. List is expected in ascending order and each integer n is 0 <= n < 100.

repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CanaryDeployment.Builder

This builder for chaining.

clearPostdeploy()

public CanaryDeployment.Builder clearPostdeploy()

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CanaryDeployment.Builder

clearPredeploy()

public CanaryDeployment.Builder clearPredeploy()

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CanaryDeployment.Builder

clearVerify()

public CanaryDeployment.Builder clearVerify()

Whether to run verify tests after each percentage deployment.

bool verify = 2;

Returns
Type Description
CanaryDeployment.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CanaryDeployment getDefaultInstanceForType()
Returns
Type Description
CanaryDeployment

getDescriptorForType()

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

getPercentages(int index)

public int getPercentages(int index)

Required. The percentage based deployments that will occur as a part of a Rollout. List is expected in ascending order and each integer n is 0 <= n < 100.

repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The percentages at the given index.

getPercentagesCount()

public int getPercentagesCount()

Required. The percentage based deployments that will occur as a part of a Rollout. List is expected in ascending order and each integer n is 0 <= n < 100.

repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of percentages.

getPercentagesList()

public List<Integer> getPercentagesList()

Required. The percentage based deployments that will occur as a part of a Rollout. List is expected in ascending order and each integer n is 0 <= n < 100.

repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the percentages.

getPostdeploy()

public Postdeploy getPostdeploy()

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Postdeploy

The postdeploy.

getPostdeployBuilder()

public Postdeploy.Builder getPostdeployBuilder()

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Postdeploy.Builder

getPostdeployOrBuilder()

public PostdeployOrBuilder getPostdeployOrBuilder()

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PostdeployOrBuilder

getPredeploy()

public Predeploy getPredeploy()

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Predeploy

The predeploy.

getPredeployBuilder()

public Predeploy.Builder getPredeployBuilder()

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Predeploy.Builder

getPredeployOrBuilder()

public PredeployOrBuilder getPredeployOrBuilder()

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PredeployOrBuilder

getVerify()

public boolean getVerify()

Whether to run verify tests after each percentage deployment.

bool verify = 2;

Returns
Type Description
boolean

The verify.

hasPostdeploy()

public boolean hasPostdeploy()

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the postdeploy field is set.

hasPredeploy()

public boolean hasPredeploy()

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the predeploy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CanaryDeployment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePostdeploy(Postdeploy value)

public CanaryDeployment.Builder mergePostdeploy(Postdeploy value)

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Postdeploy
Returns
Type Description
CanaryDeployment.Builder

mergePredeploy(Predeploy value)

public CanaryDeployment.Builder mergePredeploy(Predeploy value)

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Predeploy
Returns
Type Description
CanaryDeployment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPercentages(int index, int value)

public CanaryDeployment.Builder setPercentages(int index, int value)

Required. The percentage based deployments that will occur as a part of a Rollout. List is expected in ascending order and each integer n is 0 <= n < 100.

repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value int

The percentages to set.

Returns
Type Description
CanaryDeployment.Builder

This builder for chaining.

setPostdeploy(Postdeploy value)

public CanaryDeployment.Builder setPostdeploy(Postdeploy value)

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Postdeploy
Returns
Type Description
CanaryDeployment.Builder

setPostdeploy(Postdeploy.Builder builderForValue)

public CanaryDeployment.Builder setPostdeploy(Postdeploy.Builder builderForValue)

Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Postdeploy.Builder
Returns
Type Description
CanaryDeployment.Builder

setPredeploy(Predeploy value)

public CanaryDeployment.Builder setPredeploy(Predeploy value)

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Predeploy
Returns
Type Description
CanaryDeployment.Builder

setPredeploy(Predeploy.Builder builderForValue)

public CanaryDeployment.Builder setPredeploy(Predeploy.Builder builderForValue)

Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Predeploy.Builder
Returns
Type Description
CanaryDeployment.Builder

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

public CanaryDeployment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CanaryDeployment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVerify(boolean value)

public CanaryDeployment.Builder setVerify(boolean value)

Whether to run verify tests after each percentage deployment.

bool verify = 2;

Parameter
Name Description
value boolean

The verify to set.

Returns
Type Description
CanaryDeployment.Builder

This builder for chaining.