No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

2124 líneas
77 KiB

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