Class Canary.Builder (1.28.0)

public static final class Canary.Builder extends GeneratedMessageV3.Builder<Canary.Builder> implements CanaryOrBuilder

Canary represents the canary deployment strategy.

Protobuf type google.cloud.deploy.v1.Canary

Implements

CanaryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Canary build()
Returns
TypeDescription
Canary

buildPartial()

public Canary buildPartial()
Returns
TypeDescription
Canary

clear()

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

clearCanaryDeployment()

public Canary.Builder clearCanaryDeployment()

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Returns
TypeDescription
Canary.Builder

clearCustomCanaryDeployment()

public Canary.Builder clearCustomCanaryDeployment()

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Returns
TypeDescription
Canary.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public Canary.Builder clearMode()
Returns
TypeDescription
Canary.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRuntimeConfig()

public Canary.Builder clearRuntimeConfig()

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Canary.Builder

clone()

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

getCanaryDeployment()

public CanaryDeployment getCanaryDeployment()

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Returns
TypeDescription
CanaryDeployment

The canaryDeployment.

getCanaryDeploymentBuilder()

public CanaryDeployment.Builder getCanaryDeploymentBuilder()

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Returns
TypeDescription
CanaryDeployment.Builder

getCanaryDeploymentOrBuilder()

public CanaryDeploymentOrBuilder getCanaryDeploymentOrBuilder()

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Returns
TypeDescription
CanaryDeploymentOrBuilder

getCustomCanaryDeployment()

public CustomCanaryDeployment getCustomCanaryDeployment()

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Returns
TypeDescription
CustomCanaryDeployment

The customCanaryDeployment.

getCustomCanaryDeploymentBuilder()

public CustomCanaryDeployment.Builder getCustomCanaryDeploymentBuilder()

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Returns
TypeDescription
CustomCanaryDeployment.Builder

getCustomCanaryDeploymentOrBuilder()

public CustomCanaryDeploymentOrBuilder getCustomCanaryDeploymentOrBuilder()

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Returns
TypeDescription
CustomCanaryDeploymentOrBuilder

getDefaultInstanceForType()

public Canary getDefaultInstanceForType()
Returns
TypeDescription
Canary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getModeCase()

public Canary.ModeCase getModeCase()
Returns
TypeDescription
Canary.ModeCase

getRuntimeConfig()

public RuntimeConfig getRuntimeConfig()

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfig

The runtimeConfig.

getRuntimeConfigBuilder()

public RuntimeConfig.Builder getRuntimeConfigBuilder()

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfig.Builder

getRuntimeConfigOrBuilder()

public RuntimeConfigOrBuilder getRuntimeConfigOrBuilder()

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfigOrBuilder

hasCanaryDeployment()

public boolean hasCanaryDeployment()

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Returns
TypeDescription
boolean

Whether the canaryDeployment field is set.

hasCustomCanaryDeployment()

public boolean hasCustomCanaryDeployment()

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Returns
TypeDescription
boolean

Whether the customCanaryDeployment field is set.

hasRuntimeConfig()

public boolean hasRuntimeConfig()

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the runtimeConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCanaryDeployment(CanaryDeployment value)

public Canary.Builder mergeCanaryDeployment(CanaryDeployment value)

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Parameter
NameDescription
valueCanaryDeployment
Returns
TypeDescription
Canary.Builder

mergeCustomCanaryDeployment(CustomCanaryDeployment value)

public Canary.Builder mergeCustomCanaryDeployment(CustomCanaryDeployment value)

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Parameter
NameDescription
valueCustomCanaryDeployment
Returns
TypeDescription
Canary.Builder

mergeFrom(Canary other)

public Canary.Builder mergeFrom(Canary other)
Parameter
NameDescription
otherCanary
Returns
TypeDescription
Canary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRuntimeConfig(RuntimeConfig value)

public Canary.Builder mergeRuntimeConfig(RuntimeConfig value)

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueRuntimeConfig
Returns
TypeDescription
Canary.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCanaryDeployment(CanaryDeployment value)

public Canary.Builder setCanaryDeployment(CanaryDeployment value)

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Parameter
NameDescription
valueCanaryDeployment
Returns
TypeDescription
Canary.Builder

setCanaryDeployment(CanaryDeployment.Builder builderForValue)

public Canary.Builder setCanaryDeployment(CanaryDeployment.Builder builderForValue)

Configures the progressive based deployment for a Target.

.google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;

Parameter
NameDescription
builderForValueCanaryDeployment.Builder
Returns
TypeDescription
Canary.Builder

setCustomCanaryDeployment(CustomCanaryDeployment value)

public Canary.Builder setCustomCanaryDeployment(CustomCanaryDeployment value)

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Parameter
NameDescription
valueCustomCanaryDeployment
Returns
TypeDescription
Canary.Builder

setCustomCanaryDeployment(CustomCanaryDeployment.Builder builderForValue)

public Canary.Builder setCustomCanaryDeployment(CustomCanaryDeployment.Builder builderForValue)

Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.

.google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;

Parameter
NameDescription
builderForValueCustomCanaryDeployment.Builder
Returns
TypeDescription
Canary.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRuntimeConfig(RuntimeConfig value)

public Canary.Builder setRuntimeConfig(RuntimeConfig value)

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueRuntimeConfig
Returns
TypeDescription
Canary.Builder

setRuntimeConfig(RuntimeConfig.Builder builderForValue)

public Canary.Builder setRuntimeConfig(RuntimeConfig.Builder builderForValue)

Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

.google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueRuntimeConfig.Builder
Returns
TypeDescription
Canary.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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