Class GceShieldedIdentity.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GceShieldedIdentity.Builder>
com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder
All Implemented Interfaces:
GceShieldedIdentityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GceShieldedIdentity

public static final class GceShieldedIdentity.Builder extends com.google.protobuf.GeneratedMessage.Builder<GceShieldedIdentity.Builder> implements GceShieldedIdentityOrBuilder
 GceShieldedIdentity contains information about a Compute Engine instance.
 
Protobuf type google.cloud.confidentialcomputing.v1.GceShieldedIdentity
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GceShieldedIdentity.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GceShieldedIdentity.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GceShieldedIdentity.Builder>
    • getDefaultInstanceForType

      public GceShieldedIdentity getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GceShieldedIdentity build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GceShieldedIdentity buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GceShieldedIdentity.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GceShieldedIdentity.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GceShieldedIdentity.Builder>
    • mergeFrom

      public GceShieldedIdentity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GceShieldedIdentity.Builder>
      Throws:
      IOException
    • getAkCert

      public com.google.protobuf.ByteString getAkCert()
       Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
       known as an AK or a TPM restricted signing key) used to generate the
       quotes.
       
      bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAkCert in interface GceShieldedIdentityOrBuilder
      Returns:
      The akCert.
    • setAkCert

      public GceShieldedIdentity.Builder setAkCert(com.google.protobuf.ByteString value)
       Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
       known as an AK or a TPM restricted signing key) used to generate the
       quotes.
       
      bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The akCert to set.
      Returns:
      This builder for chaining.
    • clearAkCert

      public GceShieldedIdentity.Builder clearAkCert()
       Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
       known as an AK or a TPM restricted signing key) used to generate the
       quotes.
       
      bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getAkCertChainList

      public List<com.google.protobuf.ByteString> getAkCertChainList()
       Optional. List of DER-encoded X.509 certificates which, together with the
       ak_cert, chain back to a trusted Root Certificate.
       
      repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAkCertChainList in interface GceShieldedIdentityOrBuilder
      Returns:
      A list containing the akCertChain.
    • getAkCertChainCount

      public int getAkCertChainCount()
       Optional. List of DER-encoded X.509 certificates which, together with the
       ak_cert, chain back to a trusted Root Certificate.
       
      repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAkCertChainCount in interface GceShieldedIdentityOrBuilder
      Returns:
      The count of akCertChain.
    • getAkCertChain

      public com.google.protobuf.ByteString getAkCertChain(int index)
       Optional. List of DER-encoded X.509 certificates which, together with the
       ak_cert, chain back to a trusted Root Certificate.
       
      repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAkCertChain in interface GceShieldedIdentityOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The akCertChain at the given index.
    • setAkCertChain

      public GceShieldedIdentity.Builder setAkCertChain(int index, com.google.protobuf.ByteString value)
       Optional. List of DER-encoded X.509 certificates which, together with the
       ak_cert, chain back to a trusted Root Certificate.
       
      repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The akCertChain to set.
      Returns:
      This builder for chaining.
    • addAkCertChain

      public GceShieldedIdentity.Builder addAkCertChain(com.google.protobuf.ByteString value)
       Optional. List of DER-encoded X.509 certificates which, together with the
       ak_cert, chain back to a trusted Root Certificate.
       
      repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The akCertChain to add.
      Returns:
      This builder for chaining.
    • addAllAkCertChain

      public GceShieldedIdentity.Builder addAllAkCertChain(Iterable<? extends com.google.protobuf.ByteString> values)
       Optional. List of DER-encoded X.509 certificates which, together with the
       ak_cert, chain back to a trusted Root Certificate.
       
      repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The akCertChain to add.
      Returns:
      This builder for chaining.
    • clearAkCertChain

      public GceShieldedIdentity.Builder clearAkCertChain()
       Optional. List of DER-encoded X.509 certificates which, together with the
       ak_cert, chain back to a trusted Root Certificate.
       
      repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.