Class CertificateAuthority.KeyVersionSpec (2.24.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.24.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  CertificateAuthority . KeyVersionSpec   extends   GeneratedMessageV3   implements   CertificateAuthority . KeyVersionSpecOrBuilder  
   A Cloud KMS key configuration that a
 CertificateAuthority 
 will use.
 Protobuf type google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  ALGORITHM_FIELD_NUMBER 
  
    
public   static   final   int   ALGORITHM_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CLOUD_KMS_KEY_VERSION_FIELD_NUMBER 
  
    
public   static   final   int   CLOUD_KMS_KEY_VERSION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   CertificateAuthority . KeyVersionSpec   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   CertificateAuthority . KeyVersionSpec . Builder   newBuilder ()  
  
  newBuilder(CertificateAuthority.KeyVersionSpec prototype) 
  
    
public   static   CertificateAuthority . KeyVersionSpec . Builder   newBuilder ( CertificateAuthority . KeyVersionSpec   prototype )  
  
  
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CertificateAuthority . KeyVersionSpec   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<CertificateAuthority . KeyVersionSpec >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getAlgorithm() 
  
    
public   CertificateAuthority . SignHashAlgorithm   getAlgorithm ()  
   The algorithm to use for creating a managed Cloud KMS key for a for a
 simplified experience. All managed keys will be have their
 ProtectionLevel  as HSM.
 
 .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
 
getAlgorithmValue() 
  
    
public   int   getAlgorithmValue ()  
   The algorithm to use for creating a managed Cloud KMS key for a for a
 simplified experience. All managed keys will be have their
 ProtectionLevel  as HSM.
 
 .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for algorithm.
 
     
  
  getCloudKmsKeyVersion() 
  
    
public   String   getCloudKmsKeyVersion ()  
   The resource name for an existing Cloud KMS CryptoKeyVersion in the
 format
 projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.
 This option enables full flexibility in the key's capabilities and
 properties.
 string cloud_kms_key_version = 1;
    
      
        Returns  
      
        Type Description  
      
        String The cloudKmsKeyVersion.
 
     
  
  getCloudKmsKeyVersionBytes() 
  
    
public   ByteString   getCloudKmsKeyVersionBytes ()  
   The resource name for an existing Cloud KMS CryptoKeyVersion in the
 format
 projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.
 This option enables full flexibility in the key's capabilities and
 properties.
 string cloud_kms_key_version = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for cloudKmsKeyVersion.
 
     
  
  getDefaultInstanceForType() 
  
    
public   CertificateAuthority . KeyVersionSpec   getDefaultInstanceForType ()  
  
  getKeyVersionCase() 
  
    
public   CertificateAuthority . KeyVersionSpec . KeyVersionCase   getKeyVersionCase ()  
  
  getParserForType() 
  
    
public   Parser<CertificateAuthority . KeyVersionSpec >  getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hasAlgorithm() 
  
    
public   boolean   hasAlgorithm ()  
   The algorithm to use for creating a managed Cloud KMS key for a for a
 simplified experience. All managed keys will be have their
 ProtectionLevel  as HSM.
 
 .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the algorithm field is set.
 
     
  
  hasCloudKmsKeyVersion() 
  
    
public   boolean   hasCloudKmsKeyVersion ()  
   The resource name for an existing Cloud KMS CryptoKeyVersion in the
 format
 projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.
 This option enables full flexibility in the key's capabilities and
 properties.
 string cloud_kms_key_version = 1;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the cloudKmsKeyVersion field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   CertificateAuthority . KeyVersionSpec . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   CertificateAuthority . KeyVersionSpec . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   CertificateAuthority . KeyVersionSpec . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  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-11 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-11 UTC."],[],[]]