Class CanaryDeployment.Builder (1.13.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.13.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  CanaryDeployment . Builder   extends   GeneratedMessageV3 . Builder<CanaryDeployment . Builder >  implements   CanaryDeploymentOrBuilder  
   
   CanaryDeployment represents the canary deployment configuration
 Protobuf type google.cloud.deploy.v1.CanaryDeployment
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
  Methods
   
   
  addAllPercentages(Iterable<? extends Integer> values) 
  
    
public   CanaryDeployment . Builder   addAllPercentages ( Iterable <?   extends   Integer >  values )  
   
   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  
       
      
        Name  
        Description  
       
      
        values 
        Iterable <? extends java.lang.Integer >The percentages to add.
 
       
     
  
  
   
  addPercentages(int value) 
  
    
public   CanaryDeployment . Builder   addPercentages ( int   value )  
   
   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  
       
      
        Name  
        Description  
       
      
        value 
        int The percentages to add.
 
       
     
  
  
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CanaryDeployment . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  build() 
  
    
public   CanaryDeployment   build ()  
   
  
   
  buildPartial() 
  
    
public   CanaryDeployment   buildPartial ()  
   
  
   
  clear() 
  
    
public   CanaryDeployment . Builder   clear ()  
   
  
  Overrides 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   CanaryDeployment . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   CanaryDeployment . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  
  
  Overrides 
  
   
  clearPercentages() 
  
    
public   CanaryDeployment . Builder   clearPercentages ()  
   
   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];
 
  
   
  clearVerify() 
  
    
public   CanaryDeployment . Builder   clearVerify ()  
   
   Whether to run verify tests after each percentage deployment.
 bool verify = 2;
 
  
   
  clone() 
  
    
public   CanaryDeployment . Builder   clone ()  
   
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   CanaryDeployment   getDefaultInstanceForType ()  
   
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  
  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  
       
      
        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.
 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.
 repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <Integer > 
        A list containing the percentages.
 
       
     
  
   
  getVerify() 
  
    
public   boolean   getVerify ()  
   
   Whether to run verify tests after each percentage deployment.
 bool verify = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        The verify.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  mergeFrom(CanaryDeployment other) 
  
    
public   CanaryDeployment . Builder   mergeFrom ( CanaryDeployment   other )  
   
  
  
   
  
  
    
public   CanaryDeployment . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  Overrides 
  
  
   
  mergeFrom(Message other) 
  
    
public   CanaryDeployment . Builder   mergeFrom ( Message   other )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        other 
        Message  
       
     
  
  
  Overrides 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CanaryDeployment . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CanaryDeployment . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  setPercentages(int index, int value) 
  
    
public   CanaryDeployment . Builder   setPercentages ( int   index ,   int   value )  
   
   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];
 
  
    
      
        Parameters  
       
      
        Name  
        Description  
       
      
        index 
        int The index to set the value at.
 
       
      
        value 
        int The percentages to set.
 
       
     
  
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   CanaryDeployment . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CanaryDeployment . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  setVerify(boolean value) 
  
    
public   CanaryDeployment . Builder   setVerify ( boolean   value )  
   
   Whether to run verify tests after each percentage deployment.
 bool verify = 2;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        boolean The verify to set.
 
       
     
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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-30 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-30 UTC."],[],[]]