...

Source file src/google.golang.org/genproto/googleapis/firestore/v1beta1/document.pb.go

Documentation: google.golang.org/genproto/googleapis/firestore/v1beta1

     1  // Copyright 2021 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/firestore/v1beta1/document.proto
    20  
    21  package firestore
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	latlng "google.golang.org/genproto/googleapis/type/latlng"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  	structpb "google.golang.org/protobuf/types/known/structpb"
    31  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  // A Firestore document.
    42  //
    43  // Must not exceed 1 MiB - 4 bytes.
    44  type Document struct {
    45  	state         protoimpl.MessageState
    46  	sizeCache     protoimpl.SizeCache
    47  	unknownFields protoimpl.UnknownFields
    48  
    49  	// The resource name of the document, for example
    50  	// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
    51  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    52  	// The document's fields.
    53  	//
    54  	// The map keys represent field names.
    55  	//
    56  	// A simple field name contains only characters `a` to `z`, `A` to `Z`,
    57  	// `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
    58  	// `foo_bar_17`.
    59  	//
    60  	// Field names matching the regular expression `__.*__` are reserved. Reserved
    61  	// field names are forbidden except in certain documented contexts. The map
    62  	// keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
    63  	// empty.
    64  	//
    65  	// Field paths may be used in other contexts to refer to structured fields
    66  	// defined here. For `map_value`, the field path is represented by the simple
    67  	// or quoted field names of the containing fields, delimited by `.`. For
    68  	// example, the structured field
    69  	// `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
    70  	// represented by the field path `foo.x&y`.
    71  	//
    72  	// Within a field path, a quoted field name starts and ends with “ ` “ and
    73  	// may contain any character. Some characters, including “ ` “, must be
    74  	// escaped using a `\`. For example, “ `x&y` “ represents `x&y` and
    75  	// “ `bak\`tik` “ represents “ bak`tik “.
    76  	Fields map[string]*Value `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    77  	// Output only. The time at which the document was created.
    78  	//
    79  	// This value increases monotonically when a document is deleted then
    80  	// recreated. It can also be compared to values from other documents and
    81  	// the `read_time` of a query.
    82  	CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    83  	// Output only. The time at which the document was last changed.
    84  	//
    85  	// This value is initially set to the `create_time` then increases
    86  	// monotonically with each change to the document. It can also be
    87  	// compared to values from other documents and the `read_time` of a query.
    88  	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
    89  }
    90  
    91  func (x *Document) Reset() {
    92  	*x = Document{}
    93  	if protoimpl.UnsafeEnabled {
    94  		mi := &file_google_firestore_v1beta1_document_proto_msgTypes[0]
    95  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    96  		ms.StoreMessageInfo(mi)
    97  	}
    98  }
    99  
   100  func (x *Document) String() string {
   101  	return protoimpl.X.MessageStringOf(x)
   102  }
   103  
   104  func (*Document) ProtoMessage() {}
   105  
   106  func (x *Document) ProtoReflect() protoreflect.Message {
   107  	mi := &file_google_firestore_v1beta1_document_proto_msgTypes[0]
   108  	if protoimpl.UnsafeEnabled && x != nil {
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		if ms.LoadMessageInfo() == nil {
   111  			ms.StoreMessageInfo(mi)
   112  		}
   113  		return ms
   114  	}
   115  	return mi.MessageOf(x)
   116  }
   117  
   118  // Deprecated: Use Document.ProtoReflect.Descriptor instead.
   119  func (*Document) Descriptor() ([]byte, []int) {
   120  	return file_google_firestore_v1beta1_document_proto_rawDescGZIP(), []int{0}
   121  }
   122  
   123  func (x *Document) GetName() string {
   124  	if x != nil {
   125  		return x.Name
   126  	}
   127  	return ""
   128  }
   129  
   130  func (x *Document) GetFields() map[string]*Value {
   131  	if x != nil {
   132  		return x.Fields
   133  	}
   134  	return nil
   135  }
   136  
   137  func (x *Document) GetCreateTime() *timestamppb.Timestamp {
   138  	if x != nil {
   139  		return x.CreateTime
   140  	}
   141  	return nil
   142  }
   143  
   144  func (x *Document) GetUpdateTime() *timestamppb.Timestamp {
   145  	if x != nil {
   146  		return x.UpdateTime
   147  	}
   148  	return nil
   149  }
   150  
   151  // A message that can hold any of the supported value types.
   152  type Value struct {
   153  	state         protoimpl.MessageState
   154  	sizeCache     protoimpl.SizeCache
   155  	unknownFields protoimpl.UnknownFields
   156  
   157  	// Must have a value set.
   158  	//
   159  	// Types that are assignable to ValueType:
   160  	//
   161  	//	*Value_NullValue
   162  	//	*Value_BooleanValue
   163  	//	*Value_IntegerValue
   164  	//	*Value_DoubleValue
   165  	//	*Value_TimestampValue
   166  	//	*Value_StringValue
   167  	//	*Value_BytesValue
   168  	//	*Value_ReferenceValue
   169  	//	*Value_GeoPointValue
   170  	//	*Value_ArrayValue
   171  	//	*Value_MapValue
   172  	ValueType isValue_ValueType `protobuf_oneof:"value_type"`
   173  }
   174  
   175  func (x *Value) Reset() {
   176  	*x = Value{}
   177  	if protoimpl.UnsafeEnabled {
   178  		mi := &file_google_firestore_v1beta1_document_proto_msgTypes[1]
   179  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   180  		ms.StoreMessageInfo(mi)
   181  	}
   182  }
   183  
   184  func (x *Value) String() string {
   185  	return protoimpl.X.MessageStringOf(x)
   186  }
   187  
   188  func (*Value) ProtoMessage() {}
   189  
   190  func (x *Value) ProtoReflect() protoreflect.Message {
   191  	mi := &file_google_firestore_v1beta1_document_proto_msgTypes[1]
   192  	if protoimpl.UnsafeEnabled && x != nil {
   193  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   194  		if ms.LoadMessageInfo() == nil {
   195  			ms.StoreMessageInfo(mi)
   196  		}
   197  		return ms
   198  	}
   199  	return mi.MessageOf(x)
   200  }
   201  
   202  // Deprecated: Use Value.ProtoReflect.Descriptor instead.
   203  func (*Value) Descriptor() ([]byte, []int) {
   204  	return file_google_firestore_v1beta1_document_proto_rawDescGZIP(), []int{1}
   205  }
   206  
   207  func (m *Value) GetValueType() isValue_ValueType {
   208  	if m != nil {
   209  		return m.ValueType
   210  	}
   211  	return nil
   212  }
   213  
   214  func (x *Value) GetNullValue() structpb.NullValue {
   215  	if x, ok := x.GetValueType().(*Value_NullValue); ok {
   216  		return x.NullValue
   217  	}
   218  	return structpb.NullValue_NULL_VALUE
   219  }
   220  
   221  func (x *Value) GetBooleanValue() bool {
   222  	if x, ok := x.GetValueType().(*Value_BooleanValue); ok {
   223  		return x.BooleanValue
   224  	}
   225  	return false
   226  }
   227  
   228  func (x *Value) GetIntegerValue() int64 {
   229  	if x, ok := x.GetValueType().(*Value_IntegerValue); ok {
   230  		return x.IntegerValue
   231  	}
   232  	return 0
   233  }
   234  
   235  func (x *Value) GetDoubleValue() float64 {
   236  	if x, ok := x.GetValueType().(*Value_DoubleValue); ok {
   237  		return x.DoubleValue
   238  	}
   239  	return 0
   240  }
   241  
   242  func (x *Value) GetTimestampValue() *timestamppb.Timestamp {
   243  	if x, ok := x.GetValueType().(*Value_TimestampValue); ok {
   244  		return x.TimestampValue
   245  	}
   246  	return nil
   247  }
   248  
   249  func (x *Value) GetStringValue() string {
   250  	if x, ok := x.GetValueType().(*Value_StringValue); ok {
   251  		return x.StringValue
   252  	}
   253  	return ""
   254  }
   255  
   256  func (x *Value) GetBytesValue() []byte {
   257  	if x, ok := x.GetValueType().(*Value_BytesValue); ok {
   258  		return x.BytesValue
   259  	}
   260  	return nil
   261  }
   262  
   263  func (x *Value) GetReferenceValue() string {
   264  	if x, ok := x.GetValueType().(*Value_ReferenceValue); ok {
   265  		return x.ReferenceValue
   266  	}
   267  	return ""
   268  }
   269  
   270  func (x *Value) GetGeoPointValue() *latlng.LatLng {
   271  	if x, ok := x.GetValueType().(*Value_GeoPointValue); ok {
   272  		return x.GeoPointValue
   273  	}
   274  	return nil
   275  }
   276  
   277  func (x *Value) GetArrayValue() *ArrayValue {
   278  	if x, ok := x.GetValueType().(*Value_ArrayValue); ok {
   279  		return x.ArrayValue
   280  	}
   281  	return nil
   282  }
   283  
   284  func (x *Value) GetMapValue() *MapValue {
   285  	if x, ok := x.GetValueType().(*Value_MapValue); ok {
   286  		return x.MapValue
   287  	}
   288  	return nil
   289  }
   290  
   291  type isValue_ValueType interface {
   292  	isValue_ValueType()
   293  }
   294  
   295  type Value_NullValue struct {
   296  	// A null value.
   297  	NullValue structpb.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
   298  }
   299  
   300  type Value_BooleanValue struct {
   301  	// A boolean value.
   302  	BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
   303  }
   304  
   305  type Value_IntegerValue struct {
   306  	// An integer value.
   307  	IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"`
   308  }
   309  
   310  type Value_DoubleValue struct {
   311  	// A double value.
   312  	DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
   313  }
   314  
   315  type Value_TimestampValue struct {
   316  	// A timestamp value.
   317  	//
   318  	// Precise only to microseconds. When stored, any additional precision is
   319  	// rounded down.
   320  	TimestampValue *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
   321  }
   322  
   323  type Value_StringValue struct {
   324  	// A string value.
   325  	//
   326  	// The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
   327  	// Only the first 1,500 bytes of the UTF-8 representation are considered by
   328  	// queries.
   329  	StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,proto3,oneof"`
   330  }
   331  
   332  type Value_BytesValue struct {
   333  	// A bytes value.
   334  	//
   335  	// Must not exceed 1 MiB - 89 bytes.
   336  	// Only the first 1,500 bytes are considered by queries.
   337  	BytesValue []byte `protobuf:"bytes,18,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
   338  }
   339  
   340  type Value_ReferenceValue struct {
   341  	// A reference to a document. For example:
   342  	// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
   343  	ReferenceValue string `protobuf:"bytes,5,opt,name=reference_value,json=referenceValue,proto3,oneof"`
   344  }
   345  
   346  type Value_GeoPointValue struct {
   347  	// A geo point value representing a point on the surface of Earth.
   348  	GeoPointValue *latlng.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"`
   349  }
   350  
   351  type Value_ArrayValue struct {
   352  	// An array value.
   353  	//
   354  	// Cannot directly contain another array value, though can contain an
   355  	// map which contains another array.
   356  	ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof"`
   357  }
   358  
   359  type Value_MapValue struct {
   360  	// A map value.
   361  	MapValue *MapValue `protobuf:"bytes,6,opt,name=map_value,json=mapValue,proto3,oneof"`
   362  }
   363  
   364  func (*Value_NullValue) isValue_ValueType() {}
   365  
   366  func (*Value_BooleanValue) isValue_ValueType() {}
   367  
   368  func (*Value_IntegerValue) isValue_ValueType() {}
   369  
   370  func (*Value_DoubleValue) isValue_ValueType() {}
   371  
   372  func (*Value_TimestampValue) isValue_ValueType() {}
   373  
   374  func (*Value_StringValue) isValue_ValueType() {}
   375  
   376  func (*Value_BytesValue) isValue_ValueType() {}
   377  
   378  func (*Value_ReferenceValue) isValue_ValueType() {}
   379  
   380  func (*Value_GeoPointValue) isValue_ValueType() {}
   381  
   382  func (*Value_ArrayValue) isValue_ValueType() {}
   383  
   384  func (*Value_MapValue) isValue_ValueType() {}
   385  
   386  // An array value.
   387  type ArrayValue struct {
   388  	state         protoimpl.MessageState
   389  	sizeCache     protoimpl.SizeCache
   390  	unknownFields protoimpl.UnknownFields
   391  
   392  	// Values in the array.
   393  	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
   394  }
   395  
   396  func (x *ArrayValue) Reset() {
   397  	*x = ArrayValue{}
   398  	if protoimpl.UnsafeEnabled {
   399  		mi := &file_google_firestore_v1beta1_document_proto_msgTypes[2]
   400  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   401  		ms.StoreMessageInfo(mi)
   402  	}
   403  }
   404  
   405  func (x *ArrayValue) String() string {
   406  	return protoimpl.X.MessageStringOf(x)
   407  }
   408  
   409  func (*ArrayValue) ProtoMessage() {}
   410  
   411  func (x *ArrayValue) ProtoReflect() protoreflect.Message {
   412  	mi := &file_google_firestore_v1beta1_document_proto_msgTypes[2]
   413  	if protoimpl.UnsafeEnabled && x != nil {
   414  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   415  		if ms.LoadMessageInfo() == nil {
   416  			ms.StoreMessageInfo(mi)
   417  		}
   418  		return ms
   419  	}
   420  	return mi.MessageOf(x)
   421  }
   422  
   423  // Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead.
   424  func (*ArrayValue) Descriptor() ([]byte, []int) {
   425  	return file_google_firestore_v1beta1_document_proto_rawDescGZIP(), []int{2}
   426  }
   427  
   428  func (x *ArrayValue) GetValues() []*Value {
   429  	if x != nil {
   430  		return x.Values
   431  	}
   432  	return nil
   433  }
   434  
   435  // A map value.
   436  type MapValue struct {
   437  	state         protoimpl.MessageState
   438  	sizeCache     protoimpl.SizeCache
   439  	unknownFields protoimpl.UnknownFields
   440  
   441  	// The map's fields.
   442  	//
   443  	// The map keys represent field names. Field names matching the regular
   444  	// expression `__.*__` are reserved. Reserved field names are forbidden except
   445  	// in certain documented contexts. The map keys, represented as UTF-8, must
   446  	// not exceed 1,500 bytes and cannot be empty.
   447  	Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   448  }
   449  
   450  func (x *MapValue) Reset() {
   451  	*x = MapValue{}
   452  	if protoimpl.UnsafeEnabled {
   453  		mi := &file_google_firestore_v1beta1_document_proto_msgTypes[3]
   454  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   455  		ms.StoreMessageInfo(mi)
   456  	}
   457  }
   458  
   459  func (x *MapValue) String() string {
   460  	return protoimpl.X.MessageStringOf(x)
   461  }
   462  
   463  func (*MapValue) ProtoMessage() {}
   464  
   465  func (x *MapValue) ProtoReflect() protoreflect.Message {
   466  	mi := &file_google_firestore_v1beta1_document_proto_msgTypes[3]
   467  	if protoimpl.UnsafeEnabled && x != nil {
   468  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   469  		if ms.LoadMessageInfo() == nil {
   470  			ms.StoreMessageInfo(mi)
   471  		}
   472  		return ms
   473  	}
   474  	return mi.MessageOf(x)
   475  }
   476  
   477  // Deprecated: Use MapValue.ProtoReflect.Descriptor instead.
   478  func (*MapValue) Descriptor() ([]byte, []int) {
   479  	return file_google_firestore_v1beta1_document_proto_rawDescGZIP(), []int{3}
   480  }
   481  
   482  func (x *MapValue) GetFields() map[string]*Value {
   483  	if x != nil {
   484  		return x.Fields
   485  	}
   486  	return nil
   487  }
   488  
   489  var File_google_firestore_v1beta1_document_proto protoreflect.FileDescriptor
   490  
   491  var file_google_firestore_v1beta1_document_proto_rawDesc = []byte{
   492  	0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
   493  	0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d,
   494  	0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   495  	0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65,
   496  	0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   497  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   498  	0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   499  	0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
   500  	0x74, 0x6f, 0x1a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f,
   501  	0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x02, 0x0a,
   502  	0x08, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
   503  	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a,
   504  	0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e,
   505  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
   506  	0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
   507  	0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66,
   508  	0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
   509  	0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
   510  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
   511  	0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69,
   512  	0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,
   513  	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   514  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
   515  	0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x1a,
   516  	0x5a, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
   517  	0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
   518  	0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
   519  	0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
   520  	0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65,
   521  	0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xca, 0x04, 0x0a, 0x05,
   522  	0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61,
   523  	0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   524  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c,
   525  	0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c,
   526  	0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61,
   527  	0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f,
   528  	0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x69, 0x6e, 0x74,
   529  	0x65, 0x67, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
   530  	0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65,
   531  	0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
   532  	0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65,
   533  	0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
   534  	0x6d, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
   535  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   536  	0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0e, 0x74, 0x69,
   537  	0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c,
   538  	0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01,
   539  	0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75,
   540  	0x65, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
   541  	0x18, 0x12, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x56,
   542  	0x61, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
   543  	0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
   544  	0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
   545  	0x3d, 0x0a, 0x0f, 0x67, 0x65, 0x6f, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c,
   546  	0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   547  	0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4c, 0x61, 0x74, 0x4c, 0x6e, 0x67, 0x48, 0x00, 0x52,
   548  	0x0d, 0x67, 0x65, 0x6f, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x47,
   549  	0x0a, 0x0b, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20,
   550  	0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72,
   551  	0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41,
   552  	0x72, 0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x72,
   553  	0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x76,
   554  	0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f,
   555  	0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31,
   556  	0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00,
   557  	0x52, 0x08, 0x6d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61,
   558  	0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x72, 0x72, 0x61,
   559  	0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
   560  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   561  	0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   562  	0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22,
   563  	0xae, 0x01, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x06,
   564  	0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67,
   565  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
   566  	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65,
   567  	0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69,
   568  	0x65, 0x6c, 0x64, 0x73, 0x1a, 0x5a, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e,
   569  	0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   570  	0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
   571  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69,
   572  	0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
   573  	0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
   574  	0x42, 0xdf, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   575  	0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   576  	0x31, 0x42, 0x0d, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   577  	0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
   578  	0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
   579  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
   580  	0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x66, 0x69, 0x72, 0x65,
   581  	0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, 0x02, 0x1e, 0x47,
   582  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, 0x69, 0x72, 0x65,
   583  	0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1e,
   584  	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x46, 0x69, 0x72,
   585  	0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02,
   586  	0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a,
   587  	0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74,
   588  	0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   589  }
   590  
   591  var (
   592  	file_google_firestore_v1beta1_document_proto_rawDescOnce sync.Once
   593  	file_google_firestore_v1beta1_document_proto_rawDescData = file_google_firestore_v1beta1_document_proto_rawDesc
   594  )
   595  
   596  func file_google_firestore_v1beta1_document_proto_rawDescGZIP() []byte {
   597  	file_google_firestore_v1beta1_document_proto_rawDescOnce.Do(func() {
   598  		file_google_firestore_v1beta1_document_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_v1beta1_document_proto_rawDescData)
   599  	})
   600  	return file_google_firestore_v1beta1_document_proto_rawDescData
   601  }
   602  
   603  var file_google_firestore_v1beta1_document_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
   604  var file_google_firestore_v1beta1_document_proto_goTypes = []interface{}{
   605  	(*Document)(nil),              // 0: google.firestore.v1beta1.Document
   606  	(*Value)(nil),                 // 1: google.firestore.v1beta1.Value
   607  	(*ArrayValue)(nil),            // 2: google.firestore.v1beta1.ArrayValue
   608  	(*MapValue)(nil),              // 3: google.firestore.v1beta1.MapValue
   609  	nil,                           // 4: google.firestore.v1beta1.Document.FieldsEntry
   610  	nil,                           // 5: google.firestore.v1beta1.MapValue.FieldsEntry
   611  	(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
   612  	(structpb.NullValue)(0),       // 7: google.protobuf.NullValue
   613  	(*latlng.LatLng)(nil),         // 8: google.type.LatLng
   614  }
   615  var file_google_firestore_v1beta1_document_proto_depIdxs = []int32{
   616  	4,  // 0: google.firestore.v1beta1.Document.fields:type_name -> google.firestore.v1beta1.Document.FieldsEntry
   617  	6,  // 1: google.firestore.v1beta1.Document.create_time:type_name -> google.protobuf.Timestamp
   618  	6,  // 2: google.firestore.v1beta1.Document.update_time:type_name -> google.protobuf.Timestamp
   619  	7,  // 3: google.firestore.v1beta1.Value.null_value:type_name -> google.protobuf.NullValue
   620  	6,  // 4: google.firestore.v1beta1.Value.timestamp_value:type_name -> google.protobuf.Timestamp
   621  	8,  // 5: google.firestore.v1beta1.Value.geo_point_value:type_name -> google.type.LatLng
   622  	2,  // 6: google.firestore.v1beta1.Value.array_value:type_name -> google.firestore.v1beta1.ArrayValue
   623  	3,  // 7: google.firestore.v1beta1.Value.map_value:type_name -> google.firestore.v1beta1.MapValue
   624  	1,  // 8: google.firestore.v1beta1.ArrayValue.values:type_name -> google.firestore.v1beta1.Value
   625  	5,  // 9: google.firestore.v1beta1.MapValue.fields:type_name -> google.firestore.v1beta1.MapValue.FieldsEntry
   626  	1,  // 10: google.firestore.v1beta1.Document.FieldsEntry.value:type_name -> google.firestore.v1beta1.Value
   627  	1,  // 11: google.firestore.v1beta1.MapValue.FieldsEntry.value:type_name -> google.firestore.v1beta1.Value
   628  	12, // [12:12] is the sub-list for method output_type
   629  	12, // [12:12] is the sub-list for method input_type
   630  	12, // [12:12] is the sub-list for extension type_name
   631  	12, // [12:12] is the sub-list for extension extendee
   632  	0,  // [0:12] is the sub-list for field type_name
   633  }
   634  
   635  func init() { file_google_firestore_v1beta1_document_proto_init() }
   636  func file_google_firestore_v1beta1_document_proto_init() {
   637  	if File_google_firestore_v1beta1_document_proto != nil {
   638  		return
   639  	}
   640  	if !protoimpl.UnsafeEnabled {
   641  		file_google_firestore_v1beta1_document_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   642  			switch v := v.(*Document); i {
   643  			case 0:
   644  				return &v.state
   645  			case 1:
   646  				return &v.sizeCache
   647  			case 2:
   648  				return &v.unknownFields
   649  			default:
   650  				return nil
   651  			}
   652  		}
   653  		file_google_firestore_v1beta1_document_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   654  			switch v := v.(*Value); i {
   655  			case 0:
   656  				return &v.state
   657  			case 1:
   658  				return &v.sizeCache
   659  			case 2:
   660  				return &v.unknownFields
   661  			default:
   662  				return nil
   663  			}
   664  		}
   665  		file_google_firestore_v1beta1_document_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   666  			switch v := v.(*ArrayValue); i {
   667  			case 0:
   668  				return &v.state
   669  			case 1:
   670  				return &v.sizeCache
   671  			case 2:
   672  				return &v.unknownFields
   673  			default:
   674  				return nil
   675  			}
   676  		}
   677  		file_google_firestore_v1beta1_document_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   678  			switch v := v.(*MapValue); i {
   679  			case 0:
   680  				return &v.state
   681  			case 1:
   682  				return &v.sizeCache
   683  			case 2:
   684  				return &v.unknownFields
   685  			default:
   686  				return nil
   687  			}
   688  		}
   689  	}
   690  	file_google_firestore_v1beta1_document_proto_msgTypes[1].OneofWrappers = []interface{}{
   691  		(*Value_NullValue)(nil),
   692  		(*Value_BooleanValue)(nil),
   693  		(*Value_IntegerValue)(nil),
   694  		(*Value_DoubleValue)(nil),
   695  		(*Value_TimestampValue)(nil),
   696  		(*Value_StringValue)(nil),
   697  		(*Value_BytesValue)(nil),
   698  		(*Value_ReferenceValue)(nil),
   699  		(*Value_GeoPointValue)(nil),
   700  		(*Value_ArrayValue)(nil),
   701  		(*Value_MapValue)(nil),
   702  	}
   703  	type x struct{}
   704  	out := protoimpl.TypeBuilder{
   705  		File: protoimpl.DescBuilder{
   706  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   707  			RawDescriptor: file_google_firestore_v1beta1_document_proto_rawDesc,
   708  			NumEnums:      0,
   709  			NumMessages:   6,
   710  			NumExtensions: 0,
   711  			NumServices:   0,
   712  		},
   713  		GoTypes:           file_google_firestore_v1beta1_document_proto_goTypes,
   714  		DependencyIndexes: file_google_firestore_v1beta1_document_proto_depIdxs,
   715  		MessageInfos:      file_google_firestore_v1beta1_document_proto_msgTypes,
   716  	}.Build()
   717  	File_google_firestore_v1beta1_document_proto = out.File
   718  	file_google_firestore_v1beta1_document_proto_rawDesc = nil
   719  	file_google_firestore_v1beta1_document_proto_goTypes = nil
   720  	file_google_firestore_v1beta1_document_proto_depIdxs = nil
   721  }
   722  

View as plain text