1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/firestore/v1/common.proto
3
4package firestore
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	timestamp "github.com/golang/protobuf/ptypes/timestamp"
12	_ "google.golang.org/genproto/googleapis/api/annotations"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26// A set of field paths on a document.
27// Used to restrict a get or update operation on a document to a subset of its
28// fields.
29// This is different from standard field masks, as this is always scoped to a
30// [Document][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value].
31type DocumentMask struct {
32	// The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field
33	// path syntax reference.
34	FieldPaths           []string `protobuf:"bytes,1,rep,name=field_paths,json=fieldPaths,proto3" json:"field_paths,omitempty"`
35	XXX_NoUnkeyedLiteral struct{} `json:"-"`
36	XXX_unrecognized     []byte   `json:"-"`
37	XXX_sizecache        int32    `json:"-"`
38}
39
40func (m *DocumentMask) Reset()         { *m = DocumentMask{} }
41func (m *DocumentMask) String() string { return proto.CompactTextString(m) }
42func (*DocumentMask) ProtoMessage()    {}
43func (*DocumentMask) Descriptor() ([]byte, []int) {
44	return fileDescriptor_b2e1854e17ece251, []int{0}
45}
46
47func (m *DocumentMask) XXX_Unmarshal(b []byte) error {
48	return xxx_messageInfo_DocumentMask.Unmarshal(m, b)
49}
50func (m *DocumentMask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
51	return xxx_messageInfo_DocumentMask.Marshal(b, m, deterministic)
52}
53func (m *DocumentMask) XXX_Merge(src proto.Message) {
54	xxx_messageInfo_DocumentMask.Merge(m, src)
55}
56func (m *DocumentMask) XXX_Size() int {
57	return xxx_messageInfo_DocumentMask.Size(m)
58}
59func (m *DocumentMask) XXX_DiscardUnknown() {
60	xxx_messageInfo_DocumentMask.DiscardUnknown(m)
61}
62
63var xxx_messageInfo_DocumentMask proto.InternalMessageInfo
64
65func (m *DocumentMask) GetFieldPaths() []string {
66	if m != nil {
67		return m.FieldPaths
68	}
69	return nil
70}
71
72// A precondition on a document, used for conditional operations.
73type Precondition struct {
74	// The type of precondition.
75	//
76	// Types that are valid to be assigned to ConditionType:
77	//	*Precondition_Exists
78	//	*Precondition_UpdateTime
79	ConditionType        isPrecondition_ConditionType `protobuf_oneof:"condition_type"`
80	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
81	XXX_unrecognized     []byte                       `json:"-"`
82	XXX_sizecache        int32                        `json:"-"`
83}
84
85func (m *Precondition) Reset()         { *m = Precondition{} }
86func (m *Precondition) String() string { return proto.CompactTextString(m) }
87func (*Precondition) ProtoMessage()    {}
88func (*Precondition) Descriptor() ([]byte, []int) {
89	return fileDescriptor_b2e1854e17ece251, []int{1}
90}
91
92func (m *Precondition) XXX_Unmarshal(b []byte) error {
93	return xxx_messageInfo_Precondition.Unmarshal(m, b)
94}
95func (m *Precondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
96	return xxx_messageInfo_Precondition.Marshal(b, m, deterministic)
97}
98func (m *Precondition) XXX_Merge(src proto.Message) {
99	xxx_messageInfo_Precondition.Merge(m, src)
100}
101func (m *Precondition) XXX_Size() int {
102	return xxx_messageInfo_Precondition.Size(m)
103}
104func (m *Precondition) XXX_DiscardUnknown() {
105	xxx_messageInfo_Precondition.DiscardUnknown(m)
106}
107
108var xxx_messageInfo_Precondition proto.InternalMessageInfo
109
110type isPrecondition_ConditionType interface {
111	isPrecondition_ConditionType()
112}
113
114type Precondition_Exists struct {
115	Exists bool `protobuf:"varint,1,opt,name=exists,proto3,oneof"`
116}
117
118type Precondition_UpdateTime struct {
119	UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,oneof"`
120}
121
122func (*Precondition_Exists) isPrecondition_ConditionType() {}
123
124func (*Precondition_UpdateTime) isPrecondition_ConditionType() {}
125
126func (m *Precondition) GetConditionType() isPrecondition_ConditionType {
127	if m != nil {
128		return m.ConditionType
129	}
130	return nil
131}
132
133func (m *Precondition) GetExists() bool {
134	if x, ok := m.GetConditionType().(*Precondition_Exists); ok {
135		return x.Exists
136	}
137	return false
138}
139
140func (m *Precondition) GetUpdateTime() *timestamp.Timestamp {
141	if x, ok := m.GetConditionType().(*Precondition_UpdateTime); ok {
142		return x.UpdateTime
143	}
144	return nil
145}
146
147// XXX_OneofWrappers is for the internal use of the proto package.
148func (*Precondition) XXX_OneofWrappers() []interface{} {
149	return []interface{}{
150		(*Precondition_Exists)(nil),
151		(*Precondition_UpdateTime)(nil),
152	}
153}
154
155// Options for creating a new transaction.
156type TransactionOptions struct {
157	// The mode of the transaction.
158	//
159	// Types that are valid to be assigned to Mode:
160	//	*TransactionOptions_ReadOnly_
161	//	*TransactionOptions_ReadWrite_
162	Mode                 isTransactionOptions_Mode `protobuf_oneof:"mode"`
163	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
164	XXX_unrecognized     []byte                    `json:"-"`
165	XXX_sizecache        int32                     `json:"-"`
166}
167
168func (m *TransactionOptions) Reset()         { *m = TransactionOptions{} }
169func (m *TransactionOptions) String() string { return proto.CompactTextString(m) }
170func (*TransactionOptions) ProtoMessage()    {}
171func (*TransactionOptions) Descriptor() ([]byte, []int) {
172	return fileDescriptor_b2e1854e17ece251, []int{2}
173}
174
175func (m *TransactionOptions) XXX_Unmarshal(b []byte) error {
176	return xxx_messageInfo_TransactionOptions.Unmarshal(m, b)
177}
178func (m *TransactionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
179	return xxx_messageInfo_TransactionOptions.Marshal(b, m, deterministic)
180}
181func (m *TransactionOptions) XXX_Merge(src proto.Message) {
182	xxx_messageInfo_TransactionOptions.Merge(m, src)
183}
184func (m *TransactionOptions) XXX_Size() int {
185	return xxx_messageInfo_TransactionOptions.Size(m)
186}
187func (m *TransactionOptions) XXX_DiscardUnknown() {
188	xxx_messageInfo_TransactionOptions.DiscardUnknown(m)
189}
190
191var xxx_messageInfo_TransactionOptions proto.InternalMessageInfo
192
193type isTransactionOptions_Mode interface {
194	isTransactionOptions_Mode()
195}
196
197type TransactionOptions_ReadOnly_ struct {
198	ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"`
199}
200
201type TransactionOptions_ReadWrite_ struct {
202	ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,3,opt,name=read_write,json=readWrite,proto3,oneof"`
203}
204
205func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {}
206
207func (*TransactionOptions_ReadWrite_) isTransactionOptions_Mode() {}
208
209func (m *TransactionOptions) GetMode() isTransactionOptions_Mode {
210	if m != nil {
211		return m.Mode
212	}
213	return nil
214}
215
216func (m *TransactionOptions) GetReadOnly() *TransactionOptions_ReadOnly {
217	if x, ok := m.GetMode().(*TransactionOptions_ReadOnly_); ok {
218		return x.ReadOnly
219	}
220	return nil
221}
222
223func (m *TransactionOptions) GetReadWrite() *TransactionOptions_ReadWrite {
224	if x, ok := m.GetMode().(*TransactionOptions_ReadWrite_); ok {
225		return x.ReadWrite
226	}
227	return nil
228}
229
230// XXX_OneofWrappers is for the internal use of the proto package.
231func (*TransactionOptions) XXX_OneofWrappers() []interface{} {
232	return []interface{}{
233		(*TransactionOptions_ReadOnly_)(nil),
234		(*TransactionOptions_ReadWrite_)(nil),
235	}
236}
237
238// Options for a transaction that can be used to read and write documents.
239type TransactionOptions_ReadWrite struct {
240	// An optional transaction to retry.
241	RetryTransaction     []byte   `protobuf:"bytes,1,opt,name=retry_transaction,json=retryTransaction,proto3" json:"retry_transaction,omitempty"`
242	XXX_NoUnkeyedLiteral struct{} `json:"-"`
243	XXX_unrecognized     []byte   `json:"-"`
244	XXX_sizecache        int32    `json:"-"`
245}
246
247func (m *TransactionOptions_ReadWrite) Reset()         { *m = TransactionOptions_ReadWrite{} }
248func (m *TransactionOptions_ReadWrite) String() string { return proto.CompactTextString(m) }
249func (*TransactionOptions_ReadWrite) ProtoMessage()    {}
250func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) {
251	return fileDescriptor_b2e1854e17ece251, []int{2, 0}
252}
253
254func (m *TransactionOptions_ReadWrite) XXX_Unmarshal(b []byte) error {
255	return xxx_messageInfo_TransactionOptions_ReadWrite.Unmarshal(m, b)
256}
257func (m *TransactionOptions_ReadWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
258	return xxx_messageInfo_TransactionOptions_ReadWrite.Marshal(b, m, deterministic)
259}
260func (m *TransactionOptions_ReadWrite) XXX_Merge(src proto.Message) {
261	xxx_messageInfo_TransactionOptions_ReadWrite.Merge(m, src)
262}
263func (m *TransactionOptions_ReadWrite) XXX_Size() int {
264	return xxx_messageInfo_TransactionOptions_ReadWrite.Size(m)
265}
266func (m *TransactionOptions_ReadWrite) XXX_DiscardUnknown() {
267	xxx_messageInfo_TransactionOptions_ReadWrite.DiscardUnknown(m)
268}
269
270var xxx_messageInfo_TransactionOptions_ReadWrite proto.InternalMessageInfo
271
272func (m *TransactionOptions_ReadWrite) GetRetryTransaction() []byte {
273	if m != nil {
274		return m.RetryTransaction
275	}
276	return nil
277}
278
279// Options for a transaction that can only be used to read documents.
280type TransactionOptions_ReadOnly struct {
281	// The consistency mode for this transaction. If not set, defaults to strong
282	// consistency.
283	//
284	// Types that are valid to be assigned to ConsistencySelector:
285	//	*TransactionOptions_ReadOnly_ReadTime
286	ConsistencySelector  isTransactionOptions_ReadOnly_ConsistencySelector `protobuf_oneof:"consistency_selector"`
287	XXX_NoUnkeyedLiteral struct{}                                          `json:"-"`
288	XXX_unrecognized     []byte                                            `json:"-"`
289	XXX_sizecache        int32                                             `json:"-"`
290}
291
292func (m *TransactionOptions_ReadOnly) Reset()         { *m = TransactionOptions_ReadOnly{} }
293func (m *TransactionOptions_ReadOnly) String() string { return proto.CompactTextString(m) }
294func (*TransactionOptions_ReadOnly) ProtoMessage()    {}
295func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) {
296	return fileDescriptor_b2e1854e17ece251, []int{2, 1}
297}
298
299func (m *TransactionOptions_ReadOnly) XXX_Unmarshal(b []byte) error {
300	return xxx_messageInfo_TransactionOptions_ReadOnly.Unmarshal(m, b)
301}
302func (m *TransactionOptions_ReadOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
303	return xxx_messageInfo_TransactionOptions_ReadOnly.Marshal(b, m, deterministic)
304}
305func (m *TransactionOptions_ReadOnly) XXX_Merge(src proto.Message) {
306	xxx_messageInfo_TransactionOptions_ReadOnly.Merge(m, src)
307}
308func (m *TransactionOptions_ReadOnly) XXX_Size() int {
309	return xxx_messageInfo_TransactionOptions_ReadOnly.Size(m)
310}
311func (m *TransactionOptions_ReadOnly) XXX_DiscardUnknown() {
312	xxx_messageInfo_TransactionOptions_ReadOnly.DiscardUnknown(m)
313}
314
315var xxx_messageInfo_TransactionOptions_ReadOnly proto.InternalMessageInfo
316
317type isTransactionOptions_ReadOnly_ConsistencySelector interface {
318	isTransactionOptions_ReadOnly_ConsistencySelector()
319}
320
321type TransactionOptions_ReadOnly_ReadTime struct {
322	ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3,oneof"`
323}
324
325func (*TransactionOptions_ReadOnly_ReadTime) isTransactionOptions_ReadOnly_ConsistencySelector() {}
326
327func (m *TransactionOptions_ReadOnly) GetConsistencySelector() isTransactionOptions_ReadOnly_ConsistencySelector {
328	if m != nil {
329		return m.ConsistencySelector
330	}
331	return nil
332}
333
334func (m *TransactionOptions_ReadOnly) GetReadTime() *timestamp.Timestamp {
335	if x, ok := m.GetConsistencySelector().(*TransactionOptions_ReadOnly_ReadTime); ok {
336		return x.ReadTime
337	}
338	return nil
339}
340
341// XXX_OneofWrappers is for the internal use of the proto package.
342func (*TransactionOptions_ReadOnly) XXX_OneofWrappers() []interface{} {
343	return []interface{}{
344		(*TransactionOptions_ReadOnly_ReadTime)(nil),
345	}
346}
347
348func init() {
349	proto.RegisterType((*DocumentMask)(nil), "google.firestore.v1.DocumentMask")
350	proto.RegisterType((*Precondition)(nil), "google.firestore.v1.Precondition")
351	proto.RegisterType((*TransactionOptions)(nil), "google.firestore.v1.TransactionOptions")
352	proto.RegisterType((*TransactionOptions_ReadWrite)(nil), "google.firestore.v1.TransactionOptions.ReadWrite")
353	proto.RegisterType((*TransactionOptions_ReadOnly)(nil), "google.firestore.v1.TransactionOptions.ReadOnly")
354}
355
356func init() { proto.RegisterFile("google/firestore/v1/common.proto", fileDescriptor_b2e1854e17ece251) }
357
358var fileDescriptor_b2e1854e17ece251 = []byte{
359	// 458 bytes of a gzipped FileDescriptorProto
360	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x5f, 0x8b, 0xd3, 0x40,
361	0x10, 0x6f, 0x7a, 0x47, 0x69, 0xa7, 0x45, 0xce, 0x28, 0x5a, 0x83, 0x70, 0xa5, 0x4f, 0x05, 0x61,
362	0x63, 0xf4, 0x45, 0x51, 0x5f, 0x5a, 0xb9, 0xeb, 0x8b, 0xb4, 0xc4, 0xe3, 0x04, 0xa9, 0x84, 0xbd,
363	0x64, 0x1a, 0x17, 0x93, 0x9d, 0xb0, 0xbb, 0x3d, 0xcd, 0xd7, 0x11, 0x7c, 0xf1, 0xa3, 0xf8, 0x11,
364	0xfc, 0x34, 0x92, 0x4d, 0x1a, 0x15, 0xfb, 0xe0, 0xbd, 0xed, 0xcc, 0xef, 0xdf, 0xcc, 0xb0, 0x30,
365	0x49, 0x89, 0xd2, 0x0c, 0xfd, 0xad, 0x50, 0xa8, 0x0d, 0x29, 0xf4, 0xaf, 0x03, 0x3f, 0xa6, 0x3c,
366	0x27, 0xc9, 0x0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