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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface CanaryDeploymentOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.CanaryDeploymentOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.deploy.v1.CanaryDeploymentOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.deploy.v1.CanaryDeploymentOrBuilder) \n\n public interface CanaryDeploymentOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getPercentages(int index)\n\n public abstract int getPercentages(int index)\n\nRequired. The percentage based deployments that will occur as a part of a\n`Rollout`. List is expected in ascending order and each integer n is\n0 \\\u003c= n \\\u003c 100.\n\n`repeated int32 percentages = 1;`\n\n### getPercentagesCount()\n\n public abstract int getPercentagesCount()\n\nRequired. The percentage based deployments that will occur as a part of a\n`Rollout`. List is expected in ascending order and each integer n is\n0 \\\u003c= n \\\u003c 100.\n\n`repeated int32 percentages = 1;`\n\n### getPercentagesList()\n\n public abstract List\u003cInteger\u003e getPercentagesList()\n\nRequired. The percentage based deployments that will occur as a part of a\n`Rollout`. List is expected in ascending order and each integer n is\n0 \\\u003c= n \\\u003c 100.\n\n`repeated int32 percentages = 1;`\n\n### getPostdeploy()\n\n public abstract Postdeploy getPostdeploy()\n\nOptional. Configuration for the postdeploy job of the last phase. If this\nis not configured, there will be no postdeploy job for this phase.\n\n`.google.events.cloud.deploy.v1.Postdeploy postdeploy = 4;`\n\n### getPostdeployOrBuilder()\n\n public abstract PostdeployOrBuilder getPostdeployOrBuilder()\n\nOptional. Configuration for the postdeploy job of the last phase. If this\nis not configured, there will be no postdeploy job for this phase.\n\n`.google.events.cloud.deploy.v1.Postdeploy postdeploy = 4;`\n\n### getPredeploy()\n\n public abstract Predeploy getPredeploy()\n\nOptional. Configuration for the predeploy job of the first phase. If this\nis not configured, there will be no predeploy job for this phase.\n\n`.google.events.cloud.deploy.v1.Predeploy predeploy = 3;`\n\n### getPredeployOrBuilder()\n\n public abstract PredeployOrBuilder getPredeployOrBuilder()\n\nOptional. Configuration for the predeploy job of the first phase. If this\nis not configured, there will be no predeploy job for this phase.\n\n`.google.events.cloud.deploy.v1.Predeploy predeploy = 3;`\n\n### getVerify()\n\n public abstract boolean getVerify()\n\nWhether to run verify tests after each percentage deployment.\n\n`bool verify = 2;`\n\n### hasPostdeploy()\n\n public abstract boolean hasPostdeploy()\n\nOptional. Configuration for the postdeploy job of the last phase. If this\nis not configured, there will be no postdeploy job for this phase.\n\n`.google.events.cloud.deploy.v1.Postdeploy postdeploy = 4;`\n\n### hasPredeploy()\n\n public abstract boolean hasPredeploy()\n\nOptional. Configuration for the predeploy job of the first phase. If this\nis not configured, there will be no predeploy job for this phase.\n\n`.google.events.cloud.deploy.v1.Predeploy predeploy = 3;`"]]