| 1 |
// Copyright 2025 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.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/datastore/v1/entity.proto |
| 20 |
|
| 21 |
package datastorepb |
| 22 |
|
| 23 |
import ( |
| 24 |
latlng "google.golang.org/genproto/googleapis/type/latlng" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
structpb "google.golang.org/protobuf/types/known/structpb" |
| 28 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 29 |
reflect "reflect" |
| 30 |
sync "sync" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// A partition ID identifies a grouping of entities. The grouping is always |
| 41 |
// by project and namespace, however the namespace ID may be empty. |
| 42 |
// |
| 43 |
// A partition ID contains several dimensions: |
| 44 |
// project ID and namespace ID. |
| 45 |
// |
| 46 |
// Partition dimensions: |
| 47 |
// |
| 48 |
// - May be `""`. |
| 49 |
// - Must be valid UTF-8 bytes. |
| 50 |
// - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` |
| 51 |
// If the value of any dimension matches regex `__.*__`, the partition is |
| 52 |
// reserved/read-only. |
| 53 |
// A reserved/read-only partition ID is forbidden in certain documented |
| 54 |
// contexts. |
| 55 |
// |
| 56 |
// Foreign partition IDs (in which the project ID does |
| 57 |
// not match the context project ID ) are discouraged. |
| 58 |
// Reads and writes of foreign partition IDs may fail if the project is not in |
| 59 |
// an active state. |
| 60 |
type PartitionId struct { |
| 61 |
state protoimpl.MessageState |
| 62 |
sizeCache protoimpl.SizeCache |
| 63 |
unknownFields protoimpl.UnknownFields |
| 64 |
|
| 65 |
// The ID of the project to which the entities belong. |
| 66 |
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` |
| 67 |
// If not empty, the ID of the database to which the entities |
| 68 |
// belong. |
| 69 |
DatabaseId string `protobuf:"bytes,3,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"` |
| 70 |
// If not empty, the ID of the namespace to which the entities belong. |
| 71 |
NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` |
| 72 |
} |
| 73 |
|
| 74 |
func (x *PartitionId) Reset() { |
| 75 |
*x = PartitionId{} |
| 76 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[0] |
| 77 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 78 |
ms.StoreMessageInfo(mi) |
| 79 |
} |
| 80 |
|
| 81 |
func (x *PartitionId) String() string { |
| 82 |
return protoimpl.X.MessageStringOf(x) |
| 83 |
} |
| 84 |
|
| 85 |
func (*PartitionId) ProtoMessage() {} |
| 86 |
|
| 87 |
func (x *PartitionId) ProtoReflect() protoreflect.Message { |
| 88 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[0] |
| 89 |
if x != nil { |
| 90 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 91 |
if ms.LoadMessageInfo() == nil { |
| 92 |
ms.StoreMessageInfo(mi) |
| 93 |
} |
| 94 |
return ms |
| 95 |
} |
| 96 |
return mi.MessageOf(x) |
| 97 |
} |
| 98 |
|
| 99 |
// Deprecated: Use PartitionId.ProtoReflect.Descriptor instead. |
| 100 |
func (*PartitionId) Descriptor() ([]byte, []int) { |
| 101 |
return file_google_datastore_v1_entity_proto_rawDescGZIP(), []int{0} |
| 102 |
} |
| 103 |
|
| 104 |
func (x *PartitionId) GetProjectId() string { |
| 105 |
if x != nil { |
| 106 |
return x.ProjectId |
| 107 |
} |
| 108 |
return "" |
| 109 |
} |
| 110 |
|
| 111 |
func (x *PartitionId) GetDatabaseId() string { |
| 112 |
if x != nil { |
| 113 |
return x.DatabaseId |
| 114 |
} |
| 115 |
return "" |
| 116 |
} |
| 117 |
|
| 118 |
func (x *PartitionId) GetNamespaceId() string { |
| 119 |
if x != nil { |
| 120 |
return x.NamespaceId |
| 121 |
} |
| 122 |
return "" |
| 123 |
} |
| 124 |
|
| 125 |
// A unique identifier for an entity. |
| 126 |
// If a key's partition ID or any of its path kinds or names are |
| 127 |
// reserved/read-only, the key is reserved/read-only. |
| 128 |
// A reserved/read-only key is forbidden in certain documented contexts. |
| 129 |
type Key struct { |
| 130 |
state protoimpl.MessageState |
| 131 |
sizeCache protoimpl.SizeCache |
| 132 |
unknownFields protoimpl.UnknownFields |
| 133 |
|
| 134 |
// Entities are partitioned into subsets, currently identified by a project |
| 135 |
// ID and namespace ID. |
| 136 |
// Queries are scoped to a single partition. |
| 137 |
PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"` |
| 138 |
// The entity path. |
| 139 |
// An entity path consists of one or more elements composed of a kind and a |
| 140 |
// string or numerical identifier, which identify entities. The first |
| 141 |
// element identifies a _root entity_, the second element identifies |
| 142 |
// a _child_ of the root entity, the third element identifies a child of the |
| 143 |
// second entity, and so forth. The entities identified by all prefixes of |
| 144 |
// the path are called the element's _ancestors_. |
| 145 |
// |
| 146 |
// An entity path is always fully complete: *all* of the entity's ancestors |
| 147 |
// are required to be in the path along with the entity identifier itself. |
| 148 |
// The only exception is that in some documented cases, the identifier in the |
| 149 |
// last path element (for the entity) itself may be omitted. For example, |
| 150 |
// the last path element of the key of `Mutation.insert` may have no |
| 151 |
// identifier. |
| 152 |
// |
| 153 |
// A path can never be empty, and a path can have at most 100 elements. |
| 154 |
Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` |
| 155 |
} |
| 156 |
|
| 157 |
func (x *Key) Reset() { |
| 158 |
*x = Key{} |
| 159 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[1] |
| 160 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 161 |
ms.StoreMessageInfo(mi) |
| 162 |
} |
| 163 |
|
| 164 |
func (x *Key) String() string { |
| 165 |
return protoimpl.X.MessageStringOf(x) |
| 166 |
} |
| 167 |
|
| 168 |
func (*Key) ProtoMessage() {} |
| 169 |
|
| 170 |
func (x *Key) ProtoReflect() protoreflect.Message { |
| 171 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[1] |
| 172 |
if x != nil { |
| 173 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 174 |
if ms.LoadMessageInfo() == nil { |
| 175 |
ms.StoreMessageInfo(mi) |
| 176 |
} |
| 177 |
return ms |
| 178 |
} |
| 179 |
return mi.MessageOf(x) |
| 180 |
} |
| 181 |
|
| 182 |
// Deprecated: Use Key.ProtoReflect.Descriptor instead. |
| 183 |
func (*Key) Descriptor() ([]byte, []int) { |
| 184 |
return file_google_datastore_v1_entity_proto_rawDescGZIP(), []int{1} |
| 185 |
} |
| 186 |
|
| 187 |
func (x *Key) GetPartitionId() *PartitionId { |
| 188 |
if x != nil { |
| 189 |
return x.PartitionId |
| 190 |
} |
| 191 |
return nil |
| 192 |
} |
| 193 |
|
| 194 |
func (x *Key) GetPath() []*Key_PathElement { |
| 195 |
if x != nil { |
| 196 |
return x.Path |
| 197 |
} |
| 198 |
return nil |
| 199 |
} |
| 200 |
|
| 201 |
// An array value. |
| 202 |
type ArrayValue struct { |
| 203 |
state protoimpl.MessageState |
| 204 |
sizeCache protoimpl.SizeCache |
| 205 |
unknownFields protoimpl.UnknownFields |
| 206 |
|
| 207 |
// Values in the array. |
| 208 |
// The order of values in an array is preserved as long as all values have |
| 209 |
// identical settings for 'exclude_from_indexes'. |
| 210 |
Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` |
| 211 |
} |
| 212 |
|
| 213 |
func (x *ArrayValue) Reset() { |
| 214 |
*x = ArrayValue{} |
| 215 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[2] |
| 216 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 217 |
ms.StoreMessageInfo(mi) |
| 218 |
} |
| 219 |
|
| 220 |
func (x *ArrayValue) String() string { |
| 221 |
return protoimpl.X.MessageStringOf(x) |
| 222 |
} |
| 223 |
|
| 224 |
func (*ArrayValue) ProtoMessage() {} |
| 225 |
|
| 226 |
func (x *ArrayValue) ProtoReflect() protoreflect.Message { |
| 227 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[2] |
| 228 |
if x != nil { |
| 229 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 230 |
if ms.LoadMessageInfo() == nil { |
| 231 |
ms.StoreMessageInfo(mi) |
| 232 |
} |
| 233 |
return ms |
| 234 |
} |
| 235 |
return mi.MessageOf(x) |
| 236 |
} |
| 237 |
|
| 238 |
// Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead. |
| 239 |
func (*ArrayValue) Descriptor() ([]byte, []int) { |
| 240 |
return file_google_datastore_v1_entity_proto_rawDescGZIP(), []int{2} |
| 241 |
} |
| 242 |
|
| 243 |
func (x *ArrayValue) GetValues() []*Value { |
| 244 |
if x != nil { |
| 245 |
return x.Values |
| 246 |
} |
| 247 |
return nil |
| 248 |
} |
| 249 |
|
| 250 |
// A message that can hold any of the supported value types and associated |
| 251 |
// metadata. |
| 252 |
type Value struct { |
| 253 |
state protoimpl.MessageState |
| 254 |
sizeCache protoimpl.SizeCache |
| 255 |
unknownFields protoimpl.UnknownFields |
| 256 |
|
| 257 |
// Must have a value set. |
| 258 |
// |
| 259 |
// Types that are assignable to ValueType: |
| 260 |
// |
| 261 |
// *Value_NullValue |
| 262 |
// *Value_BooleanValue |
| 263 |
// *Value_IntegerValue |
| 264 |
// *Value_DoubleValue |
| 265 |
// *Value_TimestampValue |
| 266 |
// *Value_KeyValue |
| 267 |
// *Value_StringValue |
| 268 |
// *Value_BlobValue |
| 269 |
// *Value_GeoPointValue |
| 270 |
// *Value_EntityValue |
| 271 |
// *Value_ArrayValue |
| 272 |
ValueType isValue_ValueType `protobuf_oneof:"value_type"` |
| 273 |
// The `meaning` field should only be populated for backwards compatibility. |
| 274 |
Meaning int32 `protobuf:"varint,14,opt,name=meaning,proto3" json:"meaning,omitempty"` |
| 275 |
// If the value should be excluded from all indexes including those defined |
| 276 |
// explicitly. |
| 277 |
ExcludeFromIndexes bool `protobuf:"varint,19,opt,name=exclude_from_indexes,json=excludeFromIndexes,proto3" json:"exclude_from_indexes,omitempty"` |
| 278 |
} |
| 279 |
|
| 280 |
func (x *Value) Reset() { |
| 281 |
*x = Value{} |
| 282 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[3] |
| 283 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 284 |
ms.StoreMessageInfo(mi) |
| 285 |
} |
| 286 |
|
| 287 |
func (x *Value) String() string { |
| 288 |
return protoimpl.X.MessageStringOf(x) |
| 289 |
} |
| 290 |
|
| 291 |
func (*Value) ProtoMessage() {} |
| 292 |
|
| 293 |
func (x *Value) ProtoReflect() protoreflect.Message { |
| 294 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[3] |
| 295 |
if x != nil { |
| 296 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 297 |
if ms.LoadMessageInfo() == nil { |
| 298 |
ms.StoreMessageInfo(mi) |
| 299 |
} |
| 300 |
return ms |
| 301 |
} |
| 302 |
return mi.MessageOf(x) |
| 303 |
} |
| 304 |
|
| 305 |
// Deprecated: Use Value.ProtoReflect.Descriptor instead. |
| 306 |
func (*Value) Descriptor() ([]byte, []int) { |
| 307 |
return file_google_datastore_v1_entity_proto_rawDescGZIP(), []int{3} |
| 308 |
} |
| 309 |
|
| 310 |
func (m *Value) GetValueType() isValue_ValueType { |
| 311 |
if m != nil { |
| 312 |
return m.ValueType |
| 313 |
} |
| 314 |
return nil |
| 315 |
} |
| 316 |
|
| 317 |
func (x *Value) GetNullValue() structpb.NullValue { |
| 318 |
if x, ok := x.GetValueType().(*Value_NullValue); ok { |
| 319 |
return x.NullValue |
| 320 |
} |
| 321 |
return structpb.NullValue(0) |
| 322 |
} |
| 323 |
|
| 324 |
func (x *Value) GetBooleanValue() bool { |
| 325 |
if x, ok := x.GetValueType().(*Value_BooleanValue); ok { |
| 326 |
return x.BooleanValue |
| 327 |
} |
| 328 |
return false |
| 329 |
} |
| 330 |
|
| 331 |
func (x *Value) GetIntegerValue() int64 { |
| 332 |
if x, ok := x.GetValueType().(*Value_IntegerValue); ok { |
| 333 |
return x.IntegerValue |
| 334 |
} |
| 335 |
return 0 |
| 336 |
} |
| 337 |
|
| 338 |
func (x *Value) GetDoubleValue() float64 { |
| 339 |
if x, ok := x.GetValueType().(*Value_DoubleValue); ok { |
| 340 |
return x.DoubleValue |
| 341 |
} |
| 342 |
return 0 |
| 343 |
} |
| 344 |
|
| 345 |
func (x *Value) GetTimestampValue() *timestamppb.Timestamp { |
| 346 |
if x, ok := x.GetValueType().(*Value_TimestampValue); ok { |
| 347 |
return x.TimestampValue |
| 348 |
} |
| 349 |
return nil |
| 350 |
} |
| 351 |
|
| 352 |
func (x *Value) GetKeyValue() *Key { |
| 353 |
if x, ok := x.GetValueType().(*Value_KeyValue); ok { |
| 354 |
return x.KeyValue |
| 355 |
} |
| 356 |
return nil |
| 357 |
} |
| 358 |
|
| 359 |
func (x *Value) GetStringValue() string { |
| 360 |
if x, ok := x.GetValueType().(*Value_StringValue); ok { |
| 361 |
return x.StringValue |
| 362 |
} |
| 363 |
return "" |
| 364 |
} |
| 365 |
|
| 366 |
func (x *Value) GetBlobValue() []byte { |
| 367 |
if x, ok := x.GetValueType().(*Value_BlobValue); ok { |
| 368 |
return x.BlobValue |
| 369 |
} |
| 370 |
return nil |
| 371 |
} |
| 372 |
|
| 373 |
func (x *Value) GetGeoPointValue() *latlng.LatLng { |
| 374 |
if x, ok := x.GetValueType().(*Value_GeoPointValue); ok { |
| 375 |
return x.GeoPointValue |
| 376 |
} |
| 377 |
return nil |
| 378 |
} |
| 379 |
|
| 380 |
func (x *Value) GetEntityValue() *Entity { |
| 381 |
if x, ok := x.GetValueType().(*Value_EntityValue); ok { |
| 382 |
return x.EntityValue |
| 383 |
} |
| 384 |
return nil |
| 385 |
} |
| 386 |
|
| 387 |
func (x *Value) GetArrayValue() *ArrayValue { |
| 388 |
if x, ok := x.GetValueType().(*Value_ArrayValue); ok { |
| 389 |
return x.ArrayValue |
| 390 |
} |
| 391 |
return nil |
| 392 |
} |
| 393 |
|
| 394 |
func (x *Value) GetMeaning() int32 { |
| 395 |
if x != nil { |
| 396 |
return x.Meaning |
| 397 |
} |
| 398 |
return 0 |
| 399 |
} |
| 400 |
|
| 401 |
func (x *Value) GetExcludeFromIndexes() bool { |
| 402 |
if x != nil { |
| 403 |
return x.ExcludeFromIndexes |
| 404 |
} |
| 405 |
return false |
| 406 |
} |
| 407 |
|
| 408 |
type isValue_ValueType interface { |
| 409 |
isValue_ValueType() |
| 410 |
} |
| 411 |
|
| 412 |
type Value_NullValue struct { |
| 413 |
// A null value. |
| 414 |
NullValue structpb.NullValue `protobuf:"varint,11,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` |
| 415 |
} |
| 416 |
|
| 417 |
type Value_BooleanValue struct { |
| 418 |
// A boolean value. |
| 419 |
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"` |
| 420 |
} |
| 421 |
|
| 422 |
type Value_IntegerValue struct { |
| 423 |
// An integer value. |
| 424 |
IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"` |
| 425 |
} |
| 426 |
|
| 427 |
type Value_DoubleValue struct { |
| 428 |
// A double value. |
| 429 |
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"` |
| 430 |
} |
| 431 |
|
| 432 |
type Value_TimestampValue struct { |
| 433 |
// A timestamp value. |
| 434 |
// When stored in the Datastore, precise only to microseconds; |
| 435 |
// any additional precision is rounded down. |
| 436 |
TimestampValue *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` |
| 437 |
} |
| 438 |
|
| 439 |
type Value_KeyValue struct { |
| 440 |
// A key value. |
| 441 |
KeyValue *Key `protobuf:"bytes,5,opt,name=key_value,json=keyValue,proto3,oneof"` |
| 442 |
} |
| 443 |
|
| 444 |
type Value_StringValue struct { |
| 445 |
// A UTF-8 encoded string value. |
| 446 |
// When `exclude_from_indexes` is false (it is indexed) , may have at most |
| 447 |
// 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. |
| 448 |
StringValue string `protobuf:"bytes,17,opt,name=string_value,json=stringValue,proto3,oneof"` |
| 449 |
} |
| 450 |
|
| 451 |
type Value_BlobValue struct { |
| 452 |
// A blob value. |
| 453 |
// May have at most 1,000,000 bytes. |
| 454 |
// When `exclude_from_indexes` is false, may have at most 1500 bytes. |
| 455 |
// In JSON requests, must be base64-encoded. |
| 456 |
BlobValue []byte `protobuf:"bytes,18,opt,name=blob_value,json=blobValue,proto3,oneof"` |
| 457 |
} |
| 458 |
|
| 459 |
type Value_GeoPointValue struct { |
| 460 |
// A geo point value representing a point on the surface of Earth. |
| 461 |
GeoPointValue *latlng.LatLng `protobuf:"bytes,8,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"` |
| 462 |
} |
| 463 |
|
| 464 |
type Value_EntityValue struct { |
| 465 |
// An entity value. |
| 466 |
// |
| 467 |
// - May have no key. |
| 468 |
// - May have a key with an incomplete key path. |
| 469 |
// - May have a reserved/read-only key. |
| 470 |
EntityValue *Entity `protobuf:"bytes,6,opt,name=entity_value,json=entityValue,proto3,oneof"` |
| 471 |
} |
| 472 |
|
| 473 |
type Value_ArrayValue struct { |
| 474 |
// An array value. |
| 475 |
// Cannot contain another array value. |
| 476 |
// A `Value` instance that sets field `array_value` must not set fields |
| 477 |
// `meaning` or `exclude_from_indexes`. |
| 478 |
ArrayValue *ArrayValue `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof"` |
| 479 |
} |
| 480 |
|
| 481 |
func (*Value_NullValue) isValue_ValueType() {} |
| 482 |
|
| 483 |
func (*Value_BooleanValue) isValue_ValueType() {} |
| 484 |
|
| 485 |
func (*Value_IntegerValue) isValue_ValueType() {} |
| 486 |
|
| 487 |
func (*Value_DoubleValue) isValue_ValueType() {} |
| 488 |
|
| 489 |
func (*Value_TimestampValue) isValue_ValueType() {} |
| 490 |
|
| 491 |
func (*Value_KeyValue) isValue_ValueType() {} |
| 492 |
|
| 493 |
func (*Value_StringValue) isValue_ValueType() {} |
| 494 |
|
| 495 |
func (*Value_BlobValue) isValue_ValueType() {} |
| 496 |
|
| 497 |
func (*Value_GeoPointValue) isValue_ValueType() {} |
| 498 |
|
| 499 |
func (*Value_EntityValue) isValue_ValueType() {} |
| 500 |
|
| 501 |
func (*Value_ArrayValue) isValue_ValueType() {} |
| 502 |
|
| 503 |
// A Datastore data object. |
| 504 |
// |
| 505 |
// Must not exceed 1 MiB - 4 bytes. |
| 506 |
type Entity struct { |
| 507 |
state protoimpl.MessageState |
| 508 |
sizeCache protoimpl.SizeCache |
| 509 |
unknownFields protoimpl.UnknownFields |
| 510 |
|
| 511 |
// The entity's key. |
| 512 |
// |
| 513 |
// An entity must have a key, unless otherwise documented (for example, |
| 514 |
// an entity in `Value.entity_value` may have no key). |
| 515 |
// An entity's kind is its key path's last element's kind, |
| 516 |
// or null if it has no key. |
| 517 |
Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 518 |
// The entity's properties. |
| 519 |
// The map's keys are property names. |
| 520 |
// A property name matching regex `__.*__` is reserved. |
| 521 |
// A reserved property name is forbidden in certain documented contexts. |
| 522 |
// The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot |
| 523 |
// be empty. |
| 524 |
Properties map[string]*Value `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 525 |
} |
| 526 |
|
| 527 |
func (x *Entity) Reset() { |
| 528 |
*x = Entity{} |
| 529 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[4] |
| 530 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 531 |
ms.StoreMessageInfo(mi) |
| 532 |
} |
| 533 |
|
| 534 |
func (x *Entity) String() string { |
| 535 |
return protoimpl.X.MessageStringOf(x) |
| 536 |
} |
| 537 |
|
| 538 |
func (*Entity) ProtoMessage() {} |
| 539 |
|
| 540 |
func (x *Entity) ProtoReflect() protoreflect.Message { |
| 541 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[4] |
| 542 |
if x != nil { |
| 543 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 544 |
if ms.LoadMessageInfo() == nil { |
| 545 |
ms.StoreMessageInfo(mi) |
| 546 |
} |
| 547 |
return ms |
| 548 |
} |
| 549 |
return mi.MessageOf(x) |
| 550 |
} |
| 551 |
|
| 552 |
// Deprecated: Use Entity.ProtoReflect.Descriptor instead. |
| 553 |
func (*Entity) Descriptor() ([]byte, []int) { |
| 554 |
return file_google_datastore_v1_entity_proto_rawDescGZIP(), []int{4} |
| 555 |
} |
| 556 |
|
| 557 |
func (x *Entity) GetKey() *Key { |
| 558 |
if x != nil { |
| 559 |
return x.Key |
| 560 |
} |
| 561 |
return nil |
| 562 |
} |
| 563 |
|
| 564 |
func (x *Entity) GetProperties() map[string]*Value { |
| 565 |
if x != nil { |
| 566 |
return x.Properties |
| 567 |
} |
| 568 |
return nil |
| 569 |
} |
| 570 |
|
| 571 |
// A (kind, ID/name) pair used to construct a key path. |
| 572 |
// |
| 573 |
// If either name or ID is set, the element is complete. |
| 574 |
// If neither is set, the element is incomplete. |
| 575 |
type Key_PathElement struct { |
| 576 |
state protoimpl.MessageState |
| 577 |
sizeCache protoimpl.SizeCache |
| 578 |
unknownFields protoimpl.UnknownFields |
| 579 |
|
| 580 |
// The kind of the entity. |
| 581 |
// |
| 582 |
// A kind matching regex `__.*__` is reserved/read-only. |
| 583 |
// A kind must not contain more than 1500 bytes when UTF-8 encoded. |
| 584 |
// Cannot be `""`. |
| 585 |
// |
| 586 |
// Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are |
| 587 |
// encoded as `__bytes<X>__` where `<X>` is the base-64 encoding of the |
| 588 |
// bytes. |
| 589 |
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` |
| 590 |
// The type of ID. |
| 591 |
// |
| 592 |
// Types that are assignable to IdType: |
| 593 |
// |
| 594 |
// *Key_PathElement_Id |
| 595 |
// *Key_PathElement_Name |
| 596 |
IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"` |
| 597 |
} |
| 598 |
|
| 599 |
func (x *Key_PathElement) Reset() { |
| 600 |
*x = Key_PathElement{} |
| 601 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[5] |
| 602 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 603 |
ms.StoreMessageInfo(mi) |
| 604 |
} |
| 605 |
|
| 606 |
func (x *Key_PathElement) String() string { |
| 607 |
return protoimpl.X.MessageStringOf(x) |
| 608 |
} |
| 609 |
|
| 610 |
func (*Key_PathElement) ProtoMessage() {} |
| 611 |
|
| 612 |
func (x *Key_PathElement) ProtoReflect() protoreflect.Message { |
| 613 |
mi := &file_google_datastore_v1_entity_proto_msgTypes[5] |
| 614 |
if x != nil { |
| 615 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 616 |
if ms.LoadMessageInfo() == nil { |
| 617 |
ms.StoreMessageInfo(mi) |
| 618 |
} |
| 619 |
return ms |
| 620 |
} |
| 621 |
return mi.MessageOf(x) |
| 622 |
} |
| 623 |
|
| 624 |
// Deprecated: Use Key_PathElement.ProtoReflect.Descriptor instead. |
| 625 |
func (*Key_PathElement) Descriptor() ([]byte, []int) { |
| 626 |
return file_google_datastore_v1_entity_proto_rawDescGZIP(), []int{1, 0} |
| 627 |
} |
| 628 |
|
| 629 |
func (x *Key_PathElement) GetKind() string { |
| 630 |
if x != nil { |
| 631 |
return x.Kind |
| 632 |
} |
| 633 |
return "" |
| 634 |
} |
| 635 |
|
| 636 |
func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType { |
| 637 |
if m != nil { |
| 638 |
return m.IdType |
| 639 |
} |
| 640 |
return nil |
| 641 |
} |
| 642 |
|
| 643 |
func (x *Key_PathElement) GetId() int64 { |
| 644 |
if x, ok := x.GetIdType().(*Key_PathElement_Id); ok { |
| 645 |
return x.Id |
| 646 |
} |
| 647 |
return 0 |
| 648 |
} |
| 649 |
|
| 650 |
func (x *Key_PathElement) GetName() string { |
| 651 |
if x, ok := x.GetIdType().(*Key_PathElement_Name); ok { |
| 652 |
return x.Name |
| 653 |
} |
| 654 |
return "" |
| 655 |
} |
| 656 |
|
| 657 |
type isKey_PathElement_IdType interface { |
| 658 |
isKey_PathElement_IdType() |
| 659 |
} |
| 660 |
|
| 661 |
type Key_PathElement_Id struct { |
| 662 |
// The auto-allocated ID of the entity. |
| 663 |
// |
| 664 |
// Never equal to zero. Values less than zero are discouraged and may not |
| 665 |
// be supported in the future. |
| 666 |
Id int64 `protobuf:"varint,2,opt,name=id,proto3,oneof"` |
| 667 |
} |
| 668 |
|
| 669 |
type Key_PathElement_Name struct { |
| 670 |
// The name of the entity. |
| 671 |
// |
| 672 |
// A name matching regex `__.*__` is reserved/read-only. |
| 673 |
// A name must not be more than 1500 bytes when UTF-8 encoded. |
| 674 |
// Cannot be `""`. |
| 675 |
// |
| 676 |
// Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are |
| 677 |
// encoded as `__bytes<X>__` where `<X>` is the base-64 encoding of the |
| 678 |
// bytes. |
| 679 |
Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"` |
| 680 |
} |
| 681 |
|
| 682 |
func (*Key_PathElement_Id) isKey_PathElement_IdType() {} |
| 683 |
|
| 684 |
func (*Key_PathElement_Name) isKey_PathElement_IdType() {} |
| 685 |
|
| 686 |
var File_google_datastore_v1_entity_proto protoreflect.FileDescriptor |
| 687 |
|
| 688 |
var file_google_datastore_v1_entity_proto_rawDesc = []byte{ |
| 689 |
0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, |
| 690 |
0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, |
| 691 |
0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, |
| 692 |
0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 693 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, |
| 694 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 695 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, |
| 696 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, |
| 697 |
0x79, 0x70, 0x65, 0x2f, 0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 698 |
0x22, 0x70, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, |
| 699 |
0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, |
| 700 |
0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1f, |
| 701 |
0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, |
| 702 |
0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x49, 0x64, 0x12, |
| 703 |
0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, |
| 704 |
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, |
| 705 |
0x49, 0x64, 0x22, 0xda, 0x01, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x43, 0x0a, 0x0c, 0x70, 0x61, |
| 706 |
0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, |
| 707 |
0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, |
| 708 |
0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, |
| 709 |
0x49, 0x64, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, |
| 710 |
0x38, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, |
| 711 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 712 |
0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, 0x65, 0x6d, |
| 713 |
0x65, 0x6e, 0x74, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x1a, 0x54, 0x0a, 0x0b, 0x50, 0x61, 0x74, |
| 714 |
0x68, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, |
| 715 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x02, |
| 716 |
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, |
| 717 |
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, |
| 718 |
0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, |
| 719 |
0x40, 0x0a, 0x0a, 0x41, 0x72, 0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x32, 0x0a, |
| 720 |
0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, |
| 721 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 722 |
0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 723 |
0x73, 0x22, 0x9c, 0x05, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6e, |
| 724 |
0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, |
| 725 |
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 726 |
0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6e, |
| 727 |
0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, |
| 728 |
0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, |
| 729 |
0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, |
| 730 |
0x25, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 731 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, |
| 732 |
0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, |
| 733 |
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, |
| 734 |
0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x0f, 0x74, |
| 735 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, |
| 736 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
| 737 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, |
| 738 |
0x48, 0x00, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x61, 0x6c, |
| 739 |
0x75, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, |
| 740 |
0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, |
| 741 |
0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x48, |
| 742 |
0x00, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, |
| 743 |
0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, |
| 744 |
0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, |
| 745 |
0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, |
| 746 |
0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x62, 0x56, 0x61, 0x6c, 0x75, |
| 747 |
0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x67, 0x65, 0x6f, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, |
| 748 |
0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6f, 0x6f, |
| 749 |
0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4c, 0x61, 0x74, 0x4c, 0x6e, 0x67, 0x48, |
| 750 |
0x00, 0x52, 0x0d, 0x67, 0x65, 0x6f, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, |
| 751 |
0x12, 0x40, 0x0a, 0x0c, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 752 |
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 753 |
0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, |
| 754 |
0x69, 0x74, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x56, 0x61, 0x6c, |
| 755 |
0x75, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, |
| 756 |
0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 757 |
0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, |
| 758 |
0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x72, 0x61, |
| 759 |
0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x61, 0x6e, 0x69, 0x6e, |
| 760 |
0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x65, 0x61, 0x6e, 0x69, 0x6e, 0x67, |
| 761 |
0x12, 0x30, 0x0a, 0x14, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, |
| 762 |
0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, |
| 763 |
0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x49, 0x6e, 0x64, 0x65, 0x78, |
| 764 |
0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, |
| 765 |
0x22, 0xdc, 0x01, 0x0a, 0x06, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x0a, 0x03, 0x6b, |
| 766 |
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 767 |
0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, |
| 768 |
0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, |
| 769 |
0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, |
| 770 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, |
| 771 |
0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, |
| 772 |
0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, |
| 773 |
0x74, 0x69, 0x65, 0x73, 0x1a, 0x59, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, |
| 774 |
0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, |
| 775 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, |
| 776 |
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 777 |
0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, |
| 778 |
0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, |
| 779 |
0xbc, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, |
| 780 |
0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x6e, 0x74, |
| 781 |
0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, |
| 782 |
0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, |
| 783 |
0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, |
| 784 |
0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x3b, 0x64, 0x61, 0x74, 0x61, |
| 785 |
0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0xaa, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 786 |
0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 787 |
0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, |
| 788 |
0x75, 0x64, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0xea, |
| 789 |
0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, |
| 790 |
0x3a, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, |
| 791 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 792 |
} |
| 793 |
|
| 794 |
var ( |
| 795 |
file_google_datastore_v1_entity_proto_rawDescOnce sync.Once |
| 796 |
file_google_datastore_v1_entity_proto_rawDescData = file_google_datastore_v1_entity_proto_rawDesc |
| 797 |
) |
| 798 |
|
| 799 |
func file_google_datastore_v1_entity_proto_rawDescGZIP() []byte { |
| 800 |
file_google_datastore_v1_entity_proto_rawDescOnce.Do(func() { |
| 801 |
file_google_datastore_v1_entity_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_datastore_v1_entity_proto_rawDescData) |
| 802 |
}) |
| 803 |
return file_google_datastore_v1_entity_proto_rawDescData |
| 804 |
} |
| 805 |
|
| 806 |
var file_google_datastore_v1_entity_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| 807 |
var file_google_datastore_v1_entity_proto_goTypes = []any{ |
| 808 |
(*PartitionId)(nil), // 0: google.datastore.v1.PartitionId |
| 809 |
(*Key)(nil), // 1: google.datastore.v1.Key |
| 810 |
(*ArrayValue)(nil), // 2: google.datastore.v1.ArrayValue |
| 811 |
(*Value)(nil), // 3: google.datastore.v1.Value |
| 812 |
(*Entity)(nil), // 4: google.datastore.v1.Entity |
| 813 |
(*Key_PathElement)(nil), // 5: google.datastore.v1.Key.PathElement |
| 814 |
nil, // 6: google.datastore.v1.Entity.PropertiesEntry |
| 815 |
(structpb.NullValue)(0), // 7: google.protobuf.NullValue |
| 816 |
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp |
| 817 |
(*latlng.LatLng)(nil), // 9: google.type.LatLng |
| 818 |
} |
| 819 |
var file_google_datastore_v1_entity_proto_depIdxs = []int32{ |
| 820 |
0, // 0: google.datastore.v1.Key.partition_id:type_name -> google.datastore.v1.PartitionId |
| 821 |
5, // 1: google.datastore.v1.Key.path:type_name -> google.datastore.v1.Key.PathElement |
| 822 |
3, // 2: google.datastore.v1.ArrayValue.values:type_name -> google.datastore.v1.Value |
| 823 |
7, // 3: google.datastore.v1.Value.null_value:type_name -> google.protobuf.NullValue |
| 824 |
8, // 4: google.datastore.v1.Value.timestamp_value:type_name -> google.protobuf.Timestamp |
| 825 |
1, // 5: google.datastore.v1.Value.key_value:type_name -> google.datastore.v1.Key |
| 826 |
9, // 6: google.datastore.v1.Value.geo_point_value:type_name -> google.type.LatLng |
| 827 |
4, // 7: google.datastore.v1.Value.entity_value:type_name -> google.datastore.v1.Entity |
| 828 |
2, // 8: google.datastore.v1.Value.array_value:type_name -> google.datastore.v1.ArrayValue |
| 829 |
1, // 9: google.datastore.v1.Entity.key:type_name -> google.datastore.v1.Key |
| 830 |
6, // 10: google.datastore.v1.Entity.properties:type_name -> google.datastore.v1.Entity.PropertiesEntry |
| 831 |
3, // 11: google.datastore.v1.Entity.PropertiesEntry.value:type_name -> google.datastore.v1.Value |
| 832 |
12, // [12:12] is the sub-list for method output_type |
| 833 |
12, // [12:12] is the sub-list for method input_type |
| 834 |
12, // [12:12] is the sub-list for extension type_name |
| 835 |
12, // [12:12] is the sub-list for extension extendee |
| 836 |
0, // [0:12] is the sub-list for field type_name |
| 837 |
} |
| 838 |
|
| 839 |
func init() { file_google_datastore_v1_entity_proto_init() } |
| 840 |
func file_google_datastore_v1_entity_proto_init() { |
| 841 |
if File_google_datastore_v1_entity_proto != nil { |
| 842 |
return |
| 843 |
} |
| 844 |
file_google_datastore_v1_entity_proto_msgTypes[3].OneofWrappers = []any{ |
| 845 |
(*Value_NullValue)(nil), |
| 846 |
(*Value_BooleanValue)(nil), |
| 847 |
(*Value_IntegerValue)(nil), |
| 848 |
(*Value_DoubleValue)(nil), |
| 849 |
(*Value_TimestampValue)(nil), |
| 850 |
(*Value_KeyValue)(nil), |
| 851 |
(*Value_StringValue)(nil), |
| 852 |
(*Value_BlobValue)(nil), |
| 853 |
(*Value_GeoPointValue)(nil), |
| 854 |
(*Value_EntityValue)(nil), |
| 855 |
(*Value_ArrayValue)(nil), |
| 856 |
} |
| 857 |
file_google_datastore_v1_entity_proto_msgTypes[5].OneofWrappers = []any{ |
| 858 |
(*Key_PathElement_Id)(nil), |
| 859 |
(*Key_PathElement_Name)(nil), |
| 860 |
} |
| 861 |
type x struct{} |
| 862 |
out := protoimpl.TypeBuilder{ |
| 863 |
File: protoimpl.DescBuilder{ |
| 864 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 865 |
RawDescriptor: file_google_datastore_v1_entity_proto_rawDesc, |
| 866 |
NumEnums: 0, |
| 867 |
NumMessages: 7, |
| 868 |
NumExtensions: 0, |
| 869 |
NumServices: 0, |
| 870 |
}, |
| 871 |
GoTypes: file_google_datastore_v1_entity_proto_goTypes, |
| 872 |
DependencyIndexes: file_google_datastore_v1_entity_proto_depIdxs, |
| 873 |
MessageInfos: file_google_datastore_v1_entity_proto_msgTypes, |
| 874 |
}.Build() |
| 875 |
File_google_datastore_v1_entity_proto = out.File |
| 876 |
file_google_datastore_v1_entity_proto_rawDesc = nil |
| 877 |
file_google_datastore_v1_entity_proto_goTypes = nil |
| 878 |
file_google_datastore_v1_entity_proto_depIdxs = nil |
| 879 |
} |