1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/firestore/v1beta1/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.v1beta1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1beta1.Value]. 31type DocumentMask struct { 32 // The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.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_bfe8bb60f36bcae9, []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_bfe8bb60f36bcae9, []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_bfe8bb60f36bcae9, []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_bfe8bb60f36bcae9, []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_bfe8bb60f36bcae9, []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.v1beta1.DocumentMask") 350 proto.RegisterType((*Precondition)(nil), "google.firestore.v1beta1.Precondition") 351 proto.RegisterType((*TransactionOptions)(nil), "google.firestore.v1beta1.TransactionOptions") 352 proto.RegisterType((*TransactionOptions_ReadWrite)(nil), "google.firestore.v1beta1.TransactionOptions.ReadWrite") 353 proto.RegisterType((*TransactionOptions_ReadOnly)(nil), "google.firestore.v1beta1.TransactionOptions.ReadOnly") 354} 355 356func init() { 357 proto.RegisterFile("google/firestore/v1beta1/common.proto", fileDescriptor_bfe8bb60f36bcae9) 358} 359 360var fileDescriptor_bfe8bb60f36bcae9 = []byte{ 361 // 470 bytes of a gzipped FileDescriptorProto 362 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xe1, 0x8a, 0xd3, 0x40, 363 0x10, 0xc7, 0x9b, 0xde, 0x71, 0xb4, 0xd3, 0x22, 0x67, 0x10, 0x09, 0xe1, 0xf0, 0x8e, 0x82, 0x50, 364 0x10, 0x36, 0x54, 0x51, 0x14, 0xf1, 0x83, 0xa9, 0xdc, 0xf5, 0x8b, 0x5c, 0x89, 0xe5, 0x0e, 0xa4, 365 0x12, 0xb6, 0xc9, 0x34, 0x2e, 0x26, 0x3b, 0x61, 0x77, 0xab, 0xe6, 0x75, 0xfc, 0xe8, 0x1b, 0xf8, 366 0x0a, 0x3e, 0x87, 0x0f, 0x22, 0xd9, 0xa4, 0x51, 0x38, 0x0e, 0xf4, 0x5b, 0x32, 0xf3, 0x9b, 0xff, 367 0xfc, 0xff, 0xc3, 0xc2, 0xc3, 0x8c, 0x28, 0xcb, 0x31, 0xd8, 0x0a, 0x85, 0xda, 0x90, 0xc2, 0xe0, 368 0xf3,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27, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x64, 391 0x00, 0xd8, 0x57, 0x03, 0x00, 0x00, 392} 393