# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/confidentialcomputing/v1/service.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/timestamp_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/cloud/confidentialcomputing/v1/service.proto", :syntax => :proto3) do
    add_message "google.cloud.confidentialcomputing.v1.Challenge" do
      optional :name, :string, 1
      optional :create_time, :message, 2, "google.protobuf.Timestamp"
      optional :expire_time, :message, 3, "google.protobuf.Timestamp"
      optional :used, :bool, 4
      optional :tpm_nonce, :string, 6
    end
    add_message "google.cloud.confidentialcomputing.v1.CreateChallengeRequest" do
      optional :parent, :string, 1
      optional :challenge, :message, 2, "google.cloud.confidentialcomputing.v1.Challenge"
    end
    add_message "google.cloud.confidentialcomputing.v1.VerifyAttestationRequest" do
      optional :challenge, :string, 1
      optional :gcp_credentials, :message, 2, "google.cloud.confidentialcomputing.v1.GcpCredentials"
      optional :tpm_attestation, :message, 3, "google.cloud.confidentialcomputing.v1.TpmAttestation"
    end
    add_message "google.cloud.confidentialcomputing.v1.VerifyAttestationResponse" do
      optional :oidc_claims_token, :string, 2
    end
    add_message "google.cloud.confidentialcomputing.v1.GcpCredentials" do
      repeated :service_account_id_tokens, :string, 2
    end
    add_message "google.cloud.confidentialcomputing.v1.TpmAttestation" do
      repeated :quotes, :message, 1, "google.cloud.confidentialcomputing.v1.TpmAttestation.Quote"
      optional :tcg_event_log, :bytes, 2
      optional :canonical_event_log, :bytes, 3
      optional :ak_cert, :bytes, 4
      repeated :cert_chain, :bytes, 5
    end
    add_message "google.cloud.confidentialcomputing.v1.TpmAttestation.Quote" do
      optional :hash_algo, :int32, 1
      map :pcr_values, :int32, :bytes, 2
      optional :raw_quote, :bytes, 3
      optional :raw_signature, :bytes, 4
    end
  end
end

module Google
  module Cloud
    module ConfidentialComputing
      module V1
        Challenge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.confidentialcomputing.v1.Challenge").msgclass
        CreateChallengeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.confidentialcomputing.v1.CreateChallengeRequest").msgclass
        VerifyAttestationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.confidentialcomputing.v1.VerifyAttestationRequest").msgclass
        VerifyAttestationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.confidentialcomputing.v1.VerifyAttestationResponse").msgclass
        GcpCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.confidentialcomputing.v1.GcpCredentials").msgclass
        TpmAttestation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.confidentialcomputing.v1.TpmAttestation").msgclass
        TpmAttestation::Quote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.confidentialcomputing.v1.TpmAttestation.Quote").msgclass
      end
    end
  end
end