Class CanaryDeployment.Builder (1.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Integer>

The percentages to add.

Returns
TypeDescription
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
NameDescription
valueint

The percentages to add.

Returns
TypeDescription
CanaryDeployment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CanaryDeployment build()
Returns
TypeDescription
CanaryDeployment

buildPartial()

public CanaryDeployment buildPartial()
Returns
TypeDescription
CanaryDeployment

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CanaryDeployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CanaryDeployment.Builder

clearVerify()

public CanaryDeployment.Builder clearVerify()

Whether to run verify tests after each percentage deployment.

bool verify = 2;

Returns
TypeDescription
CanaryDeployment.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CanaryDeployment getDefaultInstanceForType()
Returns
TypeDescription
CanaryDeployment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PredeployOrBuilder

getVerify()

public boolean getVerify()

Whether to run verify tests after each percentage deployment.

bool verify = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the predeploy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CanaryDeployment other)

public CanaryDeployment.Builder mergeFrom(CanaryDeployment other)
Parameter
NameDescription
otherCanaryDeployment
Returns
TypeDescription
CanaryDeployment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CanaryDeployment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePostdeploy
Returns
TypeDescription
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
NameDescription
valuePredeploy
Returns
TypeDescription
CanaryDeployment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CanaryDeployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

The percentages to set.

Returns
TypeDescription
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
NameDescription
valuePostdeploy
Returns
TypeDescription
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
NameDescription
builderForValuePostdeploy.Builder
Returns
TypeDescription
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
NameDescription
valuePredeploy
Returns
TypeDescription
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
NameDescription
builderForValuePredeploy.Builder
Returns
TypeDescription
CanaryDeployment.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CanaryDeployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The verify to set.

Returns
TypeDescription
CanaryDeployment.Builder

This builder for chaining.