1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/datastore/v1beta3/datastore.proto
3
4package datastore
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	_ "google.golang.org/genproto/googleapis/api/annotations"
13	grpc "google.golang.org/grpc"
14	codes "google.golang.org/grpc/codes"
15	status "google.golang.org/grpc/status"
16)
17
18// Reference imports to suppress errors if they are not otherwise used.
19var _ = proto.Marshal
20var _ = fmt.Errorf
21var _ = math.Inf
22
23// This is a compile-time assertion to ensure that this generated file
24// is compatible with the proto package it is being compiled against.
25// A compilation error at this line likely means your copy of the
26// proto package needs to be updated.
27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
28
29// The modes available for commits.
30type CommitRequest_Mode int32
31
32const (
33	// Unspecified. This value must not be used.
34	CommitRequest_MODE_UNSPECIFIED CommitRequest_Mode = 0
35	// Transactional: The mutations are either all applied, or none are applied.
36	// Learn about transactions
37	// [here](https://cloud.google.com/datastore/docs/concepts/transactions).
38	CommitRequest_TRANSACTIONAL CommitRequest_Mode = 1
39	// Non-transactional: The mutations may not apply as all or none.
40	CommitRequest_NON_TRANSACTIONAL CommitRequest_Mode = 2
41)
42
43var CommitRequest_Mode_name = map[int32]string{
44	0: "MODE_UNSPECIFIED",
45	1: "TRANSACTIONAL",
46	2: "NON_TRANSACTIONAL",
47}
48
49var CommitRequest_Mode_value = map[string]int32{
50	"MODE_UNSPECIFIED":  0,
51	"TRANSACTIONAL":     1,
52	"NON_TRANSACTIONAL": 2,
53}
54
55func (x CommitRequest_Mode) String() string {
56	return proto.EnumName(CommitRequest_Mode_name, int32(x))
57}
58
59func (CommitRequest_Mode) EnumDescriptor() ([]byte, []int) {
60	return fileDescriptor_3be32184765753d5, []int{8, 0}
61}
62
63// The possible values for read consistencies.
64type ReadOptions_ReadConsistency int32
65
66const (
67	// Unspecified. This value must not be used.
68	ReadOptions_READ_CONSISTENCY_UNSPECIFIED ReadOptions_ReadConsistency = 0
69	// Strong consistency.
70	ReadOptions_STRONG ReadOptions_ReadConsistency = 1
71	// Eventual consistency.
72	ReadOptions_EVENTUAL ReadOptions_ReadConsistency = 2
73)
74
75var ReadOptions_ReadConsistency_name = map[int32]string{
76	0: "READ_CONSISTENCY_UNSPECIFIED",
77	1: "STRONG",
78	2: "EVENTUAL",
79}
80
81var ReadOptions_ReadConsistency_value = map[string]int32{
82	"READ_CONSISTENCY_UNSPECIFIED": 0,
83	"STRONG":                       1,
84	"EVENTUAL":                     2,
85}
86
87func (x ReadOptions_ReadConsistency) String() string {
88	return proto.EnumName(ReadOptions_ReadConsistency_name, int32(x))
89}
90
91func (ReadOptions_ReadConsistency) EnumDescriptor() ([]byte, []int) {
92	return fileDescriptor_3be32184765753d5, []int{16, 0}
93}
94
95// The request for
96// [Datastore.Lookup][google.datastore.v1beta3.Datastore.Lookup].
97type LookupRequest struct {
98	// The ID of the project against which to make the request.
99	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
100	// The options for this lookup request.
101	ReadOptions *ReadOptions `protobuf:"bytes,1,opt,name=read_options,json=readOptions,proto3" json:"read_options,omitempty"`
102	// Keys of entities to look up.
103	Keys                 []*Key   `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"`
104	XXX_NoUnkeyedLiteral struct{} `json:"-"`
105	XXX_unrecognized     []byte   `json:"-"`
106	XXX_sizecache        int32    `json:"-"`
107}
108
109func (m *LookupRequest) Reset()         { *m = LookupRequest{} }
110func (m *LookupRequest) String() string { return proto.CompactTextString(m) }
111func (*LookupRequest) ProtoMessage()    {}
112func (*LookupRequest) Descriptor() ([]byte, []int) {
113	return fileDescriptor_3be32184765753d5, []int{0}
114}
115
116func (m *LookupRequest) XXX_Unmarshal(b []byte) error {
117	return xxx_messageInfo_LookupRequest.Unmarshal(m, b)
118}
119func (m *LookupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
120	return xxx_messageInfo_LookupRequest.Marshal(b, m, deterministic)
121}
122func (m *LookupRequest) XXX_Merge(src proto.Message) {
123	xxx_messageInfo_LookupRequest.Merge(m, src)
124}
125func (m *LookupRequest) XXX_Size() int {
126	return xxx_messageInfo_LookupRequest.Size(m)
127}
128func (m *LookupRequest) XXX_DiscardUnknown() {
129	xxx_messageInfo_LookupRequest.DiscardUnknown(m)
130}
131
132var xxx_messageInfo_LookupRequest proto.InternalMessageInfo
133
134func (m *LookupRequest) GetProjectId() string {
135	if m != nil {
136		return m.ProjectId
137	}
138	return ""
139}
140
141func (m *LookupRequest) GetReadOptions() *ReadOptions {
142	if m != nil {
143		return m.ReadOptions
144	}
145	return nil
146}
147
148func (m *LookupRequest) GetKeys() []*Key {
149	if m != nil {
150		return m.Keys
151	}
152	return nil
153}
154
155// The response for
156// [Datastore.Lookup][google.datastore.v1beta3.Datastore.Lookup].
157type LookupResponse struct {
158	// Entities found as `ResultType.FULL` entities. The order of results in this
159	// field is undefined and has no relation to the order of the keys in the
160	// input.
161	Found []*EntityResult `protobuf:"bytes,1,rep,name=found,proto3" json:"found,omitempty"`
162	// Entities not found as `ResultType.KEY_ONLY` entities. The order of results
163	// in this field is undefined and has no relation to the order of the keys
164	// in the input.
165	Missing []*EntityResult `protobuf:"bytes,2,rep,name=missing,proto3" json:"missing,omitempty"`
166	// A list of keys that were not looked up due to resource constraints. The
167	// order of results in this field is undefined and has no relation to the
168	// order of the keys in the input.
169	Deferred             []*Key   `protobuf:"bytes,3,rep,name=deferred,proto3" json:"deferred,omitempty"`
170	XXX_NoUnkeyedLiteral struct{} `json:"-"`
171	XXX_unrecognized     []byte   `json:"-"`
172	XXX_sizecache        int32    `json:"-"`
173}
174
175func (m *LookupResponse) Reset()         { *m = LookupResponse{} }
176func (m *LookupResponse) String() string { return proto.CompactTextString(m) }
177func (*LookupResponse) ProtoMessage()    {}
178func (*LookupResponse) Descriptor() ([]byte, []int) {
179	return fileDescriptor_3be32184765753d5, []int{1}
180}
181
182func (m *LookupResponse) XXX_Unmarshal(b []byte) error {
183	return xxx_messageInfo_LookupResponse.Unmarshal(m, b)
184}
185func (m *LookupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
186	return xxx_messageInfo_LookupResponse.Marshal(b, m, deterministic)
187}
188func (m *LookupResponse) XXX_Merge(src proto.Message) {
189	xxx_messageInfo_LookupResponse.Merge(m, src)
190}
191func (m *LookupResponse) XXX_Size() int {
192	return xxx_messageInfo_LookupResponse.Size(m)
193}
194func (m *LookupResponse) XXX_DiscardUnknown() {
195	xxx_messageInfo_LookupResponse.DiscardUnknown(m)
196}
197
198var xxx_messageInfo_LookupResponse proto.InternalMessageInfo
199
200func (m *LookupResponse) GetFound() []*EntityResult {
201	if m != nil {
202		return m.Found
203	}
204	return nil
205}
206
207func (m *LookupResponse) GetMissing() []*EntityResult {
208	if m != nil {
209		return m.Missing
210	}
211	return nil
212}
213
214func (m *LookupResponse) GetDeferred() []*Key {
215	if m != nil {
216		return m.Deferred
217	}
218	return nil
219}
220
221// The request for
222// [Datastore.RunQuery][google.datastore.v1beta3.Datastore.RunQuery].
223type RunQueryRequest struct {
224	// The ID of the project against which to make the request.
225	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
226	// Entities are partitioned into subsets, identified by a partition ID.
227	// Queries are scoped to a single partition.
228	// This partition ID is normalized with the standard default context
229	// partition ID.
230	PartitionId *PartitionId `protobuf:"bytes,2,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
231	// The options for this query.
232	ReadOptions *ReadOptions `protobuf:"bytes,1,opt,name=read_options,json=readOptions,proto3" json:"read_options,omitempty"`
233	// The type of query.
234	//
235	// Types that are valid to be assigned to QueryType:
236	//	*RunQueryRequest_Query
237	//	*RunQueryRequest_GqlQuery
238	QueryType            isRunQueryRequest_QueryType `protobuf_oneof:"query_type"`
239	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
240	XXX_unrecognized     []byte                      `json:"-"`
241	XXX_sizecache        int32                       `json:"-"`
242}
243
244func (m *RunQueryRequest) Reset()         { *m = RunQueryRequest{} }
245func (m *RunQueryRequest) String() string { return proto.CompactTextString(m) }
246func (*RunQueryRequest) ProtoMessage()    {}
247func (*RunQueryRequest) Descriptor() ([]byte, []int) {
248	return fileDescriptor_3be32184765753d5, []int{2}
249}
250
251func (m *RunQueryRequest) XXX_Unmarshal(b []byte) error {
252	return xxx_messageInfo_RunQueryRequest.Unmarshal(m, b)
253}
254func (m *RunQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
255	return xxx_messageInfo_RunQueryRequest.Marshal(b, m, deterministic)
256}
257func (m *RunQueryRequest) XXX_Merge(src proto.Message) {
258	xxx_messageInfo_RunQueryRequest.Merge(m, src)
259}
260func (m *RunQueryRequest) XXX_Size() int {
261	return xxx_messageInfo_RunQueryRequest.Size(m)
262}
263func (m *RunQueryRequest) XXX_DiscardUnknown() {
264	xxx_messageInfo_RunQueryRequest.DiscardUnknown(m)
265}
266
267var xxx_messageInfo_RunQueryRequest proto.InternalMessageInfo
268
269func (m *RunQueryRequest) GetProjectId() string {
270	if m != nil {
271		return m.ProjectId
272	}
273	return ""
274}
275
276func (m *RunQueryRequest) GetPartitionId() *PartitionId {
277	if m != nil {
278		return m.PartitionId
279	}
280	return nil
281}
282
283func (m *RunQueryRequest) GetReadOptions() *ReadOptions {
284	if m != nil {
285		return m.ReadOptions
286	}
287	return nil
288}
289
290type isRunQueryRequest_QueryType interface {
291	isRunQueryRequest_QueryType()
292}
293
294type RunQueryRequest_Query struct {
295	Query *Query `protobuf:"bytes,3,opt,name=query,proto3,oneof"`
296}
297
298type RunQueryRequest_GqlQuery struct {
299	GqlQuery *GqlQuery `protobuf:"bytes,7,opt,name=gql_query,json=gqlQuery,proto3,oneof"`
300}
301
302func (*RunQueryRequest_Query) isRunQueryRequest_QueryType() {}
303
304func (*RunQueryRequest_GqlQuery) isRunQueryRequest_QueryType() {}
305
306func (m *RunQueryRequest) GetQueryType() isRunQueryRequest_QueryType {
307	if m != nil {
308		return m.QueryType
309	}
310	return nil
311}
312
313func (m *RunQueryRequest) GetQuery() *Query {
314	if x, ok := m.GetQueryType().(*RunQueryRequest_Query); ok {
315		return x.Query
316	}
317	return nil
318}
319
320func (m *RunQueryRequest) GetGqlQuery() *GqlQuery {
321	if x, ok := m.GetQueryType().(*RunQueryRequest_GqlQuery); ok {
322		return x.GqlQuery
323	}
324	return nil
325}
326
327// XXX_OneofWrappers is for the internal use of the proto package.
328func (*RunQueryRequest) XXX_OneofWrappers() []interface{} {
329	return []interface{}{
330		(*RunQueryRequest_Query)(nil),
331		(*RunQueryRequest_GqlQuery)(nil),
332	}
333}
334
335// The response for
336// [Datastore.RunQuery][google.datastore.v1beta3.Datastore.RunQuery].
337type RunQueryResponse struct {
338	// A batch of query results (always present).
339	Batch *QueryResultBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"`
340	// The parsed form of the `GqlQuery` from the request, if it was set.
341	Query                *Query   `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
342	XXX_NoUnkeyedLiteral struct{} `json:"-"`
343	XXX_unrecognized     []byte   `json:"-"`
344	XXX_sizecache        int32    `json:"-"`
345}
346
347func (m *RunQueryResponse) Reset()         { *m = RunQueryResponse{} }
348func (m *RunQueryResponse) String() string { return proto.CompactTextString(m) }
349func (*RunQueryResponse) ProtoMessage()    {}
350func (*RunQueryResponse) Descriptor() ([]byte, []int) {
351	return fileDescriptor_3be32184765753d5, []int{3}
352}
353
354func (m *RunQueryResponse) XXX_Unmarshal(b []byte) error {
355	return xxx_messageInfo_RunQueryResponse.Unmarshal(m, b)
356}
357func (m *RunQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
358	return xxx_messageInfo_RunQueryResponse.Marshal(b, m, deterministic)
359}
360func (m *RunQueryResponse) XXX_Merge(src proto.Message) {
361	xxx_messageInfo_RunQueryResponse.Merge(m, src)
362}
363func (m *RunQueryResponse) XXX_Size() int {
364	return xxx_messageInfo_RunQueryResponse.Size(m)
365}
366func (m *RunQueryResponse) XXX_DiscardUnknown() {
367	xxx_messageInfo_RunQueryResponse.DiscardUnknown(m)
368}
369
370var xxx_messageInfo_RunQueryResponse proto.InternalMessageInfo
371
372func (m *RunQueryResponse) GetBatch() *QueryResultBatch {
373	if m != nil {
374		return m.Batch
375	}
376	return nil
377}
378
379func (m *RunQueryResponse) GetQuery() *Query {
380	if m != nil {
381		return m.Query
382	}
383	return nil
384}
385
386// The request for
387// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].
388type BeginTransactionRequest struct {
389	// The ID of the project against which to make the request.
390	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
391	// Options for a new transaction.
392	TransactionOptions   *TransactionOptions `protobuf:"bytes,10,opt,name=transaction_options,json=transactionOptions,proto3" json:"transaction_options,omitempty"`
393	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
394	XXX_unrecognized     []byte              `json:"-"`
395	XXX_sizecache        int32               `json:"-"`
396}
397
398func (m *BeginTransactionRequest) Reset()         { *m = BeginTransactionRequest{} }
399func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) }
400func (*BeginTransactionRequest) ProtoMessage()    {}
401func (*BeginTransactionRequest) Descriptor() ([]byte, []int) {
402	return fileDescriptor_3be32184765753d5, []int{4}
403}
404
405func (m *BeginTransactionRequest) XXX_Unmarshal(b []byte) error {
406	return xxx_messageInfo_BeginTransactionRequest.Unmarshal(m, b)
407}
408func (m *BeginTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
409	return xxx_messageInfo_BeginTransactionRequest.Marshal(b, m, deterministic)
410}
411func (m *BeginTransactionRequest) XXX_Merge(src proto.Message) {
412	xxx_messageInfo_BeginTransactionRequest.Merge(m, src)
413}
414func (m *BeginTransactionRequest) XXX_Size() int {
415	return xxx_messageInfo_BeginTransactionRequest.Size(m)
416}
417func (m *BeginTransactionRequest) XXX_DiscardUnknown() {
418	xxx_messageInfo_BeginTransactionRequest.DiscardUnknown(m)
419}
420
421var xxx_messageInfo_BeginTransactionRequest proto.InternalMessageInfo
422
423func (m *BeginTransactionRequest) GetProjectId() string {
424	if m != nil {
425		return m.ProjectId
426	}
427	return ""
428}
429
430func (m *BeginTransactionRequest) GetTransactionOptions() *TransactionOptions {
431	if m != nil {
432		return m.TransactionOptions
433	}
434	return nil
435}
436
437// The response for
438// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].
439type BeginTransactionResponse struct {
440	// The transaction identifier (always present).
441	Transaction          []byte   `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
442	XXX_NoUnkeyedLiteral struct{} `json:"-"`
443	XXX_unrecognized     []byte   `json:"-"`
444	XXX_sizecache        int32    `json:"-"`
445}
446
447func (m *BeginTransactionResponse) Reset()         { *m = BeginTransactionResponse{} }
448func (m *BeginTransactionResponse) String() string { return proto.CompactTextString(m) }
449func (*BeginTransactionResponse) ProtoMessage()    {}
450func (*BeginTransactionResponse) Descriptor() ([]byte, []int) {
451	return fileDescriptor_3be32184765753d5, []int{5}
452}
453
454func (m *BeginTransactionResponse) XXX_Unmarshal(b []byte) error {
455	return xxx_messageInfo_BeginTransactionResponse.Unmarshal(m, b)
456}
457func (m *BeginTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
458	return xxx_messageInfo_BeginTransactionResponse.Marshal(b, m, deterministic)
459}
460func (m *BeginTransactionResponse) XXX_Merge(src proto.Message) {
461	xxx_messageInfo_BeginTransactionResponse.Merge(m, src)
462}
463func (m *BeginTransactionResponse) XXX_Size() int {
464	return xxx_messageInfo_BeginTransactionResponse.Size(m)
465}
466func (m *BeginTransactionResponse) XXX_DiscardUnknown() {
467	xxx_messageInfo_BeginTransactionResponse.DiscardUnknown(m)
468}
469
470var xxx_messageInfo_BeginTransactionResponse proto.InternalMessageInfo
471
472func (m *BeginTransactionResponse) GetTransaction() []byte {
473	if m != nil {
474		return m.Transaction
475	}
476	return nil
477}
478
479// The request for
480// [Datastore.Rollback][google.datastore.v1beta3.Datastore.Rollback].
481type RollbackRequest struct {
482	// The ID of the project against which to make the request.
483	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
484	// The transaction identifier, returned by a call to
485	// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].
486	Transaction          []byte   `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
487	XXX_NoUnkeyedLiteral struct{} `json:"-"`
488	XXX_unrecognized     []byte   `json:"-"`
489	XXX_sizecache        int32    `json:"-"`
490}
491
492func (m *RollbackRequest) Reset()         { *m = RollbackRequest{} }
493func (m *RollbackRequest) String() string { return proto.CompactTextString(m) }
494func (*RollbackRequest) ProtoMessage()    {}
495func (*RollbackRequest) Descriptor() ([]byte, []int) {
496	return fileDescriptor_3be32184765753d5, []int{6}
497}
498
499func (m *RollbackRequest) XXX_Unmarshal(b []byte) error {
500	return xxx_messageInfo_RollbackRequest.Unmarshal(m, b)
501}
502func (m *RollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
503	return xxx_messageInfo_RollbackRequest.Marshal(b, m, deterministic)
504}
505func (m *RollbackRequest) XXX_Merge(src proto.Message) {
506	xxx_messageInfo_RollbackRequest.Merge(m, src)
507}
508func (m *RollbackRequest) XXX_Size() int {
509	return xxx_messageInfo_RollbackRequest.Size(m)
510}
511func (m *RollbackRequest) XXX_DiscardUnknown() {
512	xxx_messageInfo_RollbackRequest.DiscardUnknown(m)
513}
514
515var xxx_messageInfo_RollbackRequest proto.InternalMessageInfo
516
517func (m *RollbackRequest) GetProjectId() string {
518	if m != nil {
519		return m.ProjectId
520	}
521	return ""
522}
523
524func (m *RollbackRequest) GetTransaction() []byte {
525	if m != nil {
526		return m.Transaction
527	}
528	return nil
529}
530
531// The response for
532// [Datastore.Rollback][google.datastore.v1beta3.Datastore.Rollback]. (an empty
533// message).
534type RollbackResponse struct {
535	XXX_NoUnkeyedLiteral struct{} `json:"-"`
536	XXX_unrecognized     []byte   `json:"-"`
537	XXX_sizecache        int32    `json:"-"`
538}
539
540func (m *RollbackResponse) Reset()         { *m = RollbackResponse{} }
541func (m *RollbackResponse) String() string { return proto.CompactTextString(m) }
542func (*RollbackResponse) ProtoMessage()    {}
543func (*RollbackResponse) Descriptor() ([]byte, []int) {
544	return fileDescriptor_3be32184765753d5, []int{7}
545}
546
547func (m *RollbackResponse) XXX_Unmarshal(b []byte) error {
548	return xxx_messageInfo_RollbackResponse.Unmarshal(m, b)
549}
550func (m *RollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
551	return xxx_messageInfo_RollbackResponse.Marshal(b, m, deterministic)
552}
553func (m *RollbackResponse) XXX_Merge(src proto.Message) {
554	xxx_messageInfo_RollbackResponse.Merge(m, src)
555}
556func (m *RollbackResponse) XXX_Size() int {
557	return xxx_messageInfo_RollbackResponse.Size(m)
558}
559func (m *RollbackResponse) XXX_DiscardUnknown() {
560	xxx_messageInfo_RollbackResponse.DiscardUnknown(m)
561}
562
563var xxx_messageInfo_RollbackResponse proto.InternalMessageInfo
564
565// The request for
566// [Datastore.Commit][google.datastore.v1beta3.Datastore.Commit].
567type CommitRequest struct {
568	// The ID of the project against which to make the request.
569	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
570	// The type of commit to perform. Defaults to `TRANSACTIONAL`.
571	Mode CommitRequest_Mode `protobuf:"varint,5,opt,name=mode,proto3,enum=google.datastore.v1beta3.CommitRequest_Mode" json:"mode,omitempty"`
572	// Must be set when mode is `TRANSACTIONAL`.
573	//
574	// Types that are valid to be assigned to TransactionSelector:
575	//	*CommitRequest_Transaction
576	TransactionSelector isCommitRequest_TransactionSelector `protobuf_oneof:"transaction_selector"`
577	// The mutations to perform.
578	//
579	// When mode is `TRANSACTIONAL`, mutations affecting a single entity are
580	// applied in order. The following sequences of mutations affecting a single
581	// entity are not permitted in a single `Commit` request:
582	//
583	// - `insert` followed by `insert`
584	// - `update` followed by `insert`
585	// - `upsert` followed by `insert`
586	// - `delete` followed by `update`
587	//
588	// When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
589	// entity.
590	Mutations            []*Mutation `protobuf:"bytes,6,rep,name=mutations,proto3" json:"mutations,omitempty"`
591	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
592	XXX_unrecognized     []byte      `json:"-"`
593	XXX_sizecache        int32       `json:"-"`
594}
595
596func (m *CommitRequest) Reset()         { *m = CommitRequest{} }
597func (m *CommitRequest) String() string { return proto.CompactTextString(m) }
598func (*CommitRequest) ProtoMessage()    {}
599func (*CommitRequest) Descriptor() ([]byte, []int) {
600	return fileDescriptor_3be32184765753d5, []int{8}
601}
602
603func (m *CommitRequest) XXX_Unmarshal(b []byte) error {
604	return xxx_messageInfo_CommitRequest.Unmarshal(m, b)
605}
606func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
607	return xxx_messageInfo_CommitRequest.Marshal(b, m, deterministic)
608}
609func (m *CommitRequest) XXX_Merge(src proto.Message) {
610	xxx_messageInfo_CommitRequest.Merge(m, src)
611}
612func (m *CommitRequest) XXX_Size() int {
613	return xxx_messageInfo_CommitRequest.Size(m)
614}
615func (m *CommitRequest) XXX_DiscardUnknown() {
616	xxx_messageInfo_CommitRequest.DiscardUnknown(m)
617}
618
619var xxx_messageInfo_CommitRequest proto.InternalMessageInfo
620
621func (m *CommitRequest) GetProjectId() string {
622	if m != nil {
623		return m.ProjectId
624	}
625	return ""
626}
627
628func (m *CommitRequest) GetMode() CommitRequest_Mode {
629	if m != nil {
630		return m.Mode
631	}
632	return CommitRequest_MODE_UNSPECIFIED
633}
634
635type isCommitRequest_TransactionSelector interface {
636	isCommitRequest_TransactionSelector()
637}
638
639type CommitRequest_Transaction struct {
640	Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3,oneof"`
641}
642
643func (*CommitRequest_Transaction) isCommitRequest_TransactionSelector() {}
644
645func (m *CommitRequest) GetTransactionSelector() isCommitRequest_TransactionSelector {
646	if m != nil {
647		return m.TransactionSelector
648	}
649	return nil
650}
651
652func (m *CommitRequest) GetTransaction() []byte {
653	if x, ok := m.GetTransactionSelector().(*CommitRequest_Transaction); ok {
654		return x.Transaction
655	}
656	return nil
657}
658
659func (m *CommitRequest) GetMutations() []*Mutation {
660	if m != nil {
661		return m.Mutations
662	}
663	return nil
664}
665
666// XXX_OneofWrappers is for the internal use of the proto package.
667func (*CommitRequest) XXX_OneofWrappers() []interface{} {
668	return []interface{}{
669		(*CommitRequest_Transaction)(nil),
670	}
671}
672
673// The response for
674// [Datastore.Commit][google.datastore.v1beta3.Datastore.Commit].
675type CommitResponse struct {
676	// The result of performing the mutations.
677	// The i-th mutation result corresponds to the i-th mutation in the request.
678	MutationResults []*MutationResult `protobuf:"bytes,3,rep,name=mutation_results,json=mutationResults,proto3" json:"mutation_results,omitempty"`
679	// The number of index entries updated during the commit, or zero if none were
680	// updated.
681	IndexUpdates         int32    `protobuf:"varint,4,opt,name=index_updates,json=indexUpdates,proto3" json:"index_updates,omitempty"`
682	XXX_NoUnkeyedLiteral struct{} `json:"-"`
683	XXX_unrecognized     []byte   `json:"-"`
684	XXX_sizecache        int32    `json:"-"`
685}
686
687func (m *CommitResponse) Reset()         { *m = CommitResponse{} }
688func (m *CommitResponse) String() string { return proto.CompactTextString(m) }
689func (*CommitResponse) ProtoMessage()    {}
690func (*CommitResponse) Descriptor() ([]byte, []int) {
691	return fileDescriptor_3be32184765753d5, []int{9}
692}
693
694func (m *CommitResponse) XXX_Unmarshal(b []byte) error {
695	return xxx_messageInfo_CommitResponse.Unmarshal(m, b)
696}
697func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
698	return xxx_messageInfo_CommitResponse.Marshal(b, m, deterministic)
699}
700func (m *CommitResponse) XXX_Merge(src proto.Message) {
701	xxx_messageInfo_CommitResponse.Merge(m, src)
702}
703func (m *CommitResponse) XXX_Size() int {
704	return xxx_messageInfo_CommitResponse.Size(m)
705}
706func (m *CommitResponse) XXX_DiscardUnknown() {
707	xxx_messageInfo_CommitResponse.DiscardUnknown(m)
708}
709
710var xxx_messageInfo_CommitResponse proto.InternalMessageInfo
711
712func (m *CommitResponse) GetMutationResults() []*MutationResult {
713	if m != nil {
714		return m.MutationResults
715	}
716	return nil
717}
718
719func (m *CommitResponse) GetIndexUpdates() int32 {
720	if m != nil {
721		return m.IndexUpdates
722	}
723	return 0
724}
725
726// The request for
727// [Datastore.AllocateIds][google.datastore.v1beta3.Datastore.AllocateIds].
728type AllocateIdsRequest struct {
729	// The ID of the project against which to make the request.
730	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
731	// A list of keys with incomplete key paths for which to allocate IDs.
732	// No key may be reserved/read-only.
733	Keys                 []*Key   `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
734	XXX_NoUnkeyedLiteral struct{} `json:"-"`
735	XXX_unrecognized     []byte   `json:"-"`
736	XXX_sizecache        int32    `json:"-"`
737}
738
739func (m *AllocateIdsRequest) Reset()         { *m = AllocateIdsRequest{} }
740func (m *AllocateIdsRequest) String() string { return proto.CompactTextString(m) }
741func (*AllocateIdsRequest) ProtoMessage()    {}
742func (*AllocateIdsRequest) Descriptor() ([]byte, []int) {
743	return fileDescriptor_3be32184765753d5, []int{10}
744}
745
746func (m *AllocateIdsRequest) XXX_Unmarshal(b []byte) error {
747	return xxx_messageInfo_AllocateIdsRequest.Unmarshal(m, b)
748}
749func (m *AllocateIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
750	return xxx_messageInfo_AllocateIdsRequest.Marshal(b, m, deterministic)
751}
752func (m *AllocateIdsRequest) XXX_Merge(src proto.Message) {
753	xxx_messageInfo_AllocateIdsRequest.Merge(m, src)
754}
755func (m *AllocateIdsRequest) XXX_Size() int {
756	return xxx_messageInfo_AllocateIdsRequest.Size(m)
757}
758func (m *AllocateIdsRequest) XXX_DiscardUnknown() {
759	xxx_messageInfo_AllocateIdsRequest.DiscardUnknown(m)
760}
761
762var xxx_messageInfo_AllocateIdsRequest proto.InternalMessageInfo
763
764func (m *AllocateIdsRequest) GetProjectId() string {
765	if m != nil {
766		return m.ProjectId
767	}
768	return ""
769}
770
771func (m *AllocateIdsRequest) GetKeys() []*Key {
772	if m != nil {
773		return m.Keys
774	}
775	return nil
776}
777
778// The response for
779// [Datastore.AllocateIds][google.datastore.v1beta3.Datastore.AllocateIds].
780type AllocateIdsResponse struct {
781	// The keys specified in the request (in the same order), each with
782	// its key path completed with a newly allocated ID.
783	Keys                 []*Key   `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
784	XXX_NoUnkeyedLiteral struct{} `json:"-"`
785	XXX_unrecognized     []byte   `json:"-"`
786	XXX_sizecache        int32    `json:"-"`
787}
788
789func (m *AllocateIdsResponse) Reset()         { *m = AllocateIdsResponse{} }
790func (m *AllocateIdsResponse) String() string { return proto.CompactTextString(m) }
791func (*AllocateIdsResponse) ProtoMessage()    {}
792func (*AllocateIdsResponse) Descriptor() ([]byte, []int) {
793	return fileDescriptor_3be32184765753d5, []int{11}
794}
795
796func (m *AllocateIdsResponse) XXX_Unmarshal(b []byte) error {
797	return xxx_messageInfo_AllocateIdsResponse.Unmarshal(m, b)
798}
799func (m *AllocateIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
800	return xxx_messageInfo_AllocateIdsResponse.Marshal(b, m, deterministic)
801}
802func (m *AllocateIdsResponse) XXX_Merge(src proto.Message) {
803	xxx_messageInfo_AllocateIdsResponse.Merge(m, src)
804}
805func (m *AllocateIdsResponse) XXX_Size() int {
806	return xxx_messageInfo_AllocateIdsResponse.Size(m)
807}
808func (m *AllocateIdsResponse) XXX_DiscardUnknown() {
809	xxx_messageInfo_AllocateIdsResponse.DiscardUnknown(m)
810}
811
812var xxx_messageInfo_AllocateIdsResponse proto.InternalMessageInfo
813
814func (m *AllocateIdsResponse) GetKeys() []*Key {
815	if m != nil {
816		return m.Keys
817	}
818	return nil
819}
820
821// The request for
822// [Datastore.ReserveIds][google.datastore.v1beta3.Datastore.ReserveIds].
823type ReserveIdsRequest struct {
824	// The ID of the project against which to make the request.
825	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
826	// If not empty, the ID of the database against which to make the request.
827	DatabaseId string `protobuf:"bytes,9,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
828	// A list of keys with complete key paths whose numeric IDs should not be
829	// auto-allocated.
830	Keys                 []*Key   `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
831	XXX_NoUnkeyedLiteral struct{} `json:"-"`
832	XXX_unrecognized     []byte   `json:"-"`
833	XXX_sizecache        int32    `json:"-"`
834}
835
836func (m *ReserveIdsRequest) Reset()         { *m = ReserveIdsRequest{} }
837func (m *ReserveIdsRequest) String() string { return proto.CompactTextString(m) }
838func (*ReserveIdsRequest) ProtoMessage()    {}
839func (*ReserveIdsRequest) Descriptor() ([]byte, []int) {
840	return fileDescriptor_3be32184765753d5, []int{12}
841}
842
843func (m *ReserveIdsRequest) XXX_Unmarshal(b []byte) error {
844	return xxx_messageInfo_ReserveIdsRequest.Unmarshal(m, b)
845}
846func (m *ReserveIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
847	return xxx_messageInfo_ReserveIdsRequest.Marshal(b, m, deterministic)
848}
849func (m *ReserveIdsRequest) XXX_Merge(src proto.Message) {
850	xxx_messageInfo_ReserveIdsRequest.Merge(m, src)
851}
852func (m *ReserveIdsRequest) XXX_Size() int {
853	return xxx_messageInfo_ReserveIdsRequest.Size(m)
854}
855func (m *ReserveIdsRequest) XXX_DiscardUnknown() {
856	xxx_messageInfo_ReserveIdsRequest.DiscardUnknown(m)
857}
858
859var xxx_messageInfo_ReserveIdsRequest proto.InternalMessageInfo
860
861func (m *ReserveIdsRequest) GetProjectId() string {
862	if m != nil {
863		return m.ProjectId
864	}
865	return ""
866}
867
868func (m *ReserveIdsRequest) GetDatabaseId() string {
869	if m != nil {
870		return m.DatabaseId
871	}
872	return ""
873}
874
875func (m *ReserveIdsRequest) GetKeys() []*Key {
876	if m != nil {
877		return m.Keys
878	}
879	return nil
880}
881
882// The response for
883// [Datastore.ReserveIds][google.datastore.v1beta3.Datastore.ReserveIds].
884type ReserveIdsResponse struct {
885	XXX_NoUnkeyedLiteral struct{} `json:"-"`
886	XXX_unrecognized     []byte   `json:"-"`
887	XXX_sizecache        int32    `json:"-"`
888}
889
890func (m *ReserveIdsResponse) Reset()         { *m = ReserveIdsResponse{} }
891func (m *ReserveIdsResponse) String() string { return proto.CompactTextString(m) }
892func (*ReserveIdsResponse) ProtoMessage()    {}
893func (*ReserveIdsResponse) Descriptor() ([]byte, []int) {
894	return fileDescriptor_3be32184765753d5, []int{13}
895}
896
897func (m *ReserveIdsResponse) XXX_Unmarshal(b []byte) error {
898	return xxx_messageInfo_ReserveIdsResponse.Unmarshal(m, b)
899}
900func (m *ReserveIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
901	return xxx_messageInfo_ReserveIdsResponse.Marshal(b, m, deterministic)
902}
903func (m *ReserveIdsResponse) XXX_Merge(src proto.Message) {
904	xxx_messageInfo_ReserveIdsResponse.Merge(m, src)
905}
906func (m *ReserveIdsResponse) XXX_Size() int {
907	return xxx_messageInfo_ReserveIdsResponse.Size(m)
908}
909func (m *ReserveIdsResponse) XXX_DiscardUnknown() {
910	xxx_messageInfo_ReserveIdsResponse.DiscardUnknown(m)
911}
912
913var xxx_messageInfo_ReserveIdsResponse proto.InternalMessageInfo
914
915// A mutation to apply to an entity.
916type Mutation struct {
917	// The mutation operation.
918	//
919	// For `insert`, `update`, and `upsert`:
920	// - The entity's key must not be reserved/read-only.
921	// - No property in the entity may have a reserved name,
922	//   not even a property in an entity in a value.
923	// - No value in the entity may have meaning 18,
924	//   not even a value in an entity in another value.
925	//
926	// Types that are valid to be assigned to Operation:
927	//	*Mutation_Insert
928	//	*Mutation_Update
929	//	*Mutation_Upsert
930	//	*Mutation_Delete
931	Operation isMutation_Operation `protobuf_oneof:"operation"`
932	// When set, the server will detect whether or not this mutation conflicts
933	// with the current version of the entity on the server. Conflicting mutations
934	// are not applied, and are marked as such in MutationResult.
935	//
936	// Types that are valid to be assigned to ConflictDetectionStrategy:
937	//	*Mutation_BaseVersion
938	ConflictDetectionStrategy isMutation_ConflictDetectionStrategy `protobuf_oneof:"conflict_detection_strategy"`
939	XXX_NoUnkeyedLiteral      struct{}                             `json:"-"`
940	XXX_unrecognized          []byte                               `json:"-"`
941	XXX_sizecache             int32                                `json:"-"`
942}
943
944func (m *Mutation) Reset()         { *m = Mutation{} }
945func (m *Mutation) String() string { return proto.CompactTextString(m) }
946func (*Mutation) ProtoMessage()    {}
947func (*Mutation) Descriptor() ([]byte, []int) {
948	return fileDescriptor_3be32184765753d5, []int{14}
949}
950
951func (m *Mutation) XXX_Unmarshal(b []byte) error {
952	return xxx_messageInfo_Mutation.Unmarshal(m, b)
953}
954func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
955	return xxx_messageInfo_Mutation.Marshal(b, m, deterministic)
956}
957func (m *Mutation) XXX_Merge(src proto.Message) {
958	xxx_messageInfo_Mutation.Merge(m, src)
959}
960func (m *Mutation) XXX_Size() int {
961	return xxx_messageInfo_Mutation.Size(m)
962}
963func (m *Mutation) XXX_DiscardUnknown() {
964	xxx_messageInfo_Mutation.DiscardUnknown(m)
965}
966
967var xxx_messageInfo_Mutation proto.InternalMessageInfo
968
969type isMutation_Operation interface {
970	isMutation_Operation()
971}
972
973type Mutation_Insert struct {
974	Insert *Entity `protobuf:"bytes,4,opt,name=insert,proto3,oneof"`
975}
976
977type Mutation_Update struct {
978	Update *Entity `protobuf:"bytes,5,opt,name=update,proto3,oneof"`
979}
980
981type Mutation_Upsert struct {
982	Upsert *Entity `protobuf:"bytes,6,opt,name=upsert,proto3,oneof"`
983}
984
985type Mutation_Delete struct {
986	Delete *Key `protobuf:"bytes,7,opt,name=delete,proto3,oneof"`
987}
988
989func (*Mutation_Insert) isMutation_Operation() {}
990
991func (*Mutation_Update) isMutation_Operation() {}
992
993func (*Mutation_Upsert) isMutation_Operation() {}
994
995func (*Mutation_Delete) isMutation_Operation() {}
996
997func (m *Mutation) GetOperation() isMutation_Operation {
998	if m != nil {
999		return m.Operation
1000	}
1001	return nil
1002}
1003
1004func (m *Mutation) GetInsert() *Entity {
1005	if x, ok := m.GetOperation().(*Mutation_Insert); ok {
1006		return x.Insert
1007	}
1008	return nil
1009}
1010
1011func (m *Mutation) GetUpdate() *Entity {
1012	if x, ok := m.GetOperation().(*Mutation_Update); ok {
1013		return x.Update
1014	}
1015	return nil
1016}
1017
1018func (m *Mutation) GetUpsert() *Entity {
1019	if x, ok := m.GetOperation().(*Mutation_Upsert); ok {
1020		return x.Upsert
1021	}
1022	return nil
1023}
1024
1025func (m *Mutation) GetDelete() *Key {
1026	if x, ok := m.GetOperation().(*Mutation_Delete); ok {
1027		return x.Delete
1028	}
1029	return nil
1030}
1031
1032type isMutation_ConflictDetectionStrategy interface {
1033	isMutation_ConflictDetectionStrategy()
1034}
1035
1036type Mutation_BaseVersion struct {
1037	BaseVersion int64 `protobuf:"varint,8,opt,name=base_version,json=baseVersion,proto3,oneof"`
1038}
1039
1040func (*Mutation_BaseVersion) isMutation_ConflictDetectionStrategy() {}
1041
1042func (m *Mutation) GetConflictDetectionStrategy() isMutation_ConflictDetectionStrategy {
1043	if m != nil {
1044		return m.ConflictDetectionStrategy
1045	}
1046	return nil
1047}
1048
1049func (m *Mutation) GetBaseVersion() int64 {
1050	if x, ok := m.GetConflictDetectionStrategy().(*Mutation_BaseVersion); ok {
1051		return x.BaseVersion
1052	}
1053	return 0
1054}
1055
1056// XXX_OneofWrappers is for the internal use of the proto package.
1057func (*Mutation) XXX_OneofWrappers() []interface{} {
1058	return []interface{}{
1059		(*Mutation_Insert)(nil),
1060		(*Mutation_Update)(nil),
1061		(*Mutation_Upsert)(nil),
1062		(*Mutation_Delete)(nil),
1063		(*Mutation_BaseVersion)(nil),
1064	}
1065}
1066
1067// The result of applying a mutation.
1068type MutationResult struct {
1069	// The automatically allocated key.
1070	// Set only when the mutation allocated a key.
1071	Key *Key `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
1072	// The version of the entity on the server after processing the mutation. If
1073	// the mutation doesn't change anything on the server, then the version will
1074	// be the version of the current entity or, if no entity is present, a version
1075	// that is strictly greater than the version of any previous entity and less
1076	// than the version of any possible future entity.
1077	Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
1078	// Whether a conflict was detected for this mutation. Always false when a
1079	// conflict detection strategy field is not set in the mutation.
1080	ConflictDetected     bool     `protobuf:"varint,5,opt,name=conflict_detected,json=conflictDetected,proto3" json:"conflict_detected,omitempty"`
1081	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1082	XXX_unrecognized     []byte   `json:"-"`
1083	XXX_sizecache        int32    `json:"-"`
1084}
1085
1086func (m *MutationResult) Reset()         { *m = MutationResult{} }
1087func (m *MutationResult) String() string { return proto.CompactTextString(m) }
1088func (*MutationResult) ProtoMessage()    {}
1089func (*MutationResult) Descriptor() ([]byte, []int) {
1090	return fileDescriptor_3be32184765753d5, []int{15}
1091}
1092
1093func (m *MutationResult) XXX_Unmarshal(b []byte) error {
1094	return xxx_messageInfo_MutationResult.Unmarshal(m, b)
1095}
1096func (m *MutationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1097	return xxx_messageInfo_MutationResult.Marshal(b, m, deterministic)
1098}
1099func (m *MutationResult) XXX_Merge(src proto.Message) {
1100	xxx_messageInfo_MutationResult.Merge(m, src)
1101}
1102func (m *MutationResult) XXX_Size() int {
1103	return xxx_messageInfo_MutationResult.Size(m)
1104}
1105func (m *MutationResult) XXX_DiscardUnknown() {
1106	xxx_messageInfo_MutationResult.DiscardUnknown(m)
1107}
1108
1109var xxx_messageInfo_MutationResult proto.InternalMessageInfo
1110
1111func (m *MutationResult) GetKey() *Key {
1112	if m != nil {
1113		return m.Key
1114	}
1115	return nil
1116}
1117
1118func (m *MutationResult) GetVersion() int64 {
1119	if m != nil {
1120		return m.Version
1121	}
1122	return 0
1123}
1124
1125func (m *MutationResult) GetConflictDetected() bool {
1126	if m != nil {
1127		return m.ConflictDetected
1128	}
1129	return false
1130}
1131
1132// The options shared by read requests.
1133type ReadOptions struct {
1134	// If not specified, lookups and ancestor queries default to
1135	// `read_consistency`=`STRONG`, global queries default to
1136	// `read_consistency`=`EVENTUAL`.
1137	//
1138	// Types that are valid to be assigned to ConsistencyType:
1139	//	*ReadOptions_ReadConsistency_
1140	//	*ReadOptions_Transaction
1141	ConsistencyType      isReadOptions_ConsistencyType `protobuf_oneof:"consistency_type"`
1142	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
1143	XXX_unrecognized     []byte                        `json:"-"`
1144	XXX_sizecache        int32                         `json:"-"`
1145}
1146
1147func (m *ReadOptions) Reset()         { *m = ReadOptions{} }
1148func (m *ReadOptions) String() string { return proto.CompactTextString(m) }
1149func (*ReadOptions) ProtoMessage()    {}
1150func (*ReadOptions) Descriptor() ([]byte, []int) {
1151	return fileDescriptor_3be32184765753d5, []int{16}
1152}
1153
1154func (m *ReadOptions) XXX_Unmarshal(b []byte) error {
1155	return xxx_messageInfo_ReadOptions.Unmarshal(m, b)
1156}
1157func (m *ReadOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1158	return xxx_messageInfo_ReadOptions.Marshal(b, m, deterministic)
1159}
1160func (m *ReadOptions) XXX_Merge(src proto.Message) {
1161	xxx_messageInfo_ReadOptions.Merge(m, src)
1162}
1163func (m *ReadOptions) XXX_Size() int {
1164	return xxx_messageInfo_ReadOptions.Size(m)
1165}
1166func (m *ReadOptions) XXX_DiscardUnknown() {
1167	xxx_messageInfo_ReadOptions.DiscardUnknown(m)
1168}
1169
1170var xxx_messageInfo_ReadOptions proto.InternalMessageInfo
1171
1172type isReadOptions_ConsistencyType interface {
1173	isReadOptions_ConsistencyType()
1174}
1175
1176type ReadOptions_ReadConsistency_ struct {
1177	ReadConsistency ReadOptions_ReadConsistency `protobuf:"varint,1,opt,name=read_consistency,json=readConsistency,proto3,enum=google.datastore.v1beta3.ReadOptions_ReadConsistency,oneof"`
1178}
1179
1180type ReadOptions_Transaction struct {
1181	Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3,oneof"`
1182}
1183
1184func (*ReadOptions_ReadConsistency_) isReadOptions_ConsistencyType() {}
1185
1186func (*ReadOptions_Transaction) isReadOptions_ConsistencyType() {}
1187
1188func (m *ReadOptions) GetConsistencyType() isReadOptions_ConsistencyType {
1189	if m != nil {
1190		return m.ConsistencyType
1191	}
1192	return nil
1193}
1194
1195func (m *ReadOptions) GetReadConsistency() ReadOptions_ReadConsistency {
1196	if x, ok := m.GetConsistencyType().(*ReadOptions_ReadConsistency_); ok {
1197		return x.ReadConsistency
1198	}
1199	return ReadOptions_READ_CONSISTENCY_UNSPECIFIED
1200}
1201
1202func (m *ReadOptions) GetTransaction() []byte {
1203	if x, ok := m.GetConsistencyType().(*ReadOptions_Transaction); ok {
1204		return x.Transaction
1205	}
1206	return nil
1207}
1208
1209// XXX_OneofWrappers is for the internal use of the proto package.
1210func (*ReadOptions) XXX_OneofWrappers() []interface{} {
1211	return []interface{}{
1212		(*ReadOptions_ReadConsistency_)(nil),
1213		(*ReadOptions_Transaction)(nil),
1214	}
1215}
1216
1217// Options for beginning a new transaction.
1218//
1219// Transactions can be created explicitly with calls to
1220// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction]
1221// or implicitly by setting
1222// [ReadOptions.new_transaction][google.datastore.v1beta3.ReadOptions.new_transaction]
1223// in read requests.
1224type TransactionOptions struct {
1225	// The `mode` of the transaction, indicating whether write operations are
1226	// supported.
1227	//
1228	// Types that are valid to be assigned to Mode:
1229	//	*TransactionOptions_ReadWrite_
1230	//	*TransactionOptions_ReadOnly_
1231	Mode                 isTransactionOptions_Mode `protobuf_oneof:"mode"`
1232	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
1233	XXX_unrecognized     []byte                    `json:"-"`
1234	XXX_sizecache        int32                     `json:"-"`
1235}
1236
1237func (m *TransactionOptions) Reset()         { *m = TransactionOptions{} }
1238func (m *TransactionOptions) String() string { return proto.CompactTextString(m) }
1239func (*TransactionOptions) ProtoMessage()    {}
1240func (*TransactionOptions) Descriptor() ([]byte, []int) {
1241	return fileDescriptor_3be32184765753d5, []int{17}
1242}
1243
1244func (m *TransactionOptions) XXX_Unmarshal(b []byte) error {
1245	return xxx_messageInfo_TransactionOptions.Unmarshal(m, b)
1246}
1247func (m *TransactionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1248	return xxx_messageInfo_TransactionOptions.Marshal(b, m, deterministic)
1249}
1250func (m *TransactionOptions) XXX_Merge(src proto.Message) {
1251	xxx_messageInfo_TransactionOptions.Merge(m, src)
1252}
1253func (m *TransactionOptions) XXX_Size() int {
1254	return xxx_messageInfo_TransactionOptions.Size(m)
1255}
1256func (m *TransactionOptions) XXX_DiscardUnknown() {
1257	xxx_messageInfo_TransactionOptions.DiscardUnknown(m)
1258}
1259
1260var xxx_messageInfo_TransactionOptions proto.InternalMessageInfo
1261
1262type isTransactionOptions_Mode interface {
1263	isTransactionOptions_Mode()
1264}
1265
1266type TransactionOptions_ReadWrite_ struct {
1267	ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,1,opt,name=read_write,json=readWrite,proto3,oneof"`
1268}
1269
1270type TransactionOptions_ReadOnly_ struct {
1271	ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"`
1272}
1273
1274func (*TransactionOptions_ReadWrite_) isTransactionOptions_Mode() {}
1275
1276func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {}
1277
1278func (m *TransactionOptions) GetMode() isTransactionOptions_Mode {
1279	if m != nil {
1280		return m.Mode
1281	}
1282	return nil
1283}
1284
1285func (m *TransactionOptions) GetReadWrite() *TransactionOptions_ReadWrite {
1286	if x, ok := m.GetMode().(*TransactionOptions_ReadWrite_); ok {
1287		return x.ReadWrite
1288	}
1289	return nil
1290}
1291
1292func (m *TransactionOptions) GetReadOnly() *TransactionOptions_ReadOnly {
1293	if x, ok := m.GetMode().(*TransactionOptions_ReadOnly_); ok {
1294		return x.ReadOnly
1295	}
1296	return nil
1297}
1298
1299// XXX_OneofWrappers is for the internal use of the proto package.
1300func (*TransactionOptions) XXX_OneofWrappers() []interface{} {
1301	return []interface{}{
1302		(*TransactionOptions_ReadWrite_)(nil),
1303		(*TransactionOptions_ReadOnly_)(nil),
1304	}
1305}
1306
1307// Options specific to read / write transactions.
1308type TransactionOptions_ReadWrite struct {
1309	// The transaction identifier of the transaction being retried.
1310	PreviousTransaction  []byte   `protobuf:"bytes,1,opt,name=previous_transaction,json=previousTransaction,proto3" json:"previous_transaction,omitempty"`
1311	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1312	XXX_unrecognized     []byte   `json:"-"`
1313	XXX_sizecache        int32    `json:"-"`
1314}
1315
1316func (m *TransactionOptions_ReadWrite) Reset()         { *m = TransactionOptions_ReadWrite{} }
1317func (m *TransactionOptions_ReadWrite) String() string { return proto.CompactTextString(m) }
1318func (*TransactionOptions_ReadWrite) ProtoMessage()    {}
1319func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) {
1320	return fileDescriptor_3be32184765753d5, []int{17, 0}
1321}
1322
1323func (m *TransactionOptions_ReadWrite) XXX_Unmarshal(b []byte) error {
1324	return xxx_messageInfo_TransactionOptions_ReadWrite.Unmarshal(m, b)
1325}
1326func (m *TransactionOptions_ReadWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1327	return xxx_messageInfo_TransactionOptions_ReadWrite.Marshal(b, m, deterministic)
1328}
1329func (m *TransactionOptions_ReadWrite) XXX_Merge(src proto.Message) {
1330	xxx_messageInfo_TransactionOptions_ReadWrite.Merge(m, src)
1331}
1332func (m *TransactionOptions_ReadWrite) XXX_Size() int {
1333	return xxx_messageInfo_TransactionOptions_ReadWrite.Size(m)
1334}
1335func (m *TransactionOptions_ReadWrite) XXX_DiscardUnknown() {
1336	xxx_messageInfo_TransactionOptions_ReadWrite.DiscardUnknown(m)
1337}
1338
1339var xxx_messageInfo_TransactionOptions_ReadWrite proto.InternalMessageInfo
1340
1341func (m *TransactionOptions_ReadWrite) GetPreviousTransaction() []byte {
1342	if m != nil {
1343		return m.PreviousTransaction
1344	}
1345	return nil
1346}
1347
1348// Options specific to read-only transactions.
1349type TransactionOptions_ReadOnly struct {
1350	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1351	XXX_unrecognized     []byte   `json:"-"`
1352	XXX_sizecache        int32    `json:"-"`
1353}
1354
1355func (m *TransactionOptions_ReadOnly) Reset()         { *m = TransactionOptions_ReadOnly{} }
1356func (m *TransactionOptions_ReadOnly) String() string { return proto.CompactTextString(m) }
1357func (*TransactionOptions_ReadOnly) ProtoMessage()    {}
1358func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) {
1359	return fileDescriptor_3be32184765753d5, []int{17, 1}
1360}
1361
1362func (m *TransactionOptions_ReadOnly) XXX_Unmarshal(b []byte) error {
1363	return xxx_messageInfo_TransactionOptions_ReadOnly.Unmarshal(m, b)
1364}
1365func (m *TransactionOptions_ReadOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1366	return xxx_messageInfo_TransactionOptions_ReadOnly.Marshal(b, m, deterministic)
1367}
1368func (m *TransactionOptions_ReadOnly) XXX_Merge(src proto.Message) {
1369	xxx_messageInfo_TransactionOptions_ReadOnly.Merge(m, src)
1370}
1371func (m *TransactionOptions_ReadOnly) XXX_Size() int {
1372	return xxx_messageInfo_TransactionOptions_ReadOnly.Size(m)
1373}
1374func (m *TransactionOptions_ReadOnly) XXX_DiscardUnknown() {
1375	xxx_messageInfo_TransactionOptions_ReadOnly.DiscardUnknown(m)
1376}
1377
1378var xxx_messageInfo_TransactionOptions_ReadOnly proto.InternalMessageInfo
1379
1380func init() {
1381	proto.RegisterEnum("google.datastore.v1beta3.CommitRequest_Mode", CommitRequest_Mode_name, CommitRequest_Mode_value)
1382	proto.RegisterEnum("google.datastore.v1beta3.ReadOptions_ReadConsistency", ReadOptions_ReadConsistency_name, ReadOptions_ReadConsistency_value)
1383	proto.RegisterType((*LookupRequest)(nil), "google.datastore.v1beta3.LookupRequest")
1384	proto.RegisterType((*LookupResponse)(nil), "google.datastore.v1beta3.LookupResponse")
1385	proto.RegisterType((*RunQueryRequest)(nil), "google.datastore.v1beta3.RunQueryRequest")
1386	proto.RegisterType((*RunQueryResponse)(nil), "google.datastore.v1beta3.RunQueryResponse")
1387	proto.RegisterType((*BeginTransactionRequest)(nil), "google.datastore.v1beta3.BeginTransactionRequest")
1388	proto.RegisterType((*BeginTransactionResponse)(nil), "google.datastore.v1beta3.BeginTransactionResponse")
1389	proto.RegisterType((*RollbackRequest)(nil), "google.datastore.v1beta3.RollbackRequest")
1390	proto.RegisterType((*RollbackResponse)(nil), "google.datastore.v1beta3.RollbackResponse")
1391	proto.RegisterType((*CommitRequest)(nil), "google.datastore.v1beta3.CommitRequest")
1392	proto.RegisterType((*CommitResponse)(nil), "google.datastore.v1beta3.CommitResponse")
1393	proto.RegisterType((*AllocateIdsRequest)(nil), "google.datastore.v1beta3.AllocateIdsRequest")
1394	proto.RegisterType((*AllocateIdsResponse)(nil), "google.datastore.v1beta3.AllocateIdsResponse")
1395	proto.RegisterType((*ReserveIdsRequest)(nil), "google.datastore.v1beta3.ReserveIdsRequest")
1396	proto.RegisterType((*ReserveIdsResponse)(nil), "google.datastore.v1beta3.ReserveIdsResponse")
1397	proto.RegisterType((*Mutation)(nil), "google.datastore.v1beta3.Mutation")
1398	proto.RegisterType((*MutationResult)(nil), "google.datastore.v1beta3.MutationResult")
1399	proto.RegisterType((*ReadOptions)(nil), "google.datastore.v1beta3.ReadOptions")
1400	proto.RegisterType((*TransactionOptions)(nil), "google.datastore.v1beta3.TransactionOptions")
1401	proto.RegisterType((*TransactionOptions_ReadWrite)(nil), "google.datastore.v1beta3.TransactionOptions.ReadWrite")
1402	proto.RegisterType((*TransactionOptions_ReadOnly)(nil), "google.datastore.v1beta3.TransactionOptions.ReadOnly")
1403}
1404
1405func init() {
1406	proto.RegisterFile("google/datastore/v1beta3/datastore.proto", fileDescriptor_3be32184765753d5)
1407}
1408
1409var fileDescriptor_3be32184765753d5 = []byte{
1410	// 1403 bytes of a gzipped FileDescriptorProto
1411	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcf, 0x6f, 0x1b, 0xc5,
1412	0x17, 0xcf, 0x38, 0x89, 0x6b, 0x3f, 0xe7, 0x87, 0x33, 0xcd, 0xf7, 0x8b, 0x65, 0x5a, 0x6a, 0x6d,
1413	0x29, 0x75, 0xd3, 0x62, 0x13, 0xb7, 0xa1, 0x22, 0x54, 0x28, 0xb6, 0xe3, 0xd6, 0x16, 0x8d, 0x1d,
1414	0x26, 0x6e, 0x2a, 0x50, 0x91, 0xb5, 0xf6, 0x4e, 0xcc, 0x92, 0xf5, 0xce, 0x66, 0x77, 0x1c, 0x88,
1415	0x10, 0x17, 0x0e, 0x08, 0x81, 0x38, 0x21, 0xd4, 0x13, 0x07, 0xae, 0x70, 0x2e, 0x7f, 0x03, 0x02,
1416	0x89, 0x0b, 0x07, 0xfe, 0x01, 0xfe, 0x08, 0x8e, 0x68, 0x67, 0x67, 0xfd, 0x2b, 0xb5, 0xbd, 0xae,
1417	0xb8, 0x79, 0xdf, 0x7e, 0x3e, 0xef, 0x7d, 0xe6, 0xbd, 0xd9, 0xf7, 0x5e, 0x02, 0xe9, 0x36, 0x63,
1418	0x6d, 0x83, 0x66, 0x35, 0x95, 0xab, 0x0e, 0x67, 0x36, 0xcd, 0x9e, 0x6e, 0x36, 0x29, 0x57, 0x6f,
1419	0xf7, 0x2d, 0x19, 0xcb, 0x66, 0x9c, 0xe1, 0x84, 0x87, 0xcc, 0xf4, 0xed, 0x12, 0x99, 0xbc, 0x24,
1420	0x7d, 0xa8, 0x96, 0x9e, 0x55, 0x4d, 0x93, 0x71, 0x95, 0xeb, 0xcc, 0x74, 0x3c, 0x5e, 0xf2, 0xda,
1421	0xd8, 0x08, 0xd4, 0xe4, 0x3a, 0x3f, 0x93, 0xb0, 0x57, 0xc7, 0xc2, 0x4e, 0xba, 0xd4, 0x96, 0x28,
1422	0xe5, 0x67, 0x04, 0xcb, 0x0f, 0x19, 0x3b, 0xee, 0x5a, 0x84, 0x9e, 0x74, 0xa9, 0xc3, 0xf1, 0x65,
1423	0x00, 0xcb, 0x66, 0x1f, 0xd3, 0x16, 0x6f, 0xe8, 0x5a, 0x22, 0x92, 0x42, 0xe9, 0x28, 0x89, 0x4a,
1424	0x4b, 0x45, 0xc3, 0x65, 0x58, 0xb2, 0xa9, 0xaa, 0x35, 0x98, 0x25, 0x34, 0x25, 0x50, 0x0a, 0xa5,
1425	0x63, 0xb9, 0x6b, 0x99, 0x71, 0x87, 0xc9, 0x10, 0xaa, 0x6a, 0x35, 0x0f, 0x4c, 0x62, 0x76, 0xff,
1426	0x01, 0x6f, 0xc2, 0xc2, 0x31, 0x3d, 0x73, 0x12, 0xf3, 0xa9, 0xf9, 0x74, 0x2c, 0x77, 0x79, 0xbc,
1427	0x87, 0x77, 0xe9, 0x19, 0x11, 0x50, 0xe5, 0x77, 0x04, 0x2b, 0xbe, 0x5a, 0xc7, 0x62, 0xa6, 0x43,
1428	0xf1, 0x3d, 0x58, 0x3c, 0x62, 0x5d, 0x53, 0x4b, 0x20, 0xe1, 0xe6, 0xb5, 0xf1, 0x6e, 0x4a, 0x22,
1429	0x3b, 0x84, 0x3a, 0x5d, 0x83, 0x13, 0x8f, 0x84, 0x77, 0x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xc9, 0x2f, 0x15, 0xe6, 0xe7,
1441	0x6c, 0xca, 0x3d, 0x48, 0x9c, 0x17, 0x26, 0xd3, 0x95, 0x82, 0xd8, 0x00, 0x43, 0x24, 0x6d, 0x89,
1442	0x0c, 0x9a, 0x14, 0x02, 0xab, 0x84, 0x19, 0x46, 0x53, 0x6d, 0x1d, 0x07, 0x3c, 0xce, 0x74, 0x9f,
1443	0x18, 0xe2, 0x7d, 0x9f, 0x9e, 0x12, 0xe5, 0x97, 0x10, 0x2c, 0x17, 0x59, 0xa7, 0xa3, 0xf3, 0x80,
1444	0x61, 0x76, 0x60, 0xa1, 0xc3, 0x34, 0x9a, 0x58, 0x4c, 0xa1, 0xf4, 0xca, 0xa4, 0x34, 0x0d, 0x79,
1445	0xcd, 0xec, 0x31, 0x8d, 0x12, 0xc1, 0xc4, 0xca, 0x73, 0x84, 0x96, 0xe7, 0x86, 0xa4, 0xe2, 0x1d,
1446	0x88, 0x76, 0xba, 0xb2, 0x23, 0x27, 0xc2, 0xe2, 0x8b, 0x9f, 0x70, 0x6b, 0xf7, 0x24, 0x94, 0xf4,
1447	0x49, 0xca, 0x7d, 0x58, 0x70, 0x63, 0xe2, 0x75, 0x88, 0xef, 0xd5, 0x76, 0x4b, 0x8d, 0x47, 0xd5,
1448	0x83, 0xfd, 0x52, 0xb1, 0x72, 0xbf, 0x52, 0xda, 0x8d, 0xcf, 0xe1, 0x35, 0x58, 0xae, 0x93, 0x7c,
1449	0xf5, 0x20, 0x5f, 0xac, 0x57, 0x6a, 0xd5, 0xfc, 0xc3, 0x38, 0xc2, 0xff, 0x83, 0xb5, 0x6a, 0xad,
1450	0xda, 0x18, 0x36, 0x87, 0x0a, 0xff, 0x87, 0xf5, 0xc1, 0x5b, 0xe2, 0x50, 0x83, 0xb6, 0x38, 0xb3,
1451	0x95, 0xaf, 0x11, 0xac, 0xf8, 0x47, 0x94, 0x55, 0x3d, 0x80, 0xb8, 0x1f, 0xbf, 0x61, 0x8b, 0x1b,
1452	0xee, 0xf7, 0xdd, 0x74, 0x00, 0xed, 0x5e, 0xcb, 0x5b, 0xed, 0x0c, 0x3d, 0x3b, 0xf8, 0x2a, 0x2c,
1453	0xeb, 0xa6, 0x46, 0x3f, 0x6d, 0x74, 0x2d, 0x4d, 0xe5, 0xd4, 0x49, 0x2c, 0xa4, 0x50, 0x7a, 0x91,
1454	0x2c, 0x09, 0xe3, 0x23, 0xcf, 0xa6, 0x1c, 0x01, 0xce, 0x1b, 0x06, 0x6b, 0xa9, 0x9c, 0x56, 0x34,
1455	0x27, 0x60, 0x25, 0xfd, 0xd1, 0x80, 0x82, 0x8f, 0x86, 0x32, 0x5c, 0x1c, 0x8a, 0x23, 0x0f, 0xfe,
1456	0x02, 0x9e, 0xbe, 0x44, 0xb0, 0x46, 0xa8, 0x43, 0xed, 0xd3, 0x19, 0x14, 0x5f, 0x81, 0x98, 0xeb,
1457	0xb3, 0xa9, 0x3a, 0xd4, 0x7d, 0x1f, 0x15, 0xef, 0xc1, 0x37, 0xbd, 0xd8, 0x91, 0xd6, 0x01, 0x0f,
1458	0xea, 0x90, 0x9f, 0xc5, 0xaf, 0x21, 0x88, 0xf8, 0x95, 0xc1, 0xdb, 0x10, 0xd6, 0x4d, 0x87, 0xda,
1459	0x5c, 0xe4, 0x3e, 0x96, 0x4b, 0x4d, 0x1b, 0x5f, 0xe5, 0x39, 0x22, 0x19, 0x2e, 0xd7, 0x2b, 0x9c,
1460	0xf8, 0x60, 0x02, 0x72, 0x3d, 0x86, 0xc7, 0x15, 0x71, 0xc3, 0xb3, 0x70, 0x45, 0xdc, 0xbb, 0x10,
1461	0xd6, 0xa8, 0x41, 0x39, 0x95, 0x3d, 0x7f, 0x72, 0x2e, 0x5c, 0xa2, 0x07, 0xc7, 0x57, 0x61, 0x49,
1462	0xe4, 0xf7, 0x94, 0xda, 0x8e, 0xfb, 0x79, 0xba, 0x45, 0x98, 0x2f, 0x23, 0x12, 0x73, 0xad, 0x87,
1463	0x9e, 0xb1, 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, 0xcc, 0xe1, 0x66, 0xc1, 0x85, 0xfe, 0xe6, 0x03, 0x9e,
1497	0x08, 0xc0, 0x93, 0x1e, 0xe0, 0xc9, 0xa1, 0xe7, 0xab, 0x19, 0x16, 0xf1, 0x6e, 0xff, 0x1b, 0x00,
1498	0x00, 0xff, 0xff, 0x6a, 0xaa, 0xbe, 0x57, 0x66, 0x11, 0x00, 0x00,
1499}
1500
1501// Reference imports to suppress errors if they are not otherwise used.
1502var _ context.Context
1503var _ grpc.ClientConnInterface
1504
1505// This is a compile-time assertion to ensure that this generated file
1506// is compatible with the grpc package it is being compiled against.
1507const _ = grpc.SupportPackageIsVersion6
1508
1509// DatastoreClient is the client API for Datastore service.
1510//
1511// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1512type DatastoreClient interface {
1513	// Looks up entities by key.
1514	Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error)
1515	// Queries for entities.
1516	RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (*RunQueryResponse, error)
1517	// Begins a new transaction.
1518	BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error)
1519	// Commits a transaction, optionally creating, deleting or modifying some
1520	// entities.
1521	Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
1522	// Rolls back a transaction.
1523	Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*RollbackResponse, error)
1524	// Allocates IDs for the given keys, which is useful for referencing an entity
1525	// before it is inserted.
1526	AllocateIds(ctx context.Context, in *AllocateIdsRequest, opts ...grpc.CallOption) (*AllocateIdsResponse, error)
1527	// Prevents the supplied keys' IDs from being auto-allocated by Cloud
1528	// Datastore.
1529	ReserveIds(ctx context.Context, in *ReserveIdsRequest, opts ...grpc.CallOption) (*ReserveIdsResponse, error)
1530}
1531
1532type datastoreClient struct {
1533	cc grpc.ClientConnInterface
1534}
1535
1536func NewDatastoreClient(cc grpc.ClientConnInterface) DatastoreClient {
1537	return &datastoreClient{cc}
1538}
1539
1540func (c *datastoreClient) Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error) {
1541	out := new(LookupResponse)
1542	err := c.cc.Invoke(ctx, "/google.datastore.v1beta3.Datastore/Lookup", in, out, opts...)
1543	if err != nil {
1544		return nil, err
1545	}
1546	return out, nil
1547}
1548
1549func (c *datastoreClient) RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (*RunQueryResponse, error) {
1550	out := new(RunQueryResponse)
1551	err := c.cc.Invoke(ctx, "/google.datastore.v1beta3.Datastore/RunQuery", in, out, opts...)
1552	if err != nil {
1553		return nil, err
1554	}
1555	return out, nil
1556}
1557
1558func (c *datastoreClient) BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error) {
1559	out := new(BeginTransactionResponse)
1560	err := c.cc.Invoke(ctx, "/google.datastore.v1beta3.Datastore/BeginTransaction", in, out, opts...)
1561	if err != nil {
1562		return nil, err
1563	}
1564	return out, nil
1565}
1566
1567func (c *datastoreClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) {
1568	out := new(CommitResponse)
1569	err := c.cc.Invoke(ctx, "/google.datastore.v1beta3.Datastore/Commit", in, out, opts...)
1570	if err != nil {
1571		return nil, err
1572	}
1573	return out, nil
1574}
1575
1576func (c *datastoreClient) Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*RollbackResponse, error) {
1577	out := new(RollbackResponse)
1578	err := c.cc.Invoke(ctx, "/google.datastore.v1beta3.Datastore/Rollback", in, out, opts...)
1579	if err != nil {
1580		return nil, err
1581	}
1582	return out, nil
1583}
1584
1585func (c *datastoreClient) AllocateIds(ctx context.Context, in *AllocateIdsRequest, opts ...grpc.CallOption) (*AllocateIdsResponse, error) {
1586	out := new(AllocateIdsResponse)
1587	err := c.cc.Invoke(ctx, "/google.datastore.v1beta3.Datastore/AllocateIds", in, out, opts...)
1588	if err != nil {
1589		return nil, err
1590	}
1591	return out, nil
1592}
1593
1594func (c *datastoreClient) ReserveIds(ctx context.Context, in *ReserveIdsRequest, opts ...grpc.CallOption) (*ReserveIdsResponse, error) {
1595	out := new(ReserveIdsResponse)
1596	err := c.cc.Invoke(ctx, "/google.datastore.v1beta3.Datastore/ReserveIds", in, out, opts...)
1597	if err != nil {
1598		return nil, err
1599	}
1600	return out, nil
1601}
1602
1603// DatastoreServer is the server API for Datastore service.
1604type DatastoreServer interface {
1605	// Looks up entities by key.
1606	Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
1607	// Queries for entities.
1608	RunQuery(context.Context, *RunQueryRequest) (*RunQueryResponse, error)
1609	// Begins a new transaction.
1610	BeginTransaction(context.Context, *BeginTransactionRequest) (*BeginTransactionResponse, error)
1611	// Commits a transaction, optionally creating, deleting or modifying some
1612	// entities.
1613	Commit(context.Context, *CommitRequest) (*CommitResponse, error)
1614	// Rolls back a transaction.
1615	Rollback(context.Context, *RollbackRequest) (*RollbackResponse, error)
1616	// Allocates IDs for the given keys, which is useful for referencing an entity
1617	// before it is inserted.
1618	AllocateIds(context.Context, *AllocateIdsRequest) (*AllocateIdsResponse, error)
1619	// Prevents the supplied keys' IDs from being auto-allocated by Cloud
1620	// Datastore.
1621	ReserveIds(context.Context, *ReserveIdsRequest) (*ReserveIdsResponse, error)
1622}
1623
1624// UnimplementedDatastoreServer can be embedded to have forward compatible implementations.
1625type UnimplementedDatastoreServer struct {
1626}
1627
1628func (*UnimplementedDatastoreServer) Lookup(ctx context.Context, req *LookupRequest) (*LookupResponse, error) {
1629	return nil, status.Errorf(codes.Unimplemented, "method Lookup not implemented")
1630}
1631func (*UnimplementedDatastoreServer) RunQuery(ctx context.Context, req *RunQueryRequest) (*RunQueryResponse, error) {
1632	return nil, status.Errorf(codes.Unimplemented, "method RunQuery not implemented")
1633}
1634func (*UnimplementedDatastoreServer) BeginTransaction(ctx context.Context, req *BeginTransactionRequest) (*BeginTransactionResponse, error) {
1635	return nil, status.Errorf(codes.Unimplemented, "method BeginTransaction not implemented")
1636}
1637func (*UnimplementedDatastoreServer) Commit(ctx context.Context, req *CommitRequest) (*CommitResponse, error) {
1638	return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented")
1639}
1640func (*UnimplementedDatastoreServer) Rollback(ctx context.Context, req *RollbackRequest) (*RollbackResponse, error) {
1641	return nil, status.Errorf(codes.Unimplemented, "method Rollback not implemented")
1642}
1643func (*UnimplementedDatastoreServer) AllocateIds(ctx context.Context, req *AllocateIdsRequest) (*AllocateIdsResponse, error) {
1644	return nil, status.Errorf(codes.Unimplemented, "method AllocateIds not implemented")
1645}
1646func (*UnimplementedDatastoreServer) ReserveIds(ctx context.Context, req *ReserveIdsRequest) (*ReserveIdsResponse, error) {
1647	return nil, status.Errorf(codes.Unimplemented, "method ReserveIds not implemented")
1648}
1649
1650func RegisterDatastoreServer(s *grpc.Server, srv DatastoreServer) {
1651	s.RegisterService(&_Datastore_serviceDesc, srv)
1652}
1653
1654func _Datastore_Lookup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1655	in := new(LookupRequest)
1656	if err := dec(in); err != nil {
1657		return nil, err
1658	}
1659	if interceptor == nil {
1660		return srv.(DatastoreServer).Lookup(ctx, in)
1661	}
1662	info := &grpc.UnaryServerInfo{
1663		Server:     srv,
1664		FullMethod: "/google.datastore.v1beta3.Datastore/Lookup",
1665	}
1666	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1667		return srv.(DatastoreServer).Lookup(ctx, req.(*LookupRequest))
1668	}
1669	return interceptor(ctx, in, info, handler)
1670}
1671
1672func _Datastore_RunQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1673	in := new(RunQueryRequest)
1674	if err := dec(in); err != nil {
1675		return nil, err
1676	}
1677	if interceptor == nil {
1678		return srv.(DatastoreServer).RunQuery(ctx, in)
1679	}
1680	info := &grpc.UnaryServerInfo{
1681		Server:     srv,
1682		FullMethod: "/google.datastore.v1beta3.Datastore/RunQuery",
1683	}
1684	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1685		return srv.(DatastoreServer).RunQuery(ctx, req.(*RunQueryRequest))
1686	}
1687	return interceptor(ctx, in, info, handler)
1688}
1689
1690func _Datastore_BeginTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1691	in := new(BeginTransactionRequest)
1692	if err := dec(in); err != nil {
1693		return nil, err
1694	}
1695	if interceptor == nil {
1696		return srv.(DatastoreServer).BeginTransaction(ctx, in)
1697	}
1698	info := &grpc.UnaryServerInfo{
1699		Server:     srv,
1700		FullMethod: "/google.datastore.v1beta3.Datastore/BeginTransaction",
1701	}
1702	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1703		return srv.(DatastoreServer).BeginTransaction(ctx, req.(*BeginTransactionRequest))
1704	}
1705	return interceptor(ctx, in, info, handler)
1706}
1707
1708func _Datastore_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1709	in := new(CommitRequest)
1710	if err := dec(in); err != nil {
1711		return nil, err
1712	}
1713	if interceptor == nil {
1714		return srv.(DatastoreServer).Commit(ctx, in)
1715	}
1716	info := &grpc.UnaryServerInfo{
1717		Server:     srv,
1718		FullMethod: "/google.datastore.v1beta3.Datastore/Commit",
1719	}
1720	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1721		return srv.(DatastoreServer).Commit(ctx, req.(*CommitRequest))
1722	}
1723	return interceptor(ctx, in, info, handler)
1724}
1725
1726func _Datastore_Rollback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1727	in := new(RollbackRequest)
1728	if err := dec(in); err != nil {
1729		return nil, err
1730	}
1731	if interceptor == nil {
1732		return srv.(DatastoreServer).Rollback(ctx, in)
1733	}
1734	info := &grpc.UnaryServerInfo{
1735		Server:     srv,
1736		FullMethod: "/google.datastore.v1beta3.Datastore/Rollback",
1737	}
1738	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1739		return srv.(DatastoreServer).Rollback(ctx, req.(*RollbackRequest))
1740	}
1741	return interceptor(ctx, in, info, handler)
1742}
1743
1744func _Datastore_AllocateIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1745	in := new(AllocateIdsRequest)
1746	if err := dec(in); err != nil {
1747		return nil, err
1748	}
1749	if interceptor == nil {
1750		return srv.(DatastoreServer).AllocateIds(ctx, in)
1751	}
1752	info := &grpc.UnaryServerInfo{
1753		Server:     srv,
1754		FullMethod: "/google.datastore.v1beta3.Datastore/AllocateIds",
1755	}
1756	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1757		return srv.(DatastoreServer).AllocateIds(ctx, req.(*AllocateIdsRequest))
1758	}
1759	return interceptor(ctx, in, info, handler)
1760}
1761
1762func _Datastore_ReserveIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1763	in := new(ReserveIdsRequest)
1764	if err := dec(in); err != nil {
1765		return nil, err
1766	}
1767	if interceptor == nil {
1768		return srv.(DatastoreServer).ReserveIds(ctx, in)
1769	}
1770	info := &grpc.UnaryServerInfo{
1771		Server:     srv,
1772		FullMethod: "/google.datastore.v1beta3.Datastore/ReserveIds",
1773	}
1774	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1775		return srv.(DatastoreServer).ReserveIds(ctx, req.(*ReserveIdsRequest))
1776	}
1777	return interceptor(ctx, in, info, handler)
1778}
1779
1780var _Datastore_serviceDesc = grpc.ServiceDesc{
1781	ServiceName: "google.datastore.v1beta3.Datastore",
1782	HandlerType: (*DatastoreServer)(nil),
1783	Methods: []grpc.MethodDesc{
1784		{
1785			MethodName: "Lookup",
1786			Handler:    _Datastore_Lookup_Handler,
1787		},
1788		{
1789			MethodName: "RunQuery",
1790			Handler:    _Datastore_RunQuery_Handler,
1791		},
1792		{
1793			MethodName: "BeginTransaction",
1794			Handler:    _Datastore_BeginTransaction_Handler,
1795		},
1796		{
1797			MethodName: "Commit",
1798			Handler:    _Datastore_Commit_Handler,
1799		},
1800		{
1801			MethodName: "Rollback",
1802			Handler:    _Datastore_Rollback_Handler,
1803		},
1804		{
1805			MethodName: "AllocateIds",
1806			Handler:    _Datastore_AllocateIds_Handler,
1807		},
1808		{
1809			MethodName: "ReserveIds",
1810			Handler:    _Datastore_ReserveIds_Handler,
1811		},
1812	},
1813	Streams:  []grpc.StreamDesc{},
1814	Metadata: "google/datastore/v1beta3/datastore.proto",
1815}
1816