Class CanaryDeployment (1.46.0)

public final class CanaryDeployment extends GeneratedMessageV3 implements CanaryDeploymentOrBuilder

CanaryDeployment represents the canary deployment configuration

Protobuf type google.cloud.deploy.v1.CanaryDeployment

Static Fields

PERCENTAGES_FIELD_NUMBER

public static final int PERCENTAGES_FIELD_NUMBER
Field Value
Type Description
int

POSTDEPLOY_FIELD_NUMBER

public static final int POSTDEPLOY_FIELD_NUMBER
Field Value
Type Description
int

PREDEPLOY_FIELD_NUMBER

public static final int PREDEPLOY_FIELD_NUMBER
Field Value
Type Description
int

VERIFY_FIELD_NUMBER

public static final int VERIFY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CanaryDeployment getDefaultInstance()
Returns
Type Description
CanaryDeployment

getDescriptor()

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

newBuilder()

public static CanaryDeployment.Builder newBuilder()
Returns
Type Description
CanaryDeployment.Builder

newBuilder(CanaryDeployment prototype)

public static CanaryDeployment.Builder newBuilder(CanaryDeployment prototype)
Parameter
Name Description
prototype CanaryDeployment
Returns
Type Description
CanaryDeployment.Builder

parseDelimitedFrom(InputStream input)

public static CanaryDeployment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CanaryDeployment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CanaryDeployment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CanaryDeployment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CanaryDeployment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CanaryDeployment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CanaryDeployment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CanaryDeployment> parser()
Returns
Type Description
Parser<CanaryDeployment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CanaryDeployment getDefaultInstanceForType()
Returns
Type Description
CanaryDeployment

getParserForType()

public Parser<CanaryDeployment> getParserForType()
Returns
Type Description
Parser<CanaryDeployment>
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. If the GatewayServiceMesh is configured for Kubernetes, then the range for 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. If the GatewayServiceMesh is configured for Kubernetes, then the range for 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. If the GatewayServiceMesh is configured for Kubernetes, then the range for 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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CanaryDeployment.Builder newBuilderForType()
Returns
Type Description
CanaryDeployment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CanaryDeployment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CanaryDeployment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CanaryDeployment.Builder toBuilder()
Returns
Type Description
CanaryDeployment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException