lib/google/spanner/v1/transaction_pb.rb



# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/spanner/v1/transaction.proto

require 'google/protobuf'

require 'google/protobuf/duration_pb'
require 'google/protobuf/timestamp_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/spanner/v1/transaction.proto", :syntax => :proto3) do
    add_message "google.spanner.v1.TransactionOptions" do
      oneof :mode do
        optional :read_write, :message, 1, "google.spanner.v1.TransactionOptions.ReadWrite"
        optional :partitioned_dml, :message, 3, "google.spanner.v1.TransactionOptions.PartitionedDml"
        optional :read_only, :message, 2, "google.spanner.v1.TransactionOptions.ReadOnly"
      end
    end
    add_message "google.spanner.v1.TransactionOptions.ReadWrite" do
    end
    add_message "google.spanner.v1.TransactionOptions.PartitionedDml" do
    end
    add_message "google.spanner.v1.TransactionOptions.ReadOnly" do
      optional :return_read_timestamp, :bool, 6
      oneof :timestamp_bound do
        optional :strong, :bool, 1
        optional :min_read_timestamp, :message, 2, "google.protobuf.Timestamp"
        optional :max_staleness, :message, 3, "google.protobuf.Duration"
        optional :read_timestamp, :message, 4, "google.protobuf.Timestamp"
        optional :exact_staleness, :message, 5, "google.protobuf.Duration"
      end
    end
    add_message "google.spanner.v1.Transaction" do
      optional :id, :bytes, 1
      optional :read_timestamp, :message, 2, "google.protobuf.Timestamp"
    end
    add_message "google.spanner.v1.TransactionSelector" do
      oneof :selector do
        optional :single_use, :message, 1, "google.spanner.v1.TransactionOptions"
        optional :id, :bytes, 2
        optional :begin, :message, 3, "google.spanner.v1.TransactionOptions"
      end
    end
  end
end

module Google
  module Cloud
    module Spanner
      module V1
        TransactionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions").msgclass
        TransactionOptions::ReadWrite = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.ReadWrite").msgclass
        TransactionOptions::PartitionedDml = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.PartitionedDml").msgclass
        TransactionOptions::ReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.ReadOnly").msgclass
        Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Transaction").msgclass
        TransactionSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionSelector").msgclass
      end
    end
  end
end