Class CanaryDeployment (1.38.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
TypeDescription
int

POSTDEPLOY_FIELD_NUMBER

public static final int POSTDEPLOY_FIELD_NUMBER
Field Value
TypeDescription
int

PREDEPLOY_FIELD_NUMBER

public static final int PREDEPLOY_FIELD_NUMBER
Field Value
TypeDescription
int

VERIFY_FIELD_NUMBER

public static final int VERIFY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CanaryDeployment getDefaultInstance()
Returns
TypeDescription
CanaryDeployment

getDescriptor()

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

newBuilder()

public static CanaryDeployment.Builder newBuilder()
Returns
TypeDescription
CanaryDeployment.Builder

newBuilder(CanaryDeployment prototype)

public static CanaryDeployment.Builder newBuilder(CanaryDeployment prototype)
Parameter
NameDescription
prototypeCanaryDeployment
Returns
TypeDescription
CanaryDeployment.Builder

parseDelimitedFrom(InputStream input)

public static CanaryDeployment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CanaryDeployment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CanaryDeployment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CanaryDeployment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CanaryDeployment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CanaryDeployment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CanaryDeployment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CanaryDeployment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CanaryDeployment> parser()
Returns
TypeDescription
Parser<CanaryDeployment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CanaryDeployment getDefaultInstanceForType()
Returns
TypeDescription
CanaryDeployment

getParserForType()

public Parser<CanaryDeployment> getParserForType()
Returns
TypeDescription
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.

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CanaryDeployment.Builder newBuilderForType()
Returns
TypeDescription
CanaryDeployment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CanaryDeployment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CanaryDeployment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CanaryDeployment.Builder toBuilder()
Returns
TypeDescription
CanaryDeployment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException