Class CustomCanaryDeployment.PhaseConfig.Builder (1.40.0)

public static final class CustomCanaryDeployment.PhaseConfig.Builder extends GeneratedMessageV3.Builder<CustomCanaryDeployment.PhaseConfig.Builder> implements CustomCanaryDeployment.PhaseConfigOrBuilder

PhaseConfig represents the configuration for a phase in the custom canary deployment.

Protobuf type google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig

Static Methods

getDescriptor()

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

Methods

addAllProfiles(Iterable<String> values)

public CustomCanaryDeployment.PhaseConfig.Builder addAllProfiles(Iterable<String> values)

Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

Parameter
Name Description
values Iterable<String>

The profiles to add.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

addProfiles(String value)

public CustomCanaryDeployment.PhaseConfig.Builder addProfiles(String value)

Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

Parameter
Name Description
value String

The profiles to add.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

addProfilesBytes(ByteString value)

public CustomCanaryDeployment.PhaseConfig.Builder addProfilesBytes(ByteString value)

Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

Parameter
Name Description
value ByteString

The bytes of the profiles to add.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomCanaryDeployment.PhaseConfig build()
Returns
Type Description
CustomCanaryDeployment.PhaseConfig

buildPartial()

public CustomCanaryDeployment.PhaseConfig buildPartial()
Returns
Type Description
CustomCanaryDeployment.PhaseConfig

clear()

public CustomCanaryDeployment.PhaseConfig.Builder clear()
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPercentage()

public CustomCanaryDeployment.PhaseConfig.Builder clearPercentage()

Required. Percentage deployment for the phase.

int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

clearPhaseId()

public CustomCanaryDeployment.PhaseConfig.Builder clearPhaseId()

Required. The ID to assign to the Rollout phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

clearPostdeploy()

public CustomCanaryDeployment.PhaseConfig.Builder clearPostdeploy()

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

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

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

clearPredeploy()

public CustomCanaryDeployment.PhaseConfig.Builder clearPredeploy()

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

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

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

clearProfiles()

public CustomCanaryDeployment.PhaseConfig.Builder clearProfiles()

Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

clearVerify()

public CustomCanaryDeployment.PhaseConfig.Builder clearVerify()

Whether to run verify tests after the deployment.

bool verify = 4;

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

clone()

public CustomCanaryDeployment.PhaseConfig.Builder clone()
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder
Overrides

getDefaultInstanceForType()

public CustomCanaryDeployment.PhaseConfig getDefaultInstanceForType()
Returns
Type Description
CustomCanaryDeployment.PhaseConfig

getDescriptorForType()

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

getPercentage()

public int getPercentage()

Required. Percentage deployment for the phase.

int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The percentage.

getPhaseId()

public String getPhaseId()

Required. The ID to assign to the Rollout phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The phaseId.

getPhaseIdBytes()

public ByteString getPhaseIdBytes()

Required. The ID to assign to the Rollout phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for phaseId.

getPostdeploy()

public Postdeploy getPostdeploy()

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

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

Returns
Type Description
Postdeploy

The postdeploy.

getPostdeployBuilder()

public Postdeploy.Builder getPostdeployBuilder()

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

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

Returns
Type Description
Postdeploy.Builder

getPostdeployOrBuilder()

public PostdeployOrBuilder getPostdeployOrBuilder()

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

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

Returns
Type Description
PostdeployOrBuilder

getPredeploy()

public Predeploy getPredeploy()

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

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

Returns
Type Description
Predeploy

The predeploy.

getPredeployBuilder()

public Predeploy.Builder getPredeployBuilder()

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

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

Returns
Type Description
Predeploy.Builder

getPredeployOrBuilder()

public PredeployOrBuilder getPredeployOrBuilder()

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

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

Returns
Type Description
PredeployOrBuilder

getProfiles(int index)

public String getProfiles(int index)

Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

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 phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

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 phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

Returns
Type Description
int

The count of profiles.

getProfilesList()

public ProtocolStringList getProfilesList()

Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

Returns
Type Description
ProtocolStringList

A list containing the profiles.

getVerify()

public boolean getVerify()

Whether to run verify tests after the deployment.

bool verify = 4;

Returns
Type Description
boolean

The verify.

hasPostdeploy()

public boolean hasPostdeploy()

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

.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.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 this phase. If this is not configured, there will be no predeploy job for this phase.

.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.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(CustomCanaryDeployment.PhaseConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePostdeploy(Postdeploy value)

public CustomCanaryDeployment.PhaseConfig.Builder mergePostdeploy(Postdeploy value)

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

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

Parameter
Name Description
value Postdeploy
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

mergePredeploy(Predeploy value)

public CustomCanaryDeployment.PhaseConfig.Builder mergePredeploy(Predeploy value)

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

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

Parameter
Name Description
value Predeploy
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPercentage(int value)

public CustomCanaryDeployment.PhaseConfig.Builder setPercentage(int value)

Required. Percentage deployment for the phase.

int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The percentage to set.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

setPhaseId(String value)

public CustomCanaryDeployment.PhaseConfig.Builder setPhaseId(String value)

Required. The ID to assign to the Rollout phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The phaseId to set.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

setPhaseIdBytes(ByteString value)

public CustomCanaryDeployment.PhaseConfig.Builder setPhaseIdBytes(ByteString value)

Required. The ID to assign to the Rollout phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for phaseId to set.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

setPostdeploy(Postdeploy value)

public CustomCanaryDeployment.PhaseConfig.Builder setPostdeploy(Postdeploy value)

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

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

Parameter
Name Description
value Postdeploy
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

setPostdeploy(Postdeploy.Builder builderForValue)

public CustomCanaryDeployment.PhaseConfig.Builder setPostdeploy(Postdeploy.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Postdeploy.Builder
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

setPredeploy(Predeploy value)

public CustomCanaryDeployment.PhaseConfig.Builder setPredeploy(Predeploy value)

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

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

Parameter
Name Description
value Predeploy
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

setPredeploy(Predeploy.Builder builderForValue)

public CustomCanaryDeployment.PhaseConfig.Builder setPredeploy(Predeploy.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Predeploy.Builder
Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

setProfiles(int index, String value)

public CustomCanaryDeployment.PhaseConfig.Builder setProfiles(int index, String value)

Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline stage.

repeated string profiles = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The profiles to set.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVerify(boolean value)

public CustomCanaryDeployment.PhaseConfig.Builder setVerify(boolean value)

Whether to run verify tests after the deployment.

bool verify = 4;

Parameter
Name Description
value boolean

The verify to set.

Returns
Type Description
CustomCanaryDeployment.PhaseConfig.Builder

This builder for chaining.