Class CanaryDeployment (1.61.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.61.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  CanaryDeployment   extends   GeneratedMessageV3   implements   CanaryDeploymentOrBuilder  
   CanaryDeployment represents the canary deployment configuration
 Protobuf type google.cloud.deploy.v1.CanaryDeployment
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  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 ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   CanaryDeployment . Builder   newBuilder ()  
  
  newBuilder(CanaryDeployment prototype) 
  
    
public   static   CanaryDeployment . Builder   newBuilder ( CanaryDeployment   prototype )  
  
  
  
    
public   static   CanaryDeployment   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   CanaryDeployment   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   CanaryDeployment   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CanaryDeployment   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   CanaryDeployment   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CanaryDeployment   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   CanaryDeployment   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   CanaryDeployment   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   CanaryDeployment   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   CanaryDeployment   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   CanaryDeployment   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CanaryDeployment   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<CanaryDeployment>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   CanaryDeployment   getDefaultInstanceForType ()  
  
  getParserForType() 
  
    
public   Parser<CanaryDeployment>   getParserForType ()  
  
  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  
      
        indexint 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];
 
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];
 
getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getVerify() 
  
    
public   boolean   getVerify ()  
   Optional. Whether to run verify tests after each percentage deployment via
 skaffold verify.
 bool verify = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        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() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   CanaryDeployment . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   CanaryDeployment . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   CanaryDeployment . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]