Class CanaryDeployment.Builder (1.19.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.

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.

getVerify()

public boolean getVerify()

Whether to run verify tests after each percentage deployment.

bool verify = 2;

Returns
TypeDescription
boolean

The verify.

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

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.

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.