Class X509Extension.Builder (2.53.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.53.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   static   final   class  X509Extension . Builder   extends   GeneratedMessageV3 . Builder<X509Extension . Builder >  implements   X509ExtensionOrBuilder  
   
   An X509Extension 
 specifies an X.509 extension, which may be used in different parts of X.509
 objects like certificates, CSRs, and CRLs.
 Protobuf type google.cloud.security.privateca.v1.X509Extension
 
  
  
  
    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   X509Extension . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  build() 
  
    
public   X509Extension   build ()  
   
  
   
  buildPartial() 
  
    
public   X509Extension   buildPartial ()  
   
  
   
  clear() 
  
    
public   X509Extension . Builder   clear ()  
   
  
  Overrides 
  
   
  clearCritical() 
  
    
public   X509Extension . Builder   clearCritical ()  
   
   Optional. Indicates whether or not this extension is critical (i.e., if the
 client does not know how to handle this extension, the client should
 consider this to be an error).
 bool critical = 2 [(.google.api.field_behavior) = OPTIONAL];
 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   X509Extension . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  
  
  Overrides 
  
   
  clearObjectId() 
  
    
public   X509Extension . Builder   clearObjectId ()  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   X509Extension . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  
  
  Overrides 
  
   
  clearValue() 
  
    
public   X509Extension . Builder   clearValue ()  
   
   Required. The value of this X.509 extension.
 bytes value = 3 [(.google.api.field_behavior) = REQUIRED];
 
  
   
  clone() 
  
    
public   X509Extension . Builder   clone ()  
   
  
  Overrides 
  
   
  getCritical() 
  
    
public   boolean   getCritical ()  
   
   Optional. Indicates whether or not this extension is critical (i.e., if the
 client does not know how to handle this extension, the client should
 consider this to be an error).
 bool critical = 2 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        The critical.
 
       
     
  
   
  getDefaultInstanceForType() 
  
    
public   X509Extension   getDefaultInstanceForType ()  
   
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  
  Overrides 
  
   
  getObjectId() 
  
    
public   ObjectId   getObjectId ()  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ObjectId  
        The objectId.
 
       
     
  
   
  getObjectIdBuilder() 
  
    
public   ObjectId . Builder   getObjectIdBuilder ()  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
   
  getObjectIdOrBuilder() 
  
    
public   ObjectIdOrBuilder   getObjectIdOrBuilder ()  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
   
  getValue() 
  
    
public   ByteString   getValue ()  
   
   Required. The value of this X.509 extension.
 bytes value = 3 [(.google.api.field_behavior) = REQUIRED];
 
  
   
  hasObjectId() 
  
    
public   boolean   hasObjectId ()  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the objectId field is set.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  mergeFrom(X509Extension other) 
  
    
public   X509Extension . Builder   mergeFrom ( X509Extension   other )  
   
  
  
   
  
  
    
public   X509Extension . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  Overrides 
  
  
   
  mergeFrom(Message other) 
  
    
public   X509Extension . Builder   mergeFrom ( Message   other )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        other 
        Message  
       
     
  
  
  Overrides 
  
   
  mergeObjectId(ObjectId value) 
  
    
public   X509Extension . Builder   mergeObjectId ( ObjectId   value )  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        ObjectId  
       
     
  
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   X509Extension . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  setCritical(boolean value) 
  
    
public   X509Extension . Builder   setCritical ( boolean   value )  
   
   Optional. Indicates whether or not this extension is critical (i.e., if the
 client does not know how to handle this extension, the client should
 consider this to be an error).
 bool critical = 2 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        boolean The critical to set.
 
       
     
  
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   X509Extension . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  setObjectId(ObjectId value) 
  
    
public   X509Extension . Builder   setObjectId ( ObjectId   value )  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        ObjectId  
       
     
  
  
   
  setObjectId(ObjectId.Builder builderForValue) 
  
    
public   X509Extension . Builder   setObjectId ( ObjectId . Builder   builderForValue )  
   
   Required. The OID for this X.509 extension.
 
 .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED];
 
 
  
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   X509Extension . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   X509Extension . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  setValue(ByteString value) 
  
    
public   X509Extension . Builder   setValue ( ByteString   value )  
   
   Required. The value of this X.509 extension.
 bytes value = 3 [(.google.api.field_behavior) = REQUIRED];
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        ByteString The value 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."],[],[]]