Class EnumTypeOptions.Builder (0.72.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.72.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  EnumTypeOptions . Builder   extends   GeneratedMessageV3 . Builder<EnumTypeOptions . Builder >  implements   EnumTypeOptionsOrBuilder  
   Configurations for an enum/categorical property.
 Protobuf type google.cloud.contentwarehouse.v1.EnumTypeOptions
    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
   
  addAllPossibleValues(Iterable<String> values) 
  
    
public   EnumTypeOptions . Builder   addAllPossibleValues ( Iterable<String>   values )  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valuesIterable <String >The possibleValues to add.
 
     
  
  
  addPossibleValues(String value) 
  
    
public   EnumTypeOptions . Builder   addPossibleValues ( String   value )  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueString The possibleValues to add.
 
     
  
  
  addPossibleValuesBytes(ByteString value) 
  
    
public   EnumTypeOptions . Builder   addPossibleValuesBytes ( ByteString   value )  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes of the possibleValues to add.
 
     
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   EnumTypeOptions . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   EnumTypeOptions   build ()  
  
  buildPartial() 
  
    
public   EnumTypeOptions   buildPartial ()  
  
  clear() 
  
    
public   EnumTypeOptions . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   EnumTypeOptions . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   EnumTypeOptions . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearPossibleValues() 
  
    
public   EnumTypeOptions . Builder   clearPossibleValues ()  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
clearValidationCheckDisabled() 
  
    
public   EnumTypeOptions . Builder   clearValidationCheckDisabled ()  
   Make sure the Enum property value provided in the document is in the
 possile value list during document creation. The validation check runs by
 default.
 bool validation_check_disabled = 2;
clone() 
  
    
public   EnumTypeOptions . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   EnumTypeOptions   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getPossibleValues(int index) 
  
    
public   String   getPossibleValues ( int   index )  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String The possibleValues at the given index.
 
     
  
  getPossibleValuesBytes(int index) 
  
    
public   ByteString   getPossibleValuesBytes ( int   index )  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the possibleValues at the given index.
 
     
  
  getPossibleValuesCount() 
  
    
public   int   getPossibleValuesCount ()  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        int The count of possibleValues.
 
     
  
  getPossibleValuesList() 
  
    
public   ProtocolStringList   getPossibleValuesList ()  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
getValidationCheckDisabled() 
  
    
public   boolean   getValidationCheckDisabled ()  
   Make sure the Enum property value provided in the document is in the
 possile value list during document creation. The validation check runs by
 default.
 bool validation_check_disabled = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean The validationCheckDisabled.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(EnumTypeOptions other) 
  
    
public   EnumTypeOptions . Builder   mergeFrom ( EnumTypeOptions   other )  
  
  
  mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   EnumTypeOptions . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   EnumTypeOptions . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   EnumTypeOptions . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   EnumTypeOptions . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setPossibleValues(int index, String value) 
  
    
public   EnumTypeOptions . Builder   setPossibleValues ( int   index ,   String   value )  
   Required. List of possible enum values.
 repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameters  
      
        Name Description  
      
        indexint The index to set the value at.
 
      
        valueString The possibleValues to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   EnumTypeOptions . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   EnumTypeOptions . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setValidationCheckDisabled(boolean value) 
  
    
public   EnumTypeOptions . Builder   setValidationCheckDisabled ( boolean   value )  
   Make sure the Enum property value provided in the document is in the
 possile value list during document creation. The validation check runs by
 default.
 bool validation_check_disabled = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The validationCheckDisabled 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-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."],[],[]]