Current section
Files
Jump to
Current section
Files
lib/google/datastore/v1/datastore.pb.ex
defmodule Google.Datastore.V1.CommitRequest.Mode do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :MODE_UNSPECIFIED, 0
field :TRANSACTIONAL, 1
field :NON_TRANSACTIONAL, 2
end
defmodule Google.Datastore.V1.ReadOptions.ReadConsistency do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :READ_CONSISTENCY_UNSPECIFIED, 0
field :STRONG, 1
field :EVENTUAL, 2
end
defmodule Google.Datastore.V1.LookupRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :read_options, 1, type: Google.Datastore.V1.ReadOptions, json_name: "readOptions"
field :keys, 3, repeated: true, type: Google.Datastore.V1.Key, deprecated: false
end
defmodule Google.Datastore.V1.LookupResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :found, 1, repeated: true, type: Google.Datastore.V1.EntityResult
field :missing, 2, repeated: true, type: Google.Datastore.V1.EntityResult
field :deferred, 3, repeated: true, type: Google.Datastore.V1.Key
field :transaction, 5, type: :bytes
field :read_time, 7, type: Google.Protobuf.Timestamp, json_name: "readTime"
end
defmodule Google.Datastore.V1.RunQueryRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
oneof :query_type, 0
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :partition_id, 2, type: Google.Datastore.V1.PartitionId, json_name: "partitionId"
field :read_options, 1, type: Google.Datastore.V1.ReadOptions, json_name: "readOptions"
field :query, 3, type: Google.Datastore.V1.Query, oneof: 0
field :gql_query, 7, type: Google.Datastore.V1.GqlQuery, json_name: "gqlQuery", oneof: 0
end
defmodule Google.Datastore.V1.RunQueryResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :batch, 1, type: Google.Datastore.V1.QueryResultBatch
field :query, 2, type: Google.Datastore.V1.Query
field :transaction, 5, type: :bytes
end
defmodule Google.Datastore.V1.RunAggregationQueryRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
oneof :query_type, 0
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :partition_id, 2, type: Google.Datastore.V1.PartitionId, json_name: "partitionId"
field :read_options, 1, type: Google.Datastore.V1.ReadOptions, json_name: "readOptions"
field :aggregation_query, 3,
type: Google.Datastore.V1.AggregationQuery,
json_name: "aggregationQuery",
oneof: 0
field :gql_query, 7, type: Google.Datastore.V1.GqlQuery, json_name: "gqlQuery", oneof: 0
end
defmodule Google.Datastore.V1.RunAggregationQueryResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :batch, 1, type: Google.Datastore.V1.AggregationResultBatch
field :query, 2, type: Google.Datastore.V1.AggregationQuery
field :transaction, 5, type: :bytes
end
defmodule Google.Datastore.V1.BeginTransactionRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :transaction_options, 10,
type: Google.Datastore.V1.TransactionOptions,
json_name: "transactionOptions"
end
defmodule Google.Datastore.V1.BeginTransactionResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :transaction, 1, type: :bytes
end
defmodule Google.Datastore.V1.RollbackRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :transaction, 1, type: :bytes, deprecated: false
end
defmodule Google.Datastore.V1.RollbackResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
end
defmodule Google.Datastore.V1.CommitRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
oneof :transaction_selector, 0
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :mode, 5, type: Google.Datastore.V1.CommitRequest.Mode, enum: true
field :transaction, 1, type: :bytes, oneof: 0
field :single_use_transaction, 10,
type: Google.Datastore.V1.TransactionOptions,
json_name: "singleUseTransaction",
oneof: 0
field :mutations, 6, repeated: true, type: Google.Datastore.V1.Mutation
end
defmodule Google.Datastore.V1.CommitResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :mutation_results, 3,
repeated: true,
type: Google.Datastore.V1.MutationResult,
json_name: "mutationResults"
field :index_updates, 4, type: :int32, json_name: "indexUpdates"
field :commit_time, 8, type: Google.Protobuf.Timestamp, json_name: "commitTime"
end
defmodule Google.Datastore.V1.AllocateIdsRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :keys, 1, repeated: true, type: Google.Datastore.V1.Key, deprecated: false
end
defmodule Google.Datastore.V1.AllocateIdsResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :keys, 1, repeated: true, type: Google.Datastore.V1.Key
end
defmodule Google.Datastore.V1.ReserveIdsRequest do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :project_id, 8, type: :string, json_name: "projectId", deprecated: false
field :database_id, 9, type: :string, json_name: "databaseId"
field :keys, 1, repeated: true, type: Google.Datastore.V1.Key, deprecated: false
end
defmodule Google.Datastore.V1.ReserveIdsResponse do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
end
defmodule Google.Datastore.V1.Mutation do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
oneof :operation, 0
oneof :conflict_detection_strategy, 1
field :insert, 4, type: Google.Datastore.V1.Entity, oneof: 0
field :update, 5, type: Google.Datastore.V1.Entity, oneof: 0
field :upsert, 6, type: Google.Datastore.V1.Entity, oneof: 0
field :delete, 7, type: Google.Datastore.V1.Key, oneof: 0
field :base_version, 8, type: :int64, json_name: "baseVersion", oneof: 1
field :update_time, 11, type: Google.Protobuf.Timestamp, json_name: "updateTime", oneof: 1
end
defmodule Google.Datastore.V1.MutationResult do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :key, 3, type: Google.Datastore.V1.Key
field :version, 4, type: :int64
field :create_time, 7, type: Google.Protobuf.Timestamp, json_name: "createTime"
field :update_time, 6, type: Google.Protobuf.Timestamp, json_name: "updateTime"
field :conflict_detected, 5, type: :bool, json_name: "conflictDetected"
end
defmodule Google.Datastore.V1.ReadOptions do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
oneof :consistency_type, 0
field :read_consistency, 1,
type: Google.Datastore.V1.ReadOptions.ReadConsistency,
json_name: "readConsistency",
enum: true,
oneof: 0
field :transaction, 2, type: :bytes, oneof: 0
field :new_transaction, 3,
type: Google.Datastore.V1.TransactionOptions,
json_name: "newTransaction",
oneof: 0
field :read_time, 4, type: Google.Protobuf.Timestamp, json_name: "readTime", oneof: 0
end
defmodule Google.Datastore.V1.TransactionOptions.ReadWrite do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :previous_transaction, 1, type: :bytes, json_name: "previousTransaction"
end
defmodule Google.Datastore.V1.TransactionOptions.ReadOnly do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :read_time, 1, type: Google.Protobuf.Timestamp, json_name: "readTime"
end
defmodule Google.Datastore.V1.TransactionOptions do
@moduledoc false
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
oneof :mode, 0
field :read_write, 1,
type: Google.Datastore.V1.TransactionOptions.ReadWrite,
json_name: "readWrite",
oneof: 0
field :read_only, 2,
type: Google.Datastore.V1.TransactionOptions.ReadOnly,
json_name: "readOnly",
oneof: 0
end
defmodule Google.Datastore.V1.Datastore.Service do
@moduledoc false
use GRPC.Service, name: "google.datastore.v1.Datastore", protoc_gen_elixir_version: "0.12.0"
rpc :Lookup, Google.Datastore.V1.LookupRequest, Google.Datastore.V1.LookupResponse
rpc :RunQuery, Google.Datastore.V1.RunQueryRequest, Google.Datastore.V1.RunQueryResponse
rpc :RunAggregationQuery,
Google.Datastore.V1.RunAggregationQueryRequest,
Google.Datastore.V1.RunAggregationQueryResponse
rpc :BeginTransaction,
Google.Datastore.V1.BeginTransactionRequest,
Google.Datastore.V1.BeginTransactionResponse
rpc :Commit, Google.Datastore.V1.CommitRequest, Google.Datastore.V1.CommitResponse
rpc :Rollback, Google.Datastore.V1.RollbackRequest, Google.Datastore.V1.RollbackResponse
rpc :AllocateIds,
Google.Datastore.V1.AllocateIdsRequest,
Google.Datastore.V1.AllocateIdsResponse
rpc :ReserveIds, Google.Datastore.V1.ReserveIdsRequest, Google.Datastore.V1.ReserveIdsResponse
end
defmodule Google.Datastore.V1.Datastore.Stub do
@moduledoc false
use GRPC.Stub, service: Google.Datastore.V1.Datastore.Service
end