Send feedback
  
   
 
  
    
      Class Resources.PkixPublicKey.Builder (1.13.0)
    
    
      
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
  
   
  
    
  
  
    
    
    
    
  Version 1.13.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Resources . PkixPublicKey . Builder   extends   GeneratedMessageV3 . Builder<Resources . PkixPublicKey . Builder >  implements   Resources . PkixPublicKeyOrBuilder  
  
  
  
  
    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
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Resources . PkixPublicKey . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   Resources . PkixPublicKey   build ()  
  
  buildPartial() 
  
    
public   Resources . PkixPublicKey   buildPartial ()  
  
  clear() 
  
    
public   Resources . PkixPublicKey . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   Resources . PkixPublicKey . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   Resources . PkixPublicKey . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearPublicKeyPem() 
  
    
public   Resources . PkixPublicKey . Builder   clearPublicKeyPem ()  
  
  
  clearSignatureAlgorithm() 
  
    
public   Resources . PkixPublicKey . Builder   clearSignatureAlgorithm ()  
   The signature algorithm used to verify a message against a signature using
 this key.
 These signature algorithm must match the structure and any object
 identifiers encoded in public_key_pem (i.e. this algorithm must match
 that of the public key).
 
 .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
 
clone() 
  
    
public   Resources . PkixPublicKey . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Resources . PkixPublicKey   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getPublicKeyPem() 
  
    
public   String   getPublicKeyPem ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The publicKeyPem.
 
     
  
  getPublicKeyPemBytes() 
  
    
public   ByteString   getPublicKeyPemBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for publicKeyPem.
 
     
  
  getSignatureAlgorithm() 
  
    
public   Resources . PkixPublicKey . SignatureAlgorithm   getSignatureAlgorithm ()  
   The signature algorithm used to verify a message against a signature using
 this key.
 These signature algorithm must match the structure and any object
 identifiers encoded in public_key_pem (i.e. this algorithm must match
 that of the public key).
 
 .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
 
getSignatureAlgorithmValue() 
  
    
public   int   getSignatureAlgorithmValue ()  
   The signature algorithm used to verify a message against a signature using
 this key.
 These signature algorithm must match the structure and any object
 identifiers encoded in public_key_pem (i.e. this algorithm must match
 that of the public key).
 
 .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for signatureAlgorithm.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   Resources . PkixPublicKey . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   Resources . PkixPublicKey . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeFrom(Resources.PkixPublicKey other) 
  
    
public   Resources . PkixPublicKey . Builder   mergeFrom ( Resources . PkixPublicKey   other )  
  
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Resources . PkixPublicKey . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Resources . PkixPublicKey . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setPublicKeyPem(String value) 
  
    
public   Resources . PkixPublicKey . Builder   setPublicKeyPem ( String   value )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        valueString The publicKeyPem to set.
 
     
  
  
  setPublicKeyPemBytes(ByteString value) 
  
    
public   Resources . PkixPublicKey . Builder   setPublicKeyPemBytes ( ByteString   value )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for publicKeyPem to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   Resources . PkixPublicKey . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setSignatureAlgorithm(Resources.PkixPublicKey.SignatureAlgorithm value) 
  
    
public   Resources . PkixPublicKey . Builder   setSignatureAlgorithm ( Resources . PkixPublicKey . SignatureAlgorithm   value )  
   The signature algorithm used to verify a message against a signature using
 this key.
 These signature algorithm must match the structure and any object
 identifiers encoded in public_key_pem (i.e. this algorithm must match
 that of the public key).
 
 .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
 
setSignatureAlgorithmValue(int value) 
  
    
public   Resources . PkixPublicKey . Builder   setSignatureAlgorithmValue ( int   value )  
   The signature algorithm used to verify a message against a signature using
 this key.
 These signature algorithm must match the structure and any object
 identifiers encoded in public_key_pem (i.e. this algorithm must match
 that of the public key).
 
 .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
 
    
      
        Parameter  
      
        Name Description  
      
        valueint The enum numeric value on the wire for signatureAlgorithm to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Resources . PkixPublicKey . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]