Class AnalyzerOrgPolicyConstraint.Builder (3.82.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  AnalyzerOrgPolicyConstraint . Builder   extends   GeneratedMessageV3 . Builder<AnalyzerOrgPolicyConstraint . Builder >  implements   AnalyzerOrgPolicyConstraintOrBuilder  
   
   The organization policy constraint definition.
 Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicyConstraint
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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
   
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  build() 
  
    
public   AnalyzerOrgPolicyConstraint   build ()  
   
  
   
  buildPartial() 
  
    
public   AnalyzerOrgPolicyConstraint   buildPartial ()  
   
  
   
  clear() 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   clear ()  
   
  
  Overrides 
  
   
  clearConstraintDefinition() 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   clearConstraintDefinition ()  
   
  
   
  clearCustomConstraint() 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   clearCustomConstraint ()  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  
  
  Overrides 
  
   
  clearGoogleDefinedConstraint() 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   clearGoogleDefinedConstraint ()  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  
  
  Overrides 
  
   
  clone() 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   clone ()  
   
  
  Overrides 
  
   
  getConstraintDefinitionCase() 
  
    
public   AnalyzerOrgPolicyConstraint . ConstraintDefinitionCase   getConstraintDefinitionCase ()  
   
  
   
  getCustomConstraint() 
  
    
public   AnalyzerOrgPolicyConstraint . CustomConstraint   getCustomConstraint ()  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
   
  getCustomConstraintBuilder() 
  
    
public   AnalyzerOrgPolicyConstraint . CustomConstraint . Builder   getCustomConstraintBuilder ()  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
   
  getCustomConstraintOrBuilder() 
  
    
public   AnalyzerOrgPolicyConstraint . CustomConstraintOrBuilder   getCustomConstraintOrBuilder ()  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
   
  getDefaultInstanceForType() 
  
    
public   AnalyzerOrgPolicyConstraint   getDefaultInstanceForType ()  
   
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  
  Overrides 
  
   
  getGoogleDefinedConstraint() 
  
    
public   AnalyzerOrgPolicyConstraint . Constraint   getGoogleDefinedConstraint ()  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
   
  getGoogleDefinedConstraintBuilder() 
  
    
public   AnalyzerOrgPolicyConstraint . Constraint . Builder   getGoogleDefinedConstraintBuilder ()  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
   
  getGoogleDefinedConstraintOrBuilder() 
  
    
public   AnalyzerOrgPolicyConstraint . ConstraintOrBuilder   getGoogleDefinedConstraintOrBuilder ()  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
   
  hasCustomConstraint() 
  
    
public   boolean   hasCustomConstraint ()  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the customConstraint field is set.
 
       
     
  
   
  hasGoogleDefinedConstraint() 
  
    
public   boolean   hasGoogleDefinedConstraint ()  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the googleDefinedConstraint field is set.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  mergeCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint value) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   mergeCustomConstraint ( AnalyzerOrgPolicyConstraint . CustomConstraint   value )  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
  
   
  mergeFrom(AnalyzerOrgPolicyConstraint other) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   mergeFrom ( AnalyzerOrgPolicyConstraint   other )  
   
  
  
   
  
  
    
public   AnalyzerOrgPolicyConstraint . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  Overrides 
  
  
   
  mergeFrom(Message other) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   mergeFrom ( Message   other )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        other 
        Message  
       
     
  
  
  Overrides 
  
   
  mergeGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint value) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   mergeGoogleDefinedConstraint ( AnalyzerOrgPolicyConstraint . Constraint   value )  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AnalyzerOrgPolicyConstraint . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  setCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint value) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   setCustomConstraint ( AnalyzerOrgPolicyConstraint . CustomConstraint   value )  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
  
   
  setCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint.Builder builderForValue) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   setCustomConstraint ( AnalyzerOrgPolicyConstraint . CustomConstraint . Builder   builderForValue )  
   
   The definition of the custom constraint.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;
 
 
  
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  setGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint value) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   setGoogleDefinedConstraint ( AnalyzerOrgPolicyConstraint . Constraint   value )  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
  
   
  setGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint.Builder builderForValue) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   setGoogleDefinedConstraint ( AnalyzerOrgPolicyConstraint . Constraint . Builder   builderForValue )  
   
   The definition of the canned constraint defined by Google.
 
 .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;
 
 
  
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   AnalyzerOrgPolicyConstraint . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AnalyzerOrgPolicyConstraint . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  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-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."],[],[]]