You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2593 lines
107 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/spanner/v1/spanner.proto
  3. package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import empty "github.com/golang/protobuf/ptypes/empty"
  8. import _struct "github.com/golang/protobuf/ptypes/struct"
  9. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  10. import _ "google.golang.org/genproto/googleapis/api/annotations"
  11. import status "google.golang.org/genproto/googleapis/rpc/status"
  12. import (
  13. context "golang.org/x/net/context"
  14. grpc "google.golang.org/grpc"
  15. )
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  25. // Mode in which the statement must be processed.
  26. type ExecuteSqlRequest_QueryMode int32
  27. const (
  28. // The default mode. Only the statement results are returned.
  29. ExecuteSqlRequest_NORMAL ExecuteSqlRequest_QueryMode = 0
  30. // This mode returns only the query plan, without any results or
  31. // execution statistics information.
  32. ExecuteSqlRequest_PLAN ExecuteSqlRequest_QueryMode = 1
  33. // This mode returns both the query plan and the execution statistics along
  34. // with the results.
  35. ExecuteSqlRequest_PROFILE ExecuteSqlRequest_QueryMode = 2
  36. )
  37. var ExecuteSqlRequest_QueryMode_name = map[int32]string{
  38. 0: "NORMAL",
  39. 1: "PLAN",
  40. 2: "PROFILE",
  41. }
  42. var ExecuteSqlRequest_QueryMode_value = map[string]int32{
  43. "NORMAL": 0,
  44. "PLAN": 1,
  45. "PROFILE": 2,
  46. }
  47. func (x ExecuteSqlRequest_QueryMode) String() string {
  48. return proto.EnumName(ExecuteSqlRequest_QueryMode_name, int32(x))
  49. }
  50. func (ExecuteSqlRequest_QueryMode) EnumDescriptor() ([]byte, []int) {
  51. return fileDescriptor_spanner_e6205c7313670aad, []int{6, 0}
  52. }
  53. // The request for [CreateSession][google.spanner.v1.Spanner.CreateSession].
  54. type CreateSessionRequest struct {
  55. // Required. The database in which the new session is created.
  56. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  57. // The session to create.
  58. Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
  59. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  60. XXX_unrecognized []byte `json:"-"`
  61. XXX_sizecache int32 `json:"-"`
  62. }
  63. func (m *CreateSessionRequest) Reset() { *m = CreateSessionRequest{} }
  64. func (m *CreateSessionRequest) String() string { return proto.CompactTextString(m) }
  65. func (*CreateSessionRequest) ProtoMessage() {}
  66. func (*CreateSessionRequest) Descriptor() ([]byte, []int) {
  67. return fileDescriptor_spanner_e6205c7313670aad, []int{0}
  68. }
  69. func (m *CreateSessionRequest) XXX_Unmarshal(b []byte) error {
  70. return xxx_messageInfo_CreateSessionRequest.Unmarshal(m, b)
  71. }
  72. func (m *CreateSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  73. return xxx_messageInfo_CreateSessionRequest.Marshal(b, m, deterministic)
  74. }
  75. func (dst *CreateSessionRequest) XXX_Merge(src proto.Message) {
  76. xxx_messageInfo_CreateSessionRequest.Merge(dst, src)
  77. }
  78. func (m *CreateSessionRequest) XXX_Size() int {
  79. return xxx_messageInfo_CreateSessionRequest.Size(m)
  80. }
  81. func (m *CreateSessionRequest) XXX_DiscardUnknown() {
  82. xxx_messageInfo_CreateSessionRequest.DiscardUnknown(m)
  83. }
  84. var xxx_messageInfo_CreateSessionRequest proto.InternalMessageInfo
  85. func (m *CreateSessionRequest) GetDatabase() string {
  86. if m != nil {
  87. return m.Database
  88. }
  89. return ""
  90. }
  91. func (m *CreateSessionRequest) GetSession() *Session {
  92. if m != nil {
  93. return m.Session
  94. }
  95. return nil
  96. }
  97. // A session in the Cloud Spanner API.
  98. type Session struct {
  99. // The name of the session. This is always system-assigned; values provided
  100. // when creating a session are ignored.
  101. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  102. // The labels for the session.
  103. //
  104. // * Label keys must be between 1 and 63 characters long and must conform to
  105. // the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
  106. // * Label values must be between 0 and 63 characters long and must conform
  107. // to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
  108. // * No more than 64 labels can be associated with a given session.
  109. //
  110. // See https://goo.gl/xmQnxf for more information on and examples of labels.
  111. Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  112. // Output only. The timestamp when the session is created.
  113. CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  114. // Output only. The approximate timestamp when the session is last used. It is
  115. // typically earlier than the actual last use time.
  116. ApproximateLastUseTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=approximate_last_use_time,json=approximateLastUseTime,proto3" json:"approximate_last_use_time,omitempty"`
  117. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  118. XXX_unrecognized []byte `json:"-"`
  119. XXX_sizecache int32 `json:"-"`
  120. }
  121. func (m *Session) Reset() { *m = Session{} }
  122. func (m *Session) String() string { return proto.CompactTextString(m) }
  123. func (*Session) ProtoMessage() {}
  124. func (*Session) Descriptor() ([]byte, []int) {
  125. return fileDescriptor_spanner_e6205c7313670aad, []int{1}
  126. }
  127. func (m *Session) XXX_Unmarshal(b []byte) error {
  128. return xxx_messageInfo_Session.Unmarshal(m, b)
  129. }
  130. func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  131. return xxx_messageInfo_Session.Marshal(b, m, deterministic)
  132. }
  133. func (dst *Session) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_Session.Merge(dst, src)
  135. }
  136. func (m *Session) XXX_Size() int {
  137. return xxx_messageInfo_Session.Size(m)
  138. }
  139. func (m *Session) XXX_DiscardUnknown() {
  140. xxx_messageInfo_Session.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_Session proto.InternalMessageInfo
  143. func (m *Session) GetName() string {
  144. if m != nil {
  145. return m.Name
  146. }
  147. return ""
  148. }
  149. func (m *Session) GetLabels() map[string]string {
  150. if m != nil {
  151. return m.Labels
  152. }
  153. return nil
  154. }
  155. func (m *Session) GetCreateTime() *timestamp.Timestamp {
  156. if m != nil {
  157. return m.CreateTime
  158. }
  159. return nil
  160. }
  161. func (m *Session) GetApproximateLastUseTime() *timestamp.Timestamp {
  162. if m != nil {
  163. return m.ApproximateLastUseTime
  164. }
  165. return nil
  166. }
  167. // The request for [GetSession][google.spanner.v1.Spanner.GetSession].
  168. type GetSessionRequest struct {
  169. // Required. The name of the session to retrieve.
  170. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  171. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  172. XXX_unrecognized []byte `json:"-"`
  173. XXX_sizecache int32 `json:"-"`
  174. }
  175. func (m *GetSessionRequest) Reset() { *m = GetSessionRequest{} }
  176. func (m *GetSessionRequest) String() string { return proto.CompactTextString(m) }
  177. func (*GetSessionRequest) ProtoMessage() {}
  178. func (*GetSessionRequest) Descriptor() ([]byte, []int) {
  179. return fileDescriptor_spanner_e6205c7313670aad, []int{2}
  180. }
  181. func (m *GetSessionRequest) XXX_Unmarshal(b []byte) error {
  182. return xxx_messageInfo_GetSessionRequest.Unmarshal(m, b)
  183. }
  184. func (m *GetSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  185. return xxx_messageInfo_GetSessionRequest.Marshal(b, m, deterministic)
  186. }
  187. func (dst *GetSessionRequest) XXX_Merge(src proto.Message) {
  188. xxx_messageInfo_GetSessionRequest.Merge(dst, src)
  189. }
  190. func (m *GetSessionRequest) XXX_Size() int {
  191. return xxx_messageInfo_GetSessionRequest.Size(m)
  192. }
  193. func (m *GetSessionRequest) XXX_DiscardUnknown() {
  194. xxx_messageInfo_GetSessionRequest.DiscardUnknown(m)
  195. }
  196. var xxx_messageInfo_GetSessionRequest proto.InternalMessageInfo
  197. func (m *GetSessionRequest) GetName() string {
  198. if m != nil {
  199. return m.Name
  200. }
  201. return ""
  202. }
  203. // The request for [ListSessions][google.spanner.v1.Spanner.ListSessions].
  204. type ListSessionsRequest struct {
  205. // Required. The database in which to list sessions.
  206. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  207. // Number of sessions to be returned in the response. If 0 or less, defaults
  208. // to the server's maximum allowed page size.
  209. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  210. // If non-empty, `page_token` should contain a
  211. // [next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token]
  212. // from a previous
  213. // [ListSessionsResponse][google.spanner.v1.ListSessionsResponse].
  214. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  215. // An expression for filtering the results of the request. Filter rules are
  216. // case insensitive. The fields eligible for filtering are:
  217. //
  218. // * `labels.key` where key is the name of a label
  219. //
  220. // Some examples of using filters are:
  221. //
  222. // * `labels.env:*` --> The session has the label "env".
  223. // * `labels.env:dev` --> The session has the label "env" and the value of
  224. // the label contains the string "dev".
  225. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
  226. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  227. XXX_unrecognized []byte `json:"-"`
  228. XXX_sizecache int32 `json:"-"`
  229. }
  230. func (m *ListSessionsRequest) Reset() { *m = ListSessionsRequest{} }
  231. func (m *ListSessionsRequest) String() string { return proto.CompactTextString(m) }
  232. func (*ListSessionsRequest) ProtoMessage() {}
  233. func (*ListSessionsRequest) Descriptor() ([]byte, []int) {
  234. return fileDescriptor_spanner_e6205c7313670aad, []int{3}
  235. }
  236. func (m *ListSessionsRequest) XXX_Unmarshal(b []byte) error {
  237. return xxx_messageInfo_ListSessionsRequest.Unmarshal(m, b)
  238. }
  239. func (m *ListSessionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  240. return xxx_messageInfo_ListSessionsRequest.Marshal(b, m, deterministic)
  241. }
  242. func (dst *ListSessionsRequest) XXX_Merge(src proto.Message) {
  243. xxx_messageInfo_ListSessionsRequest.Merge(dst, src)
  244. }
  245. func (m *ListSessionsRequest) XXX_Size() int {
  246. return xxx_messageInfo_ListSessionsRequest.Size(m)
  247. }
  248. func (m *ListSessionsRequest) XXX_DiscardUnknown() {
  249. xxx_messageInfo_ListSessionsRequest.DiscardUnknown(m)
  250. }
  251. var xxx_messageInfo_ListSessionsRequest proto.InternalMessageInfo
  252. func (m *ListSessionsRequest) GetDatabase() string {
  253. if m != nil {
  254. return m.Database
  255. }
  256. return ""
  257. }
  258. func (m *ListSessionsRequest) GetPageSize() int32 {
  259. if m != nil {
  260. return m.PageSize
  261. }
  262. return 0
  263. }
  264. func (m *ListSessionsRequest) GetPageToken() string {
  265. if m != nil {
  266. return m.PageToken
  267. }
  268. return ""
  269. }
  270. func (m *ListSessionsRequest) GetFilter() string {
  271. if m != nil {
  272. return m.Filter
  273. }
  274. return ""
  275. }
  276. // The response for [ListSessions][google.spanner.v1.Spanner.ListSessions].
  277. type ListSessionsResponse struct {
  278. // The list of requested sessions.
  279. Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
  280. // `next_page_token` can be sent in a subsequent
  281. // [ListSessions][google.spanner.v1.Spanner.ListSessions] call to fetch more
  282. // of the matching sessions.
  283. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  284. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  285. XXX_unrecognized []byte `json:"-"`
  286. XXX_sizecache int32 `json:"-"`
  287. }
  288. func (m *ListSessionsResponse) Reset() { *m = ListSessionsResponse{} }
  289. func (m *ListSessionsResponse) String() string { return proto.CompactTextString(m) }
  290. func (*ListSessionsResponse) ProtoMessage() {}
  291. func (*ListSessionsResponse) Descriptor() ([]byte, []int) {
  292. return fileDescriptor_spanner_e6205c7313670aad, []int{4}
  293. }
  294. func (m *ListSessionsResponse) XXX_Unmarshal(b []byte) error {
  295. return xxx_messageInfo_ListSessionsResponse.Unmarshal(m, b)
  296. }
  297. func (m *ListSessionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  298. return xxx_messageInfo_ListSessionsResponse.Marshal(b, m, deterministic)
  299. }
  300. func (dst *ListSessionsResponse) XXX_Merge(src proto.Message) {
  301. xxx_messageInfo_ListSessionsResponse.Merge(dst, src)
  302. }
  303. func (m *ListSessionsResponse) XXX_Size() int {
  304. return xxx_messageInfo_ListSessionsResponse.Size(m)
  305. }
  306. func (m *ListSessionsResponse) XXX_DiscardUnknown() {
  307. xxx_messageInfo_ListSessionsResponse.DiscardUnknown(m)
  308. }
  309. var xxx_messageInfo_ListSessionsResponse proto.InternalMessageInfo
  310. func (m *ListSessionsResponse) GetSessions() []*Session {
  311. if m != nil {
  312. return m.Sessions
  313. }
  314. return nil
  315. }
  316. func (m *ListSessionsResponse) GetNextPageToken() string {
  317. if m != nil {
  318. return m.NextPageToken
  319. }
  320. return ""
  321. }
  322. // The request for [DeleteSession][google.spanner.v1.Spanner.DeleteSession].
  323. type DeleteSessionRequest struct {
  324. // Required. The name of the session to delete.
  325. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  326. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  327. XXX_unrecognized []byte `json:"-"`
  328. XXX_sizecache int32 `json:"-"`
  329. }
  330. func (m *DeleteSessionRequest) Reset() { *m = DeleteSessionRequest{} }
  331. func (m *DeleteSessionRequest) String() string { return proto.CompactTextString(m) }
  332. func (*DeleteSessionRequest) ProtoMessage() {}
  333. func (*DeleteSessionRequest) Descriptor() ([]byte, []int) {
  334. return fileDescriptor_spanner_e6205c7313670aad, []int{5}
  335. }
  336. func (m *DeleteSessionRequest) XXX_Unmarshal(b []byte) error {
  337. return xxx_messageInfo_DeleteSessionRequest.Unmarshal(m, b)
  338. }
  339. func (m *DeleteSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  340. return xxx_messageInfo_DeleteSessionRequest.Marshal(b, m, deterministic)
  341. }
  342. func (dst *DeleteSessionRequest) XXX_Merge(src proto.Message) {
  343. xxx_messageInfo_DeleteSessionRequest.Merge(dst, src)
  344. }
  345. func (m *DeleteSessionRequest) XXX_Size() int {
  346. return xxx_messageInfo_DeleteSessionRequest.Size(m)
  347. }
  348. func (m *DeleteSessionRequest) XXX_DiscardUnknown() {
  349. xxx_messageInfo_DeleteSessionRequest.DiscardUnknown(m)
  350. }
  351. var xxx_messageInfo_DeleteSessionRequest proto.InternalMessageInfo
  352. func (m *DeleteSessionRequest) GetName() string {
  353. if m != nil {
  354. return m.Name
  355. }
  356. return ""
  357. }
  358. // The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and
  359. // [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].
  360. type ExecuteSqlRequest struct {
  361. // Required. The session in which the SQL query should be performed.
  362. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  363. // The transaction to use. If none is provided, the default is a
  364. // temporary read-only transaction with strong concurrency.
  365. //
  366. // The transaction to use.
  367. //
  368. // For queries, if none is provided, the default is a temporary read-only
  369. // transaction with strong concurrency.
  370. //
  371. // Standard DML statements require a ReadWrite transaction. Single-use
  372. // transactions are not supported (to avoid replay). The caller must
  373. // either supply an existing transaction ID or begin a new transaction.
  374. //
  375. // Partitioned DML requires an existing PartitionedDml transaction ID.
  376. Transaction *TransactionSelector `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  377. // Required. The SQL string.
  378. Sql string `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"`
  379. // The SQL string can contain parameter placeholders. A parameter
  380. // placeholder consists of `'@'` followed by the parameter
  381. // name. Parameter names consist of any combination of letters,
  382. // numbers, and underscores.
  383. //
  384. // Parameters can appear anywhere that a literal value is expected. The same
  385. // parameter name can be used more than once, for example:
  386. // `"WHERE id > @msg_id AND id < @msg_id + 100"`
  387. //
  388. // It is an error to execute an SQL statement with unbound parameters.
  389. //
  390. // Parameter values are specified using `params`, which is a JSON
  391. // object whose keys are parameter names, and whose values are the
  392. // corresponding parameter values.
  393. Params *_struct.Struct `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"`
  394. // It is not always possible for Cloud Spanner to infer the right SQL type
  395. // from a JSON value. For example, values of type `BYTES` and values
  396. // of type `STRING` both appear in
  397. // [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
  398. //
  399. // In these cases, `param_types` can be used to specify the exact
  400. // SQL type for some or all of the SQL statement parameters. See the
  401. // definition of [Type][google.spanner.v1.Type] for more information
  402. // about SQL types.
  403. ParamTypes map[string]*Type `protobuf:"bytes,5,rep,name=param_types,json=paramTypes,proto3" json:"param_types,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  404. // If this request is resuming a previously interrupted SQL statement
  405. // execution, `resume_token` should be copied from the last
  406. // [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the
  407. // interruption. Doing this enables the new SQL statement execution to resume
  408. // where the last one left off. The rest of the request parameters must
  409. // exactly match the request that yielded this token.
  410. ResumeToken []byte `protobuf:"bytes,6,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"`
  411. // Used to control the amount of debugging information returned in
  412. // [ResultSetStats][google.spanner.v1.ResultSetStats]. If
  413. // [partition_token][google.spanner.v1.ExecuteSqlRequest.partition_token] is
  414. // set, [query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] can only
  415. // be set to
  416. // [QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].
  417. QueryMode ExecuteSqlRequest_QueryMode `protobuf:"varint,7,opt,name=query_mode,json=queryMode,proto3,enum=google.spanner.v1.ExecuteSqlRequest_QueryMode" json:"query_mode,omitempty"`
  418. // If present, results will be restricted to the specified partition
  419. // previously created using PartitionQuery(). There must be an exact
  420. // match for the values of fields common to this message and the
  421. // PartitionQueryRequest message used to create this partition_token.
  422. PartitionToken []byte `protobuf:"bytes,8,opt,name=partition_token,json=partitionToken,proto3" json:"partition_token,omitempty"`
  423. // A per-transaction sequence number used to identify this request. This
  424. // makes each request idempotent such that if the request is received multiple
  425. // times, at most one will succeed.
  426. //
  427. // The sequence number must be monotonically increasing within the
  428. // transaction. If a request arrives for the first time with an out-of-order
  429. // sequence number, the transaction may be aborted. Replays of previously
  430. // handled requests will yield the same response as the first execution.
  431. //
  432. // Required for DML statements. Ignored for queries.
  433. Seqno int64 `protobuf:"varint,9,opt,name=seqno,proto3" json:"seqno,omitempty"`
  434. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  435. XXX_unrecognized []byte `json:"-"`
  436. XXX_sizecache int32 `json:"-"`
  437. }
  438. func (m *ExecuteSqlRequest) Reset() { *m = ExecuteSqlRequest{} }
  439. func (m *ExecuteSqlRequest) String() string { return proto.CompactTextString(m) }
  440. func (*ExecuteSqlRequest) ProtoMessage() {}
  441. func (*ExecuteSqlRequest) Descriptor() ([]byte, []int) {
  442. return fileDescriptor_spanner_e6205c7313670aad, []int{6}
  443. }
  444. func (m *ExecuteSqlRequest) XXX_Unmarshal(b []byte) error {
  445. return xxx_messageInfo_ExecuteSqlRequest.Unmarshal(m, b)
  446. }
  447. func (m *ExecuteSqlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  448. return xxx_messageInfo_ExecuteSqlRequest.Marshal(b, m, deterministic)
  449. }
  450. func (dst *ExecuteSqlRequest) XXX_Merge(src proto.Message) {
  451. xxx_messageInfo_ExecuteSqlRequest.Merge(dst, src)
  452. }
  453. func (m *ExecuteSqlRequest) XXX_Size() int {
  454. return xxx_messageInfo_ExecuteSqlRequest.Size(m)
  455. }
  456. func (m *ExecuteSqlRequest) XXX_DiscardUnknown() {
  457. xxx_messageInfo_ExecuteSqlRequest.DiscardUnknown(m)
  458. }
  459. var xxx_messageInfo_ExecuteSqlRequest proto.InternalMessageInfo
  460. func (m *ExecuteSqlRequest) GetSession() string {
  461. if m != nil {
  462. return m.Session
  463. }
  464. return ""
  465. }
  466. func (m *ExecuteSqlRequest) GetTransaction() *TransactionSelector {
  467. if m != nil {
  468. return m.Transaction
  469. }
  470. return nil
  471. }
  472. func (m *ExecuteSqlRequest) GetSql() string {
  473. if m != nil {
  474. return m.Sql
  475. }
  476. return ""
  477. }
  478. func (m *ExecuteSqlRequest) GetParams() *_struct.Struct {
  479. if m != nil {
  480. return m.Params
  481. }
  482. return nil
  483. }
  484. func (m *ExecuteSqlRequest) GetParamTypes() map[string]*Type {
  485. if m != nil {
  486. return m.ParamTypes
  487. }
  488. return nil
  489. }
  490. func (m *ExecuteSqlRequest) GetResumeToken() []byte {
  491. if m != nil {
  492. return m.ResumeToken
  493. }
  494. return nil
  495. }
  496. func (m *ExecuteSqlRequest) GetQueryMode() ExecuteSqlRequest_QueryMode {
  497. if m != nil {
  498. return m.QueryMode
  499. }
  500. return ExecuteSqlRequest_NORMAL
  501. }
  502. func (m *ExecuteSqlRequest) GetPartitionToken() []byte {
  503. if m != nil {
  504. return m.PartitionToken
  505. }
  506. return nil
  507. }
  508. func (m *ExecuteSqlRequest) GetSeqno() int64 {
  509. if m != nil {
  510. return m.Seqno
  511. }
  512. return 0
  513. }
  514. // The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]
  515. type ExecuteBatchDmlRequest struct {
  516. // Required. The session in which the DML statements should be performed.
  517. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  518. // The transaction to use. A ReadWrite transaction is required. Single-use
  519. // transactions are not supported (to avoid replay). The caller must either
  520. // supply an existing transaction ID or begin a new transaction.
  521. Transaction *TransactionSelector `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  522. // The list of statements to execute in this batch. Statements are executed
  523. // serially, such that the effects of statement i are visible to statement
  524. // i+1. Each statement must be a DML statement. Execution will stop at the
  525. // first failed statement; the remaining statements will not run.
  526. //
  527. // REQUIRES: statements_size() > 0.
  528. Statements []*ExecuteBatchDmlRequest_Statement `protobuf:"bytes,3,rep,name=statements,proto3" json:"statements,omitempty"`
  529. // A per-transaction sequence number used to identify this request. This is
  530. // used in the same space as the seqno in
  531. // [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. See more details
  532. // in [ExecuteSqlRequest][Spanner.ExecuteSqlRequest].
  533. Seqno int64 `protobuf:"varint,4,opt,name=seqno,proto3" json:"seqno,omitempty"`
  534. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  535. XXX_unrecognized []byte `json:"-"`
  536. XXX_sizecache int32 `json:"-"`
  537. }
  538. func (m *ExecuteBatchDmlRequest) Reset() { *m = ExecuteBatchDmlRequest{} }
  539. func (m *ExecuteBatchDmlRequest) String() string { return proto.CompactTextString(m) }
  540. func (*ExecuteBatchDmlRequest) ProtoMessage() {}
  541. func (*ExecuteBatchDmlRequest) Descriptor() ([]byte, []int) {
  542. return fileDescriptor_spanner_e6205c7313670aad, []int{7}
  543. }
  544. func (m *ExecuteBatchDmlRequest) XXX_Unmarshal(b []byte) error {
  545. return xxx_messageInfo_ExecuteBatchDmlRequest.Unmarshal(m, b)
  546. }
  547. func (m *ExecuteBatchDmlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  548. return xxx_messageInfo_ExecuteBatchDmlRequest.Marshal(b, m, deterministic)
  549. }
  550. func (dst *ExecuteBatchDmlRequest) XXX_Merge(src proto.Message) {
  551. xxx_messageInfo_ExecuteBatchDmlRequest.Merge(dst, src)
  552. }
  553. func (m *ExecuteBatchDmlRequest) XXX_Size() int {
  554. return xxx_messageInfo_ExecuteBatchDmlRequest.Size(m)
  555. }
  556. func (m *ExecuteBatchDmlRequest) XXX_DiscardUnknown() {
  557. xxx_messageInfo_ExecuteBatchDmlRequest.DiscardUnknown(m)
  558. }
  559. var xxx_messageInfo_ExecuteBatchDmlRequest proto.InternalMessageInfo
  560. func (m *ExecuteBatchDmlRequest) GetSession() string {
  561. if m != nil {
  562. return m.Session
  563. }
  564. return ""
  565. }
  566. func (m *ExecuteBatchDmlRequest) GetTransaction() *TransactionSelector {
  567. if m != nil {
  568. return m.Transaction
  569. }
  570. return nil
  571. }
  572. func (m *ExecuteBatchDmlRequest) GetStatements() []*ExecuteBatchDmlRequest_Statement {
  573. if m != nil {
  574. return m.Statements
  575. }
  576. return nil
  577. }
  578. func (m *ExecuteBatchDmlRequest) GetSeqno() int64 {
  579. if m != nil {
  580. return m.Seqno
  581. }
  582. return 0
  583. }
  584. // A single DML statement.
  585. type ExecuteBatchDmlRequest_Statement struct {
  586. // Required. The DML string.
  587. Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"`
  588. // The DML string can contain parameter placeholders. A parameter
  589. // placeholder consists of `'@'` followed by the parameter
  590. // name. Parameter names consist of any combination of letters,
  591. // numbers, and underscores.
  592. //
  593. // Parameters can appear anywhere that a literal value is expected. The
  594. // same parameter name can be used more than once, for example:
  595. // `"WHERE id > @msg_id AND id < @msg_id + 100"`
  596. //
  597. // It is an error to execute an SQL statement with unbound parameters.
  598. //
  599. // Parameter values are specified using `params`, which is a JSON
  600. // object whose keys are parameter names, and whose values are the
  601. // corresponding parameter values.
  602. Params *_struct.Struct `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
  603. // It is not always possible for Cloud Spanner to infer the right SQL type
  604. // from a JSON value. For example, values of type `BYTES` and values
  605. // of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
  606. //
  607. // In these cases, `param_types` can be used to specify the exact
  608. // SQL type for some or all of the SQL statement parameters. See the
  609. // definition of [Type][google.spanner.v1.Type] for more information
  610. // about SQL types.
  611. ParamTypes map[string]*Type `protobuf:"bytes,3,rep,name=param_types,json=paramTypes,proto3" json:"param_types,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  612. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  613. XXX_unrecognized []byte `json:"-"`
  614. XXX_sizecache int32 `json:"-"`
  615. }
  616. func (m *ExecuteBatchDmlRequest_Statement) Reset() { *m = ExecuteBatchDmlRequest_Statement{} }
  617. func (m *ExecuteBatchDmlRequest_Statement) String() string { return proto.CompactTextString(m) }
  618. func (*ExecuteBatchDmlRequest_Statement) ProtoMessage() {}
  619. func (*ExecuteBatchDmlRequest_Statement) Descriptor() ([]byte, []int) {
  620. return fileDescriptor_spanner_e6205c7313670aad, []int{7, 0}
  621. }
  622. func (m *ExecuteBatchDmlRequest_Statement) XXX_Unmarshal(b []byte) error {
  623. return xxx_messageInfo_ExecuteBatchDmlRequest_Statement.Unmarshal(m, b)
  624. }
  625. func (m *ExecuteBatchDmlRequest_Statement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  626. return xxx_messageInfo_ExecuteBatchDmlRequest_Statement.Marshal(b, m, deterministic)
  627. }
  628. func (dst *ExecuteBatchDmlRequest_Statement) XXX_Merge(src proto.Message) {
  629. xxx_messageInfo_ExecuteBatchDmlRequest_Statement.Merge(dst, src)
  630. }
  631. func (m *ExecuteBatchDmlRequest_Statement) XXX_Size() int {
  632. return xxx_messageInfo_ExecuteBatchDmlRequest_Statement.Size(m)
  633. }
  634. func (m *ExecuteBatchDmlRequest_Statement) XXX_DiscardUnknown() {
  635. xxx_messageInfo_ExecuteBatchDmlRequest_Statement.DiscardUnknown(m)
  636. }
  637. var xxx_messageInfo_ExecuteBatchDmlRequest_Statement proto.InternalMessageInfo
  638. func (m *ExecuteBatchDmlRequest_Statement) GetSql() string {
  639. if m != nil {
  640. return m.Sql
  641. }
  642. return ""
  643. }
  644. func (m *ExecuteBatchDmlRequest_Statement) GetParams() *_struct.Struct {
  645. if m != nil {
  646. return m.Params
  647. }
  648. return nil
  649. }
  650. func (m *ExecuteBatchDmlRequest_Statement) GetParamTypes() map[string]*Type {
  651. if m != nil {
  652. return m.ParamTypes
  653. }
  654. return nil
  655. }
  656. // The response for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]. Contains a list
  657. // of [ResultSet][google.spanner.v1.ResultSet], one for each DML statement that has successfully executed.
  658. // If a statement fails, the error is returned as part of the response payload.
  659. // Clients can determine whether all DML statements have run successfully, or if
  660. // a statement failed, using one of the following approaches:
  661. //
  662. // 1. Check if 'status' field is OkStatus.
  663. // 2. Check if result_sets_size() equals the number of statements in
  664. // [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest].
  665. //
  666. // Example 1: A request with 5 DML statements, all executed successfully.
  667. // Result: A response with 5 ResultSets, one for each statement in the same
  668. // order, and an OK status.
  669. //
  670. // Example 2: A request with 5 DML statements. The 3rd statement has a syntax
  671. // error.
  672. // Result: A response with 2 ResultSets, for the first 2 statements that
  673. // run successfully, and a syntax error (INVALID_ARGUMENT) status. From
  674. // result_set_size() client can determine that the 3rd statement has failed.
  675. type ExecuteBatchDmlResponse struct {
  676. // ResultSets, one for each statement in the request that ran successfully, in
  677. // the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
  678. // not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
  679. // contain the number of rows modified by the statement.
  680. //
  681. // Only the first ResultSet in the response contains a valid
  682. // [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
  683. ResultSets []*ResultSet `protobuf:"bytes,1,rep,name=result_sets,json=resultSets,proto3" json:"result_sets,omitempty"`
  684. // If all DML statements are executed successfully, status will be OK.
  685. // Otherwise, the error status of the first failed statement.
  686. Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
  687. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  688. XXX_unrecognized []byte `json:"-"`
  689. XXX_sizecache int32 `json:"-"`
  690. }
  691. func (m *ExecuteBatchDmlResponse) Reset() { *m = ExecuteBatchDmlResponse{} }
  692. func (m *ExecuteBatchDmlResponse) String() string { return proto.CompactTextString(m) }
  693. func (*ExecuteBatchDmlResponse) ProtoMessage() {}
  694. func (*ExecuteBatchDmlResponse) Descriptor() ([]byte, []int) {
  695. return fileDescriptor_spanner_e6205c7313670aad, []int{8}
  696. }
  697. func (m *ExecuteBatchDmlResponse) XXX_Unmarshal(b []byte) error {
  698. return xxx_messageInfo_ExecuteBatchDmlResponse.Unmarshal(m, b)
  699. }
  700. func (m *ExecuteBatchDmlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  701. return xxx_messageInfo_ExecuteBatchDmlResponse.Marshal(b, m, deterministic)
  702. }
  703. func (dst *ExecuteBatchDmlResponse) XXX_Merge(src proto.Message) {
  704. xxx_messageInfo_ExecuteBatchDmlResponse.Merge(dst, src)
  705. }
  706. func (m *ExecuteBatchDmlResponse) XXX_Size() int {
  707. return xxx_messageInfo_ExecuteBatchDmlResponse.Size(m)
  708. }
  709. func (m *ExecuteBatchDmlResponse) XXX_DiscardUnknown() {
  710. xxx_messageInfo_ExecuteBatchDmlResponse.DiscardUnknown(m)
  711. }
  712. var xxx_messageInfo_ExecuteBatchDmlResponse proto.InternalMessageInfo
  713. func (m *ExecuteBatchDmlResponse) GetResultSets() []*ResultSet {
  714. if m != nil {
  715. return m.ResultSets
  716. }
  717. return nil
  718. }
  719. func (m *ExecuteBatchDmlResponse) GetStatus() *status.Status {
  720. if m != nil {
  721. return m.Status
  722. }
  723. return nil
  724. }
  725. // Options for a PartitionQueryRequest and
  726. // PartitionReadRequest.
  727. type PartitionOptions struct {
  728. // **Note:** This hint is currently ignored by PartitionQuery and
  729. // PartitionRead requests.
  730. //
  731. // The desired data size for each partition generated. The default for this
  732. // option is currently 1 GiB. This is only a hint. The actual size of each
  733. // partition may be smaller or larger than this size request.
  734. PartitionSizeBytes int64 `protobuf:"varint,1,opt,name=partition_size_bytes,json=partitionSizeBytes,proto3" json:"partition_size_bytes,omitempty"`
  735. // **Note:** This hint is currently ignored by PartitionQuery and
  736. // PartitionRead requests.
  737. //
  738. // The desired maximum number of partitions to return. For example, this may
  739. // be set to the number of workers available. The default for this option
  740. // is currently 10,000. The maximum value is currently 200,000. This is only
  741. // a hint. The actual number of partitions returned may be smaller or larger
  742. // than this maximum count request.
  743. MaxPartitions int64 `protobuf:"varint,2,opt,name=max_partitions,json=maxPartitions,proto3" json:"max_partitions,omitempty"`
  744. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  745. XXX_unrecognized []byte `json:"-"`
  746. XXX_sizecache int32 `json:"-"`
  747. }
  748. func (m *PartitionOptions) Reset() { *m = PartitionOptions{} }
  749. func (m *PartitionOptions) String() string { return proto.CompactTextString(m) }
  750. func (*PartitionOptions) ProtoMessage() {}
  751. func (*PartitionOptions) Descriptor() ([]byte, []int) {
  752. return fileDescriptor_spanner_e6205c7313670aad, []int{9}
  753. }
  754. func (m *PartitionOptions) XXX_Unmarshal(b []byte) error {
  755. return xxx_messageInfo_PartitionOptions.Unmarshal(m, b)
  756. }
  757. func (m *PartitionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  758. return xxx_messageInfo_PartitionOptions.Marshal(b, m, deterministic)
  759. }
  760. func (dst *PartitionOptions) XXX_Merge(src proto.Message) {
  761. xxx_messageInfo_PartitionOptions.Merge(dst, src)
  762. }
  763. func (m *PartitionOptions) XXX_Size() int {
  764. return xxx_messageInfo_PartitionOptions.Size(m)
  765. }
  766. func (m *PartitionOptions) XXX_DiscardUnknown() {
  767. xxx_messageInfo_PartitionOptions.DiscardUnknown(m)
  768. }
  769. var xxx_messageInfo_PartitionOptions proto.InternalMessageInfo
  770. func (m *PartitionOptions) GetPartitionSizeBytes() int64 {
  771. if m != nil {
  772. return m.PartitionSizeBytes
  773. }
  774. return 0
  775. }
  776. func (m *PartitionOptions) GetMaxPartitions() int64 {
  777. if m != nil {
  778. return m.MaxPartitions
  779. }
  780. return 0
  781. }
  782. // The request for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery]
  783. type PartitionQueryRequest struct {
  784. // Required. The session used to create the partitions.
  785. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  786. // Read only snapshot transactions are supported, read/write and single use
  787. // transactions are not.
  788. Transaction *TransactionSelector `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  789. // The query request to generate partitions for. The request will fail if
  790. // the query is not root partitionable. The query plan of a root
  791. // partitionable query has a single distributed union operator. A distributed
  792. // union operator conceptually divides one or more tables into multiple
  793. // splits, remotely evaluates a subquery independently on each split, and
  794. // then unions all results.
  795. //
  796. // This must not contain DML commands, such as INSERT, UPDATE, or
  797. // DELETE. Use
  798. // [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] with a
  799. // PartitionedDml transaction for large, partition-friendly DML operations.
  800. Sql string `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"`
  801. // The SQL query string can contain parameter placeholders. A parameter
  802. // placeholder consists of `'@'` followed by the parameter
  803. // name. Parameter names consist of any combination of letters,
  804. // numbers, and underscores.
  805. //
  806. // Parameters can appear anywhere that a literal value is expected. The same
  807. // parameter name can be used more than once, for example:
  808. // `"WHERE id > @msg_id AND id < @msg_id + 100"`
  809. //
  810. // It is an error to execute an SQL query with unbound parameters.
  811. //
  812. // Parameter values are specified using `params`, which is a JSON
  813. // object whose keys are parameter names, and whose values are the
  814. // corresponding parameter values.
  815. Params *_struct.Struct `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"`
  816. // It is not always possible for Cloud Spanner to infer the right SQL type
  817. // from a JSON value. For example, values of type `BYTES` and values
  818. // of type `STRING` both appear in
  819. // [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings.
  820. //
  821. // In these cases, `param_types` can be used to specify the exact
  822. // SQL type for some or all of the SQL query parameters. See the
  823. // definition of [Type][google.spanner.v1.Type] for more information
  824. // about SQL types.
  825. ParamTypes map[string]*Type `protobuf:"bytes,5,rep,name=param_types,json=paramTypes,proto3" json:"param_types,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  826. // Additional options that affect how many partitions are created.
  827. PartitionOptions *PartitionOptions `protobuf:"bytes,6,opt,name=partition_options,json=partitionOptions,proto3" json:"partition_options,omitempty"`
  828. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  829. XXX_unrecognized []byte `json:"-"`
  830. XXX_sizecache int32 `json:"-"`
  831. }
  832. func (m *PartitionQueryRequest) Reset() { *m = PartitionQueryRequest{} }
  833. func (m *PartitionQueryRequest) String() string { return proto.CompactTextString(m) }
  834. func (*PartitionQueryRequest) ProtoMessage() {}
  835. func (*PartitionQueryRequest) Descriptor() ([]byte, []int) {
  836. return fileDescriptor_spanner_e6205c7313670aad, []int{10}
  837. }
  838. func (m *PartitionQueryRequest) XXX_Unmarshal(b []byte) error {
  839. return xxx_messageInfo_PartitionQueryRequest.Unmarshal(m, b)
  840. }
  841. func (m *PartitionQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  842. return xxx_messageInfo_PartitionQueryRequest.Marshal(b, m, deterministic)
  843. }
  844. func (dst *PartitionQueryRequest) XXX_Merge(src proto.Message) {
  845. xxx_messageInfo_PartitionQueryRequest.Merge(dst, src)
  846. }
  847. func (m *PartitionQueryRequest) XXX_Size() int {
  848. return xxx_messageInfo_PartitionQueryRequest.Size(m)
  849. }
  850. func (m *PartitionQueryRequest) XXX_DiscardUnknown() {
  851. xxx_messageInfo_PartitionQueryRequest.DiscardUnknown(m)
  852. }
  853. var xxx_messageInfo_PartitionQueryRequest proto.InternalMessageInfo
  854. func (m *PartitionQueryRequest) GetSession() string {
  855. if m != nil {
  856. return m.Session
  857. }
  858. return ""
  859. }
  860. func (m *PartitionQueryRequest) GetTransaction() *TransactionSelector {
  861. if m != nil {
  862. return m.Transaction
  863. }
  864. return nil
  865. }
  866. func (m *PartitionQueryRequest) GetSql() string {
  867. if m != nil {
  868. return m.Sql
  869. }
  870. return ""
  871. }
  872. func (m *PartitionQueryRequest) GetParams() *_struct.Struct {
  873. if m != nil {
  874. return m.Params
  875. }
  876. return nil
  877. }
  878. func (m *PartitionQueryRequest) GetParamTypes() map[string]*Type {
  879. if m != nil {
  880. return m.ParamTypes
  881. }
  882. return nil
  883. }
  884. func (m *PartitionQueryRequest) GetPartitionOptions() *PartitionOptions {
  885. if m != nil {
  886. return m.PartitionOptions
  887. }
  888. return nil
  889. }
  890. // The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]
  891. type PartitionReadRequest struct {
  892. // Required. The session used to create the partitions.
  893. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  894. // Read only snapshot transactions are supported, read/write and single use
  895. // transactions are not.
  896. Transaction *TransactionSelector `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  897. // Required. The name of the table in the database to be read.
  898. Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
  899. // If non-empty, the name of an index on
  900. // [table][google.spanner.v1.PartitionReadRequest.table]. This index is used
  901. // instead of the table primary key when interpreting
  902. // [key_set][google.spanner.v1.PartitionReadRequest.key_set] and sorting
  903. // result rows. See [key_set][google.spanner.v1.PartitionReadRequest.key_set]
  904. // for further information.
  905. Index string `protobuf:"bytes,4,opt,name=index,proto3" json:"index,omitempty"`
  906. // The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be
  907. // returned for each row matching this request.
  908. Columns []string `protobuf:"bytes,5,rep,name=columns,proto3" json:"columns,omitempty"`
  909. // Required. `key_set` identifies the rows to be yielded. `key_set` names the
  910. // primary keys of the rows in
  911. // [table][google.spanner.v1.PartitionReadRequest.table] to be yielded, unless
  912. // [index][google.spanner.v1.PartitionReadRequest.index] is present. If
  913. // [index][google.spanner.v1.PartitionReadRequest.index] is present, then
  914. // [key_set][google.spanner.v1.PartitionReadRequest.key_set] instead names
  915. // index keys in [index][google.spanner.v1.PartitionReadRequest.index].
  916. //
  917. // It is not an error for the `key_set` to name rows that do not
  918. // exist in the database. Read yields nothing for nonexistent rows.
  919. KeySet *KeySet `protobuf:"bytes,6,opt,name=key_set,json=keySet,proto3" json:"key_set,omitempty"`
  920. // Additional options that affect how many partitions are created.
  921. PartitionOptions *PartitionOptions `protobuf:"bytes,9,opt,name=partition_options,json=partitionOptions,proto3" json:"partition_options,omitempty"`
  922. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  923. XXX_unrecognized []byte `json:"-"`
  924. XXX_sizecache int32 `json:"-"`
  925. }
  926. func (m *PartitionReadRequest) Reset() { *m = PartitionReadRequest{} }
  927. func (m *PartitionReadRequest) String() string { return proto.CompactTextString(m) }
  928. func (*PartitionReadRequest) ProtoMessage() {}
  929. func (*PartitionReadRequest) Descriptor() ([]byte, []int) {
  930. return fileDescriptor_spanner_e6205c7313670aad, []int{11}
  931. }
  932. func (m *PartitionReadRequest) XXX_Unmarshal(b []byte) error {
  933. return xxx_messageInfo_PartitionReadRequest.Unmarshal(m, b)
  934. }
  935. func (m *PartitionReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  936. return xxx_messageInfo_PartitionReadRequest.Marshal(b, m, deterministic)
  937. }
  938. func (dst *PartitionReadRequest) XXX_Merge(src proto.Message) {
  939. xxx_messageInfo_PartitionReadRequest.Merge(dst, src)
  940. }
  941. func (m *PartitionReadRequest) XXX_Size() int {
  942. return xxx_messageInfo_PartitionReadRequest.Size(m)
  943. }
  944. func (m *PartitionReadRequest) XXX_DiscardUnknown() {
  945. xxx_messageInfo_PartitionReadRequest.DiscardUnknown(m)
  946. }
  947. var xxx_messageInfo_PartitionReadRequest proto.InternalMessageInfo
  948. func (m *PartitionReadRequest) GetSession() string {
  949. if m != nil {
  950. return m.Session
  951. }
  952. return ""
  953. }
  954. func (m *PartitionReadRequest) GetTransaction() *TransactionSelector {
  955. if m != nil {
  956. return m.Transaction
  957. }
  958. return nil
  959. }
  960. func (m *PartitionReadRequest) GetTable() string {
  961. if m != nil {
  962. return m.Table
  963. }
  964. return ""
  965. }
  966. func (m *PartitionReadRequest) GetIndex() string {
  967. if m != nil {
  968. return m.Index
  969. }
  970. return ""
  971. }
  972. func (m *PartitionReadRequest) GetColumns() []string {
  973. if m != nil {
  974. return m.Columns
  975. }
  976. return nil
  977. }
  978. func (m *PartitionReadRequest) GetKeySet() *KeySet {
  979. if m != nil {
  980. return m.KeySet
  981. }
  982. return nil
  983. }
  984. func (m *PartitionReadRequest) GetPartitionOptions() *PartitionOptions {
  985. if m != nil {
  986. return m.PartitionOptions
  987. }
  988. return nil
  989. }
  990. // Information returned for each partition returned in a
  991. // PartitionResponse.
  992. type Partition struct {
  993. // This token can be passed to Read, StreamingRead, ExecuteSql, or
  994. // ExecuteStreamingSql requests to restrict the results to those identified by
  995. // this partition token.
  996. PartitionToken []byte `protobuf:"bytes,1,opt,name=partition_token,json=partitionToken,proto3" json:"partition_token,omitempty"`
  997. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  998. XXX_unrecognized []byte `json:"-"`
  999. XXX_sizecache int32 `json:"-"`
  1000. }
  1001. func (m *Partition) Reset() { *m = Partition{} }
  1002. func (m *Partition) String() string { return proto.CompactTextString(m) }
  1003. func (*Partition) ProtoMessage() {}
  1004. func (*Partition) Descriptor() ([]byte, []int) {
  1005. return fileDescriptor_spanner_e6205c7313670aad, []int{12}
  1006. }
  1007. func (m *Partition) XXX_Unmarshal(b []byte) error {
  1008. return xxx_messageInfo_Partition.Unmarshal(m, b)
  1009. }
  1010. func (m *Partition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1011. return xxx_messageInfo_Partition.Marshal(b, m, deterministic)
  1012. }
  1013. func (dst *Partition) XXX_Merge(src proto.Message) {
  1014. xxx_messageInfo_Partition.Merge(dst, src)
  1015. }
  1016. func (m *Partition) XXX_Size() int {
  1017. return xxx_messageInfo_Partition.Size(m)
  1018. }
  1019. func (m *Partition) XXX_DiscardUnknown() {
  1020. xxx_messageInfo_Partition.DiscardUnknown(m)
  1021. }
  1022. var xxx_messageInfo_Partition proto.InternalMessageInfo
  1023. func (m *Partition) GetPartitionToken() []byte {
  1024. if m != nil {
  1025. return m.PartitionToken
  1026. }
  1027. return nil
  1028. }
  1029. // The response for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery]
  1030. // or [PartitionRead][google.spanner.v1.Spanner.PartitionRead]
  1031. type PartitionResponse struct {
  1032. // Partitions created by this request.
  1033. Partitions []*Partition `protobuf:"bytes,1,rep,name=partitions,proto3" json:"partitions,omitempty"`
  1034. // Transaction created by this request.
  1035. Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  1036. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1037. XXX_unrecognized []byte `json:"-"`
  1038. XXX_sizecache int32 `json:"-"`
  1039. }
  1040. func (m *PartitionResponse) Reset() { *m = PartitionResponse{} }
  1041. func (m *PartitionResponse) String() string { return proto.CompactTextString(m) }
  1042. func (*PartitionResponse) ProtoMessage() {}
  1043. func (*PartitionResponse) Descriptor() ([]byte, []int) {
  1044. return fileDescriptor_spanner_e6205c7313670aad, []int{13}
  1045. }
  1046. func (m *PartitionResponse) XXX_Unmarshal(b []byte) error {
  1047. return xxx_messageInfo_PartitionResponse.Unmarshal(m, b)
  1048. }
  1049. func (m *PartitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1050. return xxx_messageInfo_PartitionResponse.Marshal(b, m, deterministic)
  1051. }
  1052. func (dst *PartitionResponse) XXX_Merge(src proto.Message) {
  1053. xxx_messageInfo_PartitionResponse.Merge(dst, src)
  1054. }
  1055. func (m *PartitionResponse) XXX_Size() int {
  1056. return xxx_messageInfo_PartitionResponse.Size(m)
  1057. }
  1058. func (m *PartitionResponse) XXX_DiscardUnknown() {
  1059. xxx_messageInfo_PartitionResponse.DiscardUnknown(m)
  1060. }
  1061. var xxx_messageInfo_PartitionResponse proto.InternalMessageInfo
  1062. func (m *PartitionResponse) GetPartitions() []*Partition {
  1063. if m != nil {
  1064. return m.Partitions
  1065. }
  1066. return nil
  1067. }
  1068. func (m *PartitionResponse) GetTransaction() *Transaction {
  1069. if m != nil {
  1070. return m.Transaction
  1071. }
  1072. return nil
  1073. }
  1074. // The request for [Read][google.spanner.v1.Spanner.Read] and
  1075. // [StreamingRead][google.spanner.v1.Spanner.StreamingRead].
  1076. type ReadRequest struct {
  1077. // Required. The session in which the read should be performed.
  1078. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  1079. // The transaction to use. If none is provided, the default is a
  1080. // temporary read-only transaction with strong concurrency.
  1081. Transaction *TransactionSelector `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
  1082. // Required. The name of the table in the database to be read.
  1083. Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
  1084. // If non-empty, the name of an index on
  1085. // [table][google.spanner.v1.ReadRequest.table]. This index is used instead of
  1086. // the table primary key when interpreting
  1087. // [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows.
  1088. // See [key_set][google.spanner.v1.ReadRequest.key_set] for further
  1089. // information.
  1090. Index string `protobuf:"bytes,4,opt,name=index,proto3" json:"index,omitempty"`
  1091. // The columns of [table][google.spanner.v1.ReadRequest.table] to be returned
  1092. // for each row matching this request.
  1093. Columns []string `protobuf:"bytes,5,rep,name=columns,proto3" json:"columns,omitempty"`
  1094. // Required. `key_set` identifies the rows to be yielded. `key_set` names the
  1095. // primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to
  1096. // be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present.
  1097. // If [index][google.spanner.v1.ReadRequest.index] is present, then
  1098. // [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys
  1099. // in [index][google.spanner.v1.ReadRequest.index].
  1100. //
  1101. // If the [partition_token][google.spanner.v1.ReadRequest.partition_token]
  1102. // field is empty, rows are yielded in table primary key order (if
  1103. // [index][google.spanner.v1.ReadRequest.index] is empty) or index key order
  1104. // (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the
  1105. // [partition_token][google.spanner.v1.ReadRequest.partition_token] field is
  1106. // not empty, rows will be yielded in an unspecified order.
  1107. //
  1108. // It is not an error for the `key_set` to name rows that do not
  1109. // exist in the database. Read yields nothing for nonexistent rows.
  1110. KeySet *KeySet `protobuf:"bytes,6,opt,name=key_set,json=keySet,proto3" json:"key_set,omitempty"`
  1111. // If greater than zero, only the first `limit` rows are yielded. If `limit`
  1112. // is zero, the default is no limit. A limit cannot be specified if
  1113. // `partition_token` is set.
  1114. Limit int64 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
  1115. // If this request is resuming a previously interrupted read,
  1116. // `resume_token` should be copied from the last
  1117. // [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the
  1118. // interruption. Doing this enables the new read to resume where the last read
  1119. // left off. The rest of the request parameters must exactly match the request
  1120. // that yielded this token.
  1121. ResumeToken []byte `protobuf:"bytes,9,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"`
  1122. // If present, results will be restricted to the specified partition
  1123. // previously created using PartitionRead(). There must be an exact
  1124. // match for the values of fields common to this message and the
  1125. // PartitionReadRequest message used to create this partition_token.
  1126. PartitionToken []byte `protobuf:"bytes,10,opt,name=partition_token,json=partitionToken,proto3" json:"partition_token,omitempty"`
  1127. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1128. XXX_unrecognized []byte `json:"-"`
  1129. XXX_sizecache int32 `json:"-"`
  1130. }
  1131. func (m *ReadRequest) Reset() { *m = ReadRequest{} }
  1132. func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
  1133. func (*ReadRequest) ProtoMessage() {}
  1134. func (*ReadRequest) Descriptor() ([]byte, []int) {
  1135. return fileDescriptor_spanner_e6205c7313670aad, []int{14}
  1136. }
  1137. func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
  1138. return xxx_messageInfo_ReadRequest.Unmarshal(m, b)
  1139. }
  1140. func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1141. return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic)
  1142. }
  1143. func (dst *ReadRequest) XXX_Merge(src proto.Message) {
  1144. xxx_messageInfo_ReadRequest.Merge(dst, src)
  1145. }
  1146. func (m *ReadRequest) XXX_Size() int {
  1147. return xxx_messageInfo_ReadRequest.Size(m)
  1148. }
  1149. func (m *ReadRequest) XXX_DiscardUnknown() {
  1150. xxx_messageInfo_ReadRequest.DiscardUnknown(m)
  1151. }
  1152. var xxx_messageInfo_ReadRequest proto.InternalMessageInfo
  1153. func (m *ReadRequest) GetSession() string {
  1154. if m != nil {
  1155. return m.Session
  1156. }
  1157. return ""
  1158. }
  1159. func (m *ReadRequest) GetTransaction() *TransactionSelector {
  1160. if m != nil {
  1161. return m.Transaction
  1162. }
  1163. return nil
  1164. }
  1165. func (m *ReadRequest) GetTable() string {
  1166. if m != nil {
  1167. return m.Table
  1168. }
  1169. return ""
  1170. }
  1171. func (m *ReadRequest) GetIndex() string {
  1172. if m != nil {
  1173. return m.Index
  1174. }
  1175. return ""
  1176. }
  1177. func (m *ReadRequest) GetColumns() []string {
  1178. if m != nil {
  1179. return m.Columns
  1180. }
  1181. return nil
  1182. }
  1183. func (m *ReadRequest) GetKeySet() *KeySet {
  1184. if m != nil {
  1185. return m.KeySet
  1186. }
  1187. return nil
  1188. }
  1189. func (m *ReadRequest) GetLimit() int64 {
  1190. if m != nil {
  1191. return m.Limit
  1192. }
  1193. return 0
  1194. }
  1195. func (m *ReadRequest) GetResumeToken() []byte {
  1196. if m != nil {
  1197. return m.ResumeToken
  1198. }
  1199. return nil
  1200. }
  1201. func (m *ReadRequest) GetPartitionToken() []byte {
  1202. if m != nil {
  1203. return m.PartitionToken
  1204. }
  1205. return nil
  1206. }
  1207. // The request for
  1208. // [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].
  1209. type BeginTransactionRequest struct {
  1210. // Required. The session in which the transaction runs.
  1211. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  1212. // Required. Options for the new transaction.
  1213. Options *TransactionOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
  1214. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1215. XXX_unrecognized []byte `json:"-"`
  1216. XXX_sizecache int32 `json:"-"`
  1217. }
  1218. func (m *BeginTransactionRequest) Reset() { *m = BeginTransactionRequest{} }
  1219. func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) }
  1220. func (*BeginTransactionRequest) ProtoMessage() {}
  1221. func (*BeginTransactionRequest) Descriptor() ([]byte, []int) {
  1222. return fileDescriptor_spanner_e6205c7313670aad, []int{15}
  1223. }
  1224. func (m *BeginTransactionRequest) XXX_Unmarshal(b []byte) error {
  1225. return xxx_messageInfo_BeginTransactionRequest.Unmarshal(m, b)
  1226. }
  1227. func (m *BeginTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1228. return xxx_messageInfo_BeginTransactionRequest.Marshal(b, m, deterministic)
  1229. }
  1230. func (dst *BeginTransactionRequest) XXX_Merge(src proto.Message) {
  1231. xxx_messageInfo_BeginTransactionRequest.Merge(dst, src)
  1232. }
  1233. func (m *BeginTransactionRequest) XXX_Size() int {
  1234. return xxx_messageInfo_BeginTransactionRequest.Size(m)
  1235. }
  1236. func (m *BeginTransactionRequest) XXX_DiscardUnknown() {
  1237. xxx_messageInfo_BeginTransactionRequest.DiscardUnknown(m)
  1238. }
  1239. var xxx_messageInfo_BeginTransactionRequest proto.InternalMessageInfo
  1240. func (m *BeginTransactionRequest) GetSession() string {
  1241. if m != nil {
  1242. return m.Session
  1243. }
  1244. return ""
  1245. }
  1246. func (m *BeginTransactionRequest) GetOptions() *TransactionOptions {
  1247. if m != nil {
  1248. return m.Options
  1249. }
  1250. return nil
  1251. }
  1252. // The request for [Commit][google.spanner.v1.Spanner.Commit].
  1253. type CommitRequest struct {
  1254. // Required. The session in which the transaction to be committed is running.
  1255. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  1256. // Required. The transaction in which to commit.
  1257. //
  1258. // Types that are valid to be assigned to Transaction:
  1259. // *CommitRequest_TransactionId
  1260. // *CommitRequest_SingleUseTransaction
  1261. Transaction isCommitRequest_Transaction `protobuf_oneof:"transaction"`
  1262. // The mutations to be executed when this transaction commits. All
  1263. // mutations are applied atomically, in the order they appear in
  1264. // this list.
  1265. Mutations []*Mutation `protobuf:"bytes,4,rep,name=mutations,proto3" json:"mutations,omitempty"`
  1266. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1267. XXX_unrecognized []byte `json:"-"`
  1268. XXX_sizecache int32 `json:"-"`
  1269. }
  1270. func (m *CommitRequest) Reset() { *m = CommitRequest{} }
  1271. func (m *CommitRequest) String() string { return proto.CompactTextString(m) }
  1272. func (*CommitRequest) ProtoMessage() {}
  1273. func (*CommitRequest) Descriptor() ([]byte, []int) {
  1274. return fileDescriptor_spanner_e6205c7313670aad, []int{16}
  1275. }
  1276. func (m *CommitRequest) XXX_Unmarshal(b []byte) error {
  1277. return xxx_messageInfo_CommitRequest.Unmarshal(m, b)
  1278. }
  1279. func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1280. return xxx_messageInfo_CommitRequest.Marshal(b, m, deterministic)
  1281. }
  1282. func (dst *CommitRequest) XXX_Merge(src proto.Message) {
  1283. xxx_messageInfo_CommitRequest.Merge(dst, src)
  1284. }
  1285. func (m *CommitRequest) XXX_Size() int {
  1286. return xxx_messageInfo_CommitRequest.Size(m)
  1287. }
  1288. func (m *CommitRequest) XXX_DiscardUnknown() {
  1289. xxx_messageInfo_CommitRequest.DiscardUnknown(m)
  1290. }
  1291. var xxx_messageInfo_CommitRequest proto.InternalMessageInfo
  1292. func (m *CommitRequest) GetSession() string {
  1293. if m != nil {
  1294. return m.Session
  1295. }
  1296. return ""
  1297. }
  1298. type isCommitRequest_Transaction interface {
  1299. isCommitRequest_Transaction()
  1300. }
  1301. type CommitRequest_TransactionId struct {
  1302. TransactionId []byte `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3,oneof"`
  1303. }
  1304. type CommitRequest_SingleUseTransaction struct {
  1305. SingleUseTransaction *TransactionOptions `protobuf:"bytes,3,opt,name=single_use_transaction,json=singleUseTransaction,proto3,oneof"`
  1306. }
  1307. func (*CommitRequest_TransactionId) isCommitRequest_Transaction() {}
  1308. func (*CommitRequest_SingleUseTransaction) isCommitRequest_Transaction() {}
  1309. func (m *CommitRequest) GetTransaction() isCommitRequest_Transaction {
  1310. if m != nil {
  1311. return m.Transaction
  1312. }
  1313. return nil
  1314. }
  1315. func (m *CommitRequest) GetTransactionId() []byte {
  1316. if x, ok := m.GetTransaction().(*CommitRequest_TransactionId); ok {
  1317. return x.TransactionId
  1318. }
  1319. return nil
  1320. }
  1321. func (m *CommitRequest) GetSingleUseTransaction() *TransactionOptions {
  1322. if x, ok := m.GetTransaction().(*CommitRequest_SingleUseTransaction); ok {
  1323. return x.SingleUseTransaction
  1324. }
  1325. return nil
  1326. }
  1327. func (m *CommitRequest) GetMutations() []*Mutation {
  1328. if m != nil {
  1329. return m.Mutations
  1330. }
  1331. return nil
  1332. }
  1333. // XXX_OneofFuncs is for the internal use of the proto package.
  1334. 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{}) {
  1335. return _CommitRequest_OneofMarshaler, _CommitRequest_OneofUnmarshaler, _CommitRequest_OneofSizer, []interface{}{
  1336. (*CommitRequest_TransactionId)(nil),
  1337. (*CommitRequest_SingleUseTransaction)(nil),
  1338. }
  1339. }
  1340. func _CommitRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1341. m := msg.(*CommitRequest)
  1342. // transaction
  1343. switch x := m.Transaction.(type) {
  1344. case *CommitRequest_TransactionId:
  1345. b.EncodeVarint(2<<3 | proto.WireBytes)
  1346. b.EncodeRawBytes(x.TransactionId)
  1347. case *CommitRequest_SingleUseTransaction:
  1348. b.EncodeVarint(3<<3 | proto.WireBytes)
  1349. if err := b.EncodeMessage(x.SingleUseTransaction); err != nil {
  1350. return err
  1351. }
  1352. case nil:
  1353. default:
  1354. return fmt.Errorf("CommitRequest.Transaction has unexpected type %T", x)
  1355. }
  1356. return nil
  1357. }
  1358. func _CommitRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1359. m := msg.(*CommitRequest)
  1360. switch tag {
  1361. case 2: // transaction.transaction_id
  1362. if wire != proto.WireBytes {
  1363. return true, proto.ErrInternalBadWireType
  1364. }
  1365. x, err := b.DecodeRawBytes(true)
  1366. m.Transaction = &CommitRequest_TransactionId{x}
  1367. return true, err
  1368. case 3: // transaction.single_use_transaction
  1369. if wire != proto.WireBytes {
  1370. return true, proto.ErrInternalBadWireType
  1371. }
  1372. msg := new(TransactionOptions)
  1373. err := b.DecodeMessage(msg)
  1374. m.Transaction = &CommitRequest_SingleUseTransaction{msg}
  1375. return true, err
  1376. default:
  1377. return false, nil
  1378. }
  1379. }
  1380. func _CommitRequest_OneofSizer(msg proto.Message) (n int) {
  1381. m := msg.(*CommitRequest)
  1382. // transaction
  1383. switch x := m.Transaction.(type) {
  1384. case *CommitRequest_TransactionId:
  1385. n += 1 // tag and wire
  1386. n += proto.SizeVarint(uint64(len(x.TransactionId)))
  1387. n += len(x.TransactionId)
  1388. case *CommitRequest_SingleUseTransaction:
  1389. s := proto.Size(x.SingleUseTransaction)
  1390. n += 1 // tag and wire
  1391. n += proto.SizeVarint(uint64(s))
  1392. n += s
  1393. case nil:
  1394. default:
  1395. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1396. }
  1397. return n
  1398. }
  1399. // The response for [Commit][google.spanner.v1.Spanner.Commit].
  1400. type CommitResponse struct {
  1401. // The Cloud Spanner timestamp at which the transaction committed.
  1402. CommitTimestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=commit_timestamp,json=commitTimestamp,proto3" json:"commit_timestamp,omitempty"`
  1403. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1404. XXX_unrecognized []byte `json:"-"`
  1405. XXX_sizecache int32 `json:"-"`
  1406. }
  1407. func (m *CommitResponse) Reset() { *m = CommitResponse{} }
  1408. func (m *CommitResponse) String() string { return proto.CompactTextString(m) }
  1409. func (*CommitResponse) ProtoMessage() {}
  1410. func (*CommitResponse) Descriptor() ([]byte, []int) {
  1411. return fileDescriptor_spanner_e6205c7313670aad, []int{17}
  1412. }
  1413. func (m *CommitResponse) XXX_Unmarshal(b []byte) error {
  1414. return xxx_messageInfo_CommitResponse.Unmarshal(m, b)
  1415. }
  1416. func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1417. return xxx_messageInfo_CommitResponse.Marshal(b, m, deterministic)
  1418. }
  1419. func (dst *CommitResponse) XXX_Merge(src proto.Message) {
  1420. xxx_messageInfo_CommitResponse.Merge(dst, src)
  1421. }
  1422. func (m *CommitResponse) XXX_Size() int {
  1423. return xxx_messageInfo_CommitResponse.Size(m)
  1424. }
  1425. func (m *CommitResponse) XXX_DiscardUnknown() {
  1426. xxx_messageInfo_CommitResponse.DiscardUnknown(m)
  1427. }
  1428. var xxx_messageInfo_CommitResponse proto.InternalMessageInfo
  1429. func (m *CommitResponse) GetCommitTimestamp() *timestamp.Timestamp {
  1430. if m != nil {
  1431. return m.CommitTimestamp
  1432. }
  1433. return nil
  1434. }
  1435. // The request for [Rollback][google.spanner.v1.Spanner.Rollback].
  1436. type RollbackRequest struct {
  1437. // Required. The session in which the transaction to roll back is running.
  1438. Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
  1439. // Required. The transaction to roll back.
  1440. TransactionId []byte `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
  1441. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1442. XXX_unrecognized []byte `json:"-"`
  1443. XXX_sizecache int32 `json:"-"`
  1444. }
  1445. func (m *RollbackRequest) Reset() { *m = RollbackRequest{} }
  1446. func (m *RollbackRequest) String() string { return proto.CompactTextString(m) }
  1447. func (*RollbackRequest) ProtoMessage() {}
  1448. func (*RollbackRequest) Descriptor() ([]byte, []int) {
  1449. return fileDescriptor_spanner_e6205c7313670aad, []int{18}
  1450. }
  1451. func (m *RollbackRequest) XXX_Unmarshal(b []byte) error {
  1452. return xxx_messageInfo_RollbackRequest.Unmarshal(m, b)
  1453. }
  1454. func (m *RollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1455. return xxx_messageInfo_RollbackRequest.Marshal(b, m, deterministic)
  1456. }
  1457. func (dst *RollbackRequest) XXX_Merge(src proto.Message) {
  1458. xxx_messageInfo_RollbackRequest.Merge(dst, src)
  1459. }
  1460. func (m *RollbackRequest) XXX_Size() int {
  1461. return xxx_messageInfo_RollbackRequest.Size(m)
  1462. }
  1463. func (m *RollbackRequest) XXX_DiscardUnknown() {
  1464. xxx_messageInfo_RollbackRequest.DiscardUnknown(m)
  1465. }
  1466. var xxx_messageInfo_RollbackRequest proto.InternalMessageInfo
  1467. func (m *RollbackRequest) GetSession() string {
  1468. if m != nil {
  1469. return m.Session
  1470. }
  1471. return ""
  1472. }
  1473. func (m *RollbackRequest) GetTransactionId() []byte {
  1474. if m != nil {
  1475. return m.TransactionId
  1476. }
  1477. return nil
  1478. }
  1479. func init() {
  1480. proto.RegisterType((*CreateSessionRequest)(nil), "google.spanner.v1.CreateSessionRequest")
  1481. proto.RegisterType((*Session)(nil), "google.spanner.v1.Session")
  1482. proto.RegisterMapType((map[string]string)(nil), "google.spanner.v1.Session.LabelsEntry")
  1483. proto.RegisterType((*GetSessionRequest)(nil), "google.spanner.v1.GetSessionRequest")
  1484. proto.RegisterType((*ListSessionsRequest)(nil), "google.spanner.v1.ListSessionsRequest")
  1485. proto.RegisterType((*ListSessionsResponse)(nil), "google.spanner.v1.ListSessionsResponse")
  1486. proto.RegisterType((*DeleteSessionRequest)(nil), "google.spanner.v1.DeleteSessionRequest")
  1487. proto.RegisterType((*ExecuteSqlRequest)(nil), "google.spanner.v1.ExecuteSqlRequest")
  1488. proto.RegisterMapType((map[string]*Type)(nil), "google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry")
  1489. proto.RegisterType((*ExecuteBatchDmlRequest)(nil), "google.spanner.v1.ExecuteBatchDmlRequest")
  1490. proto.RegisterType((*ExecuteBatchDmlRequest_Statement)(nil), "google.spanner.v1.ExecuteBatchDmlRequest.Statement")
  1491. proto.RegisterMapType((map[string]*Type)(nil), "google.spanner.v1.ExecuteBatchDmlRequest.Statement.ParamTypesEntry")
  1492. proto.RegisterType((*ExecuteBatchDmlResponse)(nil), "google.spanner.v1.ExecuteBatchDmlResponse")
  1493. proto.RegisterType((*PartitionOptions)(nil), "google.spanner.v1.PartitionOptions")
  1494. proto.RegisterType((*PartitionQueryRequest)(nil), "google.spanner.v1.PartitionQueryRequest")
  1495. proto.RegisterMapType((map[string]*Type)(nil), "google.spanner.v1.PartitionQueryRequest.ParamTypesEntry")
  1496. proto.RegisterType((*PartitionReadRequest)(nil), "google.spanner.v1.PartitionReadRequest")
  1497. proto.RegisterType((*Partition)(nil), "google.spanner.v1.Partition")
  1498. proto.RegisterType((*PartitionResponse)(nil), "google.spanner.v1.PartitionResponse")
  1499. proto.RegisterType((*ReadRequest)(nil), "google.spanner.v1.ReadRequest")
  1500. proto.RegisterType((*BeginTransactionRequest)(nil), "google.spanner.v1.BeginTransactionRequest")
  1501. proto.RegisterType((*CommitRequest)(nil), "google.spanner.v1.CommitRequest")
  1502. proto.RegisterType((*CommitResponse)(nil), "google.spanner.v1.CommitResponse")
  1503. proto.RegisterType((*RollbackRequest)(nil), "google.spanner.v1.RollbackRequest")
  1504. proto.RegisterEnum("google.spanner.v1.ExecuteSqlRequest_QueryMode", ExecuteSqlRequest_QueryMode_name, ExecuteSqlRequest_QueryMode_value)
  1505. }
  1506. // Reference imports to suppress errors if they are not otherwise used.
  1507. var _ context.Context
  1508. var _ grpc.ClientConn
  1509. // This is a compile-time assertion to ensure that this generated file
  1510. // is compatible with the grpc package it is being compiled against.
  1511. const _ = grpc.SupportPackageIsVersion4
  1512. // SpannerClient is the client API for Spanner service.
  1513. //
  1514. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1515. type SpannerClient interface {
  1516. // Creates a new session. A session can be used to perform
  1517. // transactions that read and/or modify data in a Cloud Spanner database.
  1518. // Sessions are meant to be reused for many consecutive
  1519. // transactions.
  1520. //
  1521. // Sessions can only execute one transaction at a time. To execute
  1522. // multiple concurrent read-write/write-only transactions, create
  1523. // multiple sessions. Note that standalone reads and queries use a
  1524. // transaction internally, and count toward the one transaction
  1525. // limit.
  1526. //
  1527. // Cloud Spanner limits the number of sessions that can exist at any given
  1528. // time; thus, it is a good idea to delete idle and/or unneeded sessions.
  1529. // Aside from explicit deletes, Cloud Spanner can delete sessions for which no
  1530. // operations are sent for more than an hour. If a session is deleted,
  1531. // requests to it return `NOT_FOUND`.
  1532. //
  1533. // Idle sessions can be kept alive by sending a trivial SQL query
  1534. // periodically, e.g., `"SELECT 1"`.
  1535. CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*Session, error)
  1536. // Gets a session. Returns `NOT_FOUND` if the session does not exist.
  1537. // This is mainly useful for determining whether a session is still
  1538. // alive.
  1539. GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*Session, error)
  1540. // Lists all sessions in a given database.
  1541. ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error)
  1542. // Ends a session, releasing server resources associated with it. This will
  1543. // asynchronously trigger cancellation of any operations that are running with
  1544. // this session.
  1545. DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1546. // Executes an SQL statement, returning all results in a single reply. This
  1547. // method cannot be used to return a result set larger than 10 MiB;
  1548. // if the query yields more data than that, the query fails with
  1549. // a `FAILED_PRECONDITION` error.
  1550. //
  1551. // Operations inside read-write transactions might return `ABORTED`. If
  1552. // this occurs, the application should restart the transaction from
  1553. // the beginning. See [Transaction][google.spanner.v1.Transaction] for more
  1554. // details.
  1555. //
  1556. // Larger result sets can be fetched in streaming fashion by calling
  1557. // [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]
  1558. // instead.
  1559. ExecuteSql(ctx context.Context, in *ExecuteSqlRequest, opts ...grpc.CallOption) (*ResultSet, error)
  1560. // Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the
  1561. // result set as a stream. Unlike
  1562. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there is no limit on
  1563. // the size of the returned result set. However, no individual row in the
  1564. // result set can exceed 100 MiB, and no column value can exceed 10 MiB.
  1565. ExecuteStreamingSql(ctx context.Context, in *ExecuteSqlRequest, opts ...grpc.CallOption) (Spanner_ExecuteStreamingSqlClient, error)
  1566. // Executes a batch of SQL DML statements. This method allows many statements
  1567. // to be run with lower latency than submitting them sequentially with
  1568. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
  1569. //
  1570. // Statements are executed in order, sequentially.
  1571. // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
  1572. // [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
  1573. // statement fails, its error status will be returned as part of the
  1574. // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
  1575. // stop at the first failed statement; the remaining statements will not run.
  1576. //
  1577. // ExecuteBatchDml is expected to return an OK status with a response even if
  1578. // there was an error while processing one of the DML statements. Clients must
  1579. // inspect response.status to determine if there were any errors while
  1580. // processing the request.
  1581. //
  1582. // See more details in
  1583. // [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
  1584. // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
  1585. ExecuteBatchDml(ctx context.Context, in *ExecuteBatchDmlRequest, opts ...grpc.CallOption) (*ExecuteBatchDmlResponse, error)
  1586. // Reads rows from the database using key lookups and scans, as a
  1587. // simple key/value style alternative to
  1588. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be
  1589. // used to return a result set larger than 10 MiB; if the read matches more
  1590. // data than that, the read fails with a `FAILED_PRECONDITION`
  1591. // error.
  1592. //
  1593. // Reads inside read-write transactions might return `ABORTED`. If
  1594. // this occurs, the application should restart the transaction from
  1595. // the beginning. See [Transaction][google.spanner.v1.Transaction] for more
  1596. // details.
  1597. //
  1598. // Larger result sets can be yielded in streaming fashion by calling
  1599. // [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead.
  1600. Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ResultSet, error)
  1601. // Like [Read][google.spanner.v1.Spanner.Read], except returns the result set
  1602. // as a stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no
  1603. // limit on the size of the returned result set. However, no individual row in
  1604. // the result set can exceed 100 MiB, and no column value can exceed
  1605. // 10 MiB.
  1606. StreamingRead(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (Spanner_StreamingReadClient, error)
  1607. // Begins a new transaction. This step can often be skipped:
  1608. // [Read][google.spanner.v1.Spanner.Read],
  1609. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and
  1610. // [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a
  1611. // side-effect.
  1612. BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*Transaction, error)
  1613. // Commits a transaction. The request includes the mutations to be
  1614. // applied to rows in the database.
  1615. //
  1616. // `Commit` might return an `ABORTED` error. This can occur at any time;
  1617. // commonly, the cause is conflicts with concurrent
  1618. // transactions. However, it can also happen for a variety of other
  1619. // reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
  1620. // the transaction from the beginning, re-using the same session.
  1621. Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
  1622. // Rolls back a transaction, releasing any locks it holds. It is a good
  1623. // idea to call this for any transaction that includes one or more
  1624. // [Read][google.spanner.v1.Spanner.Read] or
  1625. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and ultimately
  1626. // decides not to commit.
  1627. //
  1628. // `Rollback` returns `OK` if it successfully aborts the transaction, the
  1629. // transaction was already aborted, or the transaction is not
  1630. // found. `Rollback` never returns `ABORTED`.
  1631. Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1632. // Creates a set of partition tokens that can be used to execute a query
  1633. // operation in parallel. Each of the returned partition tokens can be used
  1634. // by [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] to
  1635. // specify a subset of the query result to read. The same session and
  1636. // read-only transaction must be used by the PartitionQueryRequest used to
  1637. // create the partition tokens and the ExecuteSqlRequests that use the
  1638. // partition tokens.
  1639. //
  1640. // Partition tokens become invalid when the session used to create them
  1641. // is deleted, is idle for too long, begins a new transaction, or becomes too
  1642. // old. When any of these happen, it is not possible to resume the query, and
  1643. // the whole operation must be restarted from the beginning.
  1644. PartitionQuery(ctx context.Context, in *PartitionQueryRequest, opts ...grpc.CallOption) (*PartitionResponse, error)
  1645. // Creates a set of partition tokens that can be used to execute a read
  1646. // operation in parallel. Each of the returned partition tokens can be used
  1647. // by [StreamingRead][google.spanner.v1.Spanner.StreamingRead] to specify a
  1648. // subset of the read result to read. The same session and read-only
  1649. // transaction must be used by the PartitionReadRequest used to create the
  1650. // partition tokens and the ReadRequests that use the partition tokens. There
  1651. // are no ordering guarantees on rows returned among the returned partition
  1652. // tokens, or even within each individual StreamingRead call issued with a
  1653. // partition_token.
  1654. //
  1655. // Partition tokens become invalid when the session used to create them
  1656. // is deleted, is idle for too long, begins a new transaction, or becomes too
  1657. // old. When any of these happen, it is not possible to resume the read, and
  1658. // the whole operation must be restarted from the beginning.
  1659. PartitionRead(ctx context.Context, in *PartitionReadRequest, opts ...grpc.CallOption) (*PartitionResponse, error)
  1660. }
  1661. type spannerClient struct {
  1662. cc *grpc.ClientConn
  1663. }
  1664. func NewSpannerClient(cc *grpc.ClientConn) SpannerClient {
  1665. return &spannerClient{cc}
  1666. }
  1667. func (c *spannerClient) CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*Session, error) {
  1668. out := new(Session)
  1669. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/CreateSession", in, out, opts...)
  1670. if err != nil {
  1671. return nil, err
  1672. }
  1673. return out, nil
  1674. }
  1675. func (c *spannerClient) GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*Session, error) {
  1676. out := new(Session)
  1677. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/GetSession", in, out, opts...)
  1678. if err != nil {
  1679. return nil, err
  1680. }
  1681. return out, nil
  1682. }
  1683. func (c *spannerClient) ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error) {
  1684. out := new(ListSessionsResponse)
  1685. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/ListSessions", in, out, opts...)
  1686. if err != nil {
  1687. return nil, err
  1688. }
  1689. return out, nil
  1690. }
  1691. func (c *spannerClient) DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1692. out := new(empty.Empty)
  1693. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/DeleteSession", in, out, opts...)
  1694. if err != nil {
  1695. return nil, err
  1696. }
  1697. return out, nil
  1698. }
  1699. func (c *spannerClient) ExecuteSql(ctx context.Context, in *ExecuteSqlRequest, opts ...grpc.CallOption) (*ResultSet, error) {
  1700. out := new(ResultSet)
  1701. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/ExecuteSql", in, out, opts...)
  1702. if err != nil {
  1703. return nil, err
  1704. }
  1705. return out, nil
  1706. }
  1707. func (c *spannerClient) ExecuteStreamingSql(ctx context.Context, in *ExecuteSqlRequest, opts ...grpc.CallOption) (Spanner_ExecuteStreamingSqlClient, error) {
  1708. stream, err := c.cc.NewStream(ctx, &_Spanner_serviceDesc.Streams[0], "/google.spanner.v1.Spanner/ExecuteStreamingSql", opts...)
  1709. if err != nil {
  1710. return nil, err
  1711. }
  1712. x := &spannerExecuteStreamingSqlClient{stream}
  1713. if err := x.ClientStream.SendMsg(in); err != nil {
  1714. return nil, err
  1715. }
  1716. if err := x.ClientStream.CloseSend(); err != nil {
  1717. return nil, err
  1718. }
  1719. return x, nil
  1720. }
  1721. type Spanner_ExecuteStreamingSqlClient interface {
  1722. Recv() (*PartialResultSet, error)
  1723. grpc.ClientStream
  1724. }
  1725. type spannerExecuteStreamingSqlClient struct {
  1726. grpc.ClientStream
  1727. }
  1728. func (x *spannerExecuteStreamingSqlClient) Recv() (*PartialResultSet, error) {
  1729. m := new(PartialResultSet)
  1730. if err := x.ClientStream.RecvMsg(m); err != nil {
  1731. return nil, err
  1732. }
  1733. return m, nil
  1734. }
  1735. func (c *spannerClient) ExecuteBatchDml(ctx context.Context, in *ExecuteBatchDmlRequest, opts ...grpc.CallOption) (*ExecuteBatchDmlResponse, error) {
  1736. out := new(ExecuteBatchDmlResponse)
  1737. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/ExecuteBatchDml", in, out, opts...)
  1738. if err != nil {
  1739. return nil, err
  1740. }
  1741. return out, nil
  1742. }
  1743. func (c *spannerClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ResultSet, error) {
  1744. out := new(ResultSet)
  1745. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/Read", in, out, opts...)
  1746. if err != nil {
  1747. return nil, err
  1748. }
  1749. return out, nil
  1750. }
  1751. func (c *spannerClient) StreamingRead(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (Spanner_StreamingReadClient, error) {
  1752. stream, err := c.cc.NewStream(ctx, &_Spanner_serviceDesc.Streams[1], "/google.spanner.v1.Spanner/StreamingRead", opts...)
  1753. if err != nil {
  1754. return nil, err
  1755. }
  1756. x := &spannerStreamingReadClient{stream}
  1757. if err := x.ClientStream.SendMsg(in); err != nil {
  1758. return nil, err
  1759. }
  1760. if err := x.ClientStream.CloseSend(); err != nil {
  1761. return nil, err
  1762. }
  1763. return x, nil
  1764. }
  1765. type Spanner_StreamingReadClient interface {
  1766. Recv() (*PartialResultSet, error)
  1767. grpc.ClientStream
  1768. }
  1769. type spannerStreamingReadClient struct {
  1770. grpc.ClientStream
  1771. }
  1772. func (x *spannerStreamingReadClient) Recv() (*PartialResultSet, error) {
  1773. m := new(PartialResultSet)
  1774. if err := x.ClientStream.RecvMsg(m); err != nil {
  1775. return nil, err
  1776. }
  1777. return m, nil
  1778. }
  1779. func (c *spannerClient) BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*Transaction, error) {
  1780. out := new(Transaction)
  1781. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/BeginTransaction", in, out, opts...)
  1782. if err != nil {
  1783. return nil, err
  1784. }
  1785. return out, nil
  1786. }
  1787. func (c *spannerClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) {
  1788. out := new(CommitResponse)
  1789. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/Commit", in, out, opts...)
  1790. if err != nil {
  1791. return nil, err
  1792. }
  1793. return out, nil
  1794. }
  1795. func (c *spannerClient) Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1796. out := new(empty.Empty)
  1797. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/Rollback", in, out, opts...)
  1798. if err != nil {
  1799. return nil, err
  1800. }
  1801. return out, nil
  1802. }
  1803. func (c *spannerClient) PartitionQuery(ctx context.Context, in *PartitionQueryRequest, opts ...grpc.CallOption) (*PartitionResponse, error) {
  1804. out := new(PartitionResponse)
  1805. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/PartitionQuery", in, out, opts...)
  1806. if err != nil {
  1807. return nil, err
  1808. }
  1809. return out, nil
  1810. }
  1811. func (c *spannerClient) PartitionRead(ctx context.Context, in *PartitionReadRequest, opts ...grpc.CallOption) (*PartitionResponse, error) {
  1812. out := new(PartitionResponse)
  1813. err := c.cc.Invoke(ctx, "/google.spanner.v1.Spanner/PartitionRead", in, out, opts...)
  1814. if err != nil {
  1815. return nil, err
  1816. }
  1817. return out, nil
  1818. }
  1819. // SpannerServer is the server API for Spanner service.
  1820. type SpannerServer interface {
  1821. // Creates a new session. A session can be used to perform
  1822. // transactions that read and/or modify data in a Cloud Spanner database.
  1823. // Sessions are meant to be reused for many consecutive
  1824. // transactions.
  1825. //
  1826. // Sessions can only execute one transaction at a time. To execute
  1827. // multiple concurrent read-write/write-only transactions, create
  1828. // multiple sessions. Note that standalone reads and queries use a
  1829. // transaction internally, and count toward the one transaction
  1830. // limit.
  1831. //
  1832. // Cloud Spanner limits the number of sessions that can exist at any given
  1833. // time; thus, it is a good idea to delete idle and/or unneeded sessions.
  1834. // Aside from explicit deletes, Cloud Spanner can delete sessions for which no
  1835. // operations are sent for more than an hour. If a session is deleted,
  1836. // requests to it return `NOT_FOUND`.
  1837. //
  1838. // Idle sessions can be kept alive by sending a trivial SQL query
  1839. // periodically, e.g., `"SELECT 1"`.
  1840. CreateSession(context.Context, *CreateSessionRequest) (*Session, error)
  1841. // Gets a session. Returns `NOT_FOUND` if the session does not exist.
  1842. // This is mainly useful for determining whether a session is still
  1843. // alive.
  1844. GetSession(context.Context, *GetSessionRequest) (*Session, error)
  1845. // Lists all sessions in a given database.
  1846. ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
  1847. // Ends a session, releasing server resources associated with it. This will
  1848. // asynchronously trigger cancellation of any operations that are running with
  1849. // this session.
  1850. DeleteSession(context.Context, *DeleteSessionRequest) (*empty.Empty, error)
  1851. // Executes an SQL statement, returning all results in a single reply. This
  1852. // method cannot be used to return a result set larger than 10 MiB;
  1853. // if the query yields more data than that, the query fails with
  1854. // a `FAILED_PRECONDITION` error.
  1855. //
  1856. // Operations inside read-write transactions might return `ABORTED`. If
  1857. // this occurs, the application should restart the transaction from
  1858. // the beginning. See [Transaction][google.spanner.v1.Transaction] for more
  1859. // details.
  1860. //
  1861. // Larger result sets can be fetched in streaming fashion by calling
  1862. // [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]
  1863. // instead.
  1864. ExecuteSql(context.Context, *ExecuteSqlRequest) (*ResultSet, error)
  1865. // Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the
  1866. // result set as a stream. Unlike
  1867. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there is no limit on
  1868. // the size of the returned result set. However, no individual row in the
  1869. // result set can exceed 100 MiB, and no column value can exceed 10 MiB.
  1870. ExecuteStreamingSql(*ExecuteSqlRequest, Spanner_ExecuteStreamingSqlServer) error
  1871. // Executes a batch of SQL DML statements. This method allows many statements
  1872. // to be run with lower latency than submitting them sequentially with
  1873. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
  1874. //
  1875. // Statements are executed in order, sequentially.
  1876. // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
  1877. // [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
  1878. // statement fails, its error status will be returned as part of the
  1879. // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
  1880. // stop at the first failed statement; the remaining statements will not run.
  1881. //
  1882. // ExecuteBatchDml is expected to return an OK status with a response even if
  1883. // there was an error while processing one of the DML statements. Clients must
  1884. // inspect response.status to determine if there were any errors while
  1885. // processing the request.
  1886. //
  1887. // See more details in
  1888. // [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
  1889. // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
  1890. ExecuteBatchDml(context.Context, *ExecuteBatchDmlRequest) (*ExecuteBatchDmlResponse, error)
  1891. // Reads rows from the database using key lookups and scans, as a
  1892. // simple key/value style alternative to
  1893. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be
  1894. // used to return a result set larger than 10 MiB; if the read matches more
  1895. // data than that, the read fails with a `FAILED_PRECONDITION`
  1896. // error.
  1897. //
  1898. // Reads inside read-write transactions might return `ABORTED`. If
  1899. // this occurs, the application should restart the transaction from
  1900. // the beginning. See [Transaction][google.spanner.v1.Transaction] for more
  1901. // details.
  1902. //
  1903. // Larger result sets can be yielded in streaming fashion by calling
  1904. // [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead.
  1905. Read(context.Context, *ReadRequest) (*ResultSet, error)
  1906. // Like [Read][google.spanner.v1.Spanner.Read], except returns the result set
  1907. // as a stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no
  1908. // limit on the size of the returned result set. However, no individual row in
  1909. // the result set can exceed 100 MiB, and no column value can exceed
  1910. // 10 MiB.
  1911. StreamingRead(*ReadRequest, Spanner_StreamingReadServer) error
  1912. // Begins a new transaction. This step can often be skipped:
  1913. // [Read][google.spanner.v1.Spanner.Read],
  1914. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and
  1915. // [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a
  1916. // side-effect.
  1917. BeginTransaction(context.Context, *BeginTransactionRequest) (*Transaction, error)
  1918. // Commits a transaction. The request includes the mutations to be
  1919. // applied to rows in the database.
  1920. //
  1921. // `Commit` might return an `ABORTED` error. This can occur at any time;
  1922. // commonly, the cause is conflicts with concurrent
  1923. // transactions. However, it can also happen for a variety of other
  1924. // reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
  1925. // the transaction from the beginning, re-using the same session.
  1926. Commit(context.Context, *CommitRequest) (*CommitResponse, error)
  1927. // Rolls back a transaction, releasing any locks it holds. It is a good
  1928. // idea to call this for any transaction that includes one or more
  1929. // [Read][google.spanner.v1.Spanner.Read] or
  1930. // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and ultimately
  1931. // decides not to commit.
  1932. //
  1933. // `Rollback` returns `OK` if it successfully aborts the transaction, the
  1934. // transaction was already aborted, or the transaction is not
  1935. // found. `Rollback` never returns `ABORTED`.
  1936. Rollback(context.Context, *RollbackRequest) (*empty.Empty, error)
  1937. // Creates a set of partition tokens that can be used to execute a query
  1938. // operation in parallel. Each of the returned partition tokens can be used
  1939. // by [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] to
  1940. // specify a subset of the query result to read. The same session and
  1941. // read-only transaction must be used by the PartitionQueryRequest used to
  1942. // create the partition tokens and the ExecuteSqlRequests that use the
  1943. // partition tokens.
  1944. //
  1945. // Partition tokens become invalid when the session used to create them
  1946. // is deleted, is idle for too long, begins a new transaction, or becomes too
  1947. // old. When any of these happen, it is not possible to resume the query, and
  1948. // the whole operation must be restarted from the beginning.
  1949. PartitionQuery(context.Context, *PartitionQueryRequest) (*PartitionResponse, error)
  1950. // Creates a set of partition tokens that can be used to execute a read
  1951. // operation in parallel. Each of the returned partition tokens can be used
  1952. // by [StreamingRead][google.spanner.v1.Spanner.StreamingRead] to specify a
  1953. // subset of the read result to read. The same session and read-only
  1954. // transaction must be used by the PartitionReadRequest used to create the
  1955. // partition tokens and the ReadRequests that use the partition tokens. There
  1956. // are no ordering guarantees on rows returned among the returned partition
  1957. // tokens, or even within each individual StreamingRead call issued with a
  1958. // partition_token.
  1959. //
  1960. // Partition tokens become invalid when the session used to create them
  1961. // is deleted, is idle for too long, begins a new transaction, or becomes too
  1962. // old. When any of these happen, it is not possible to resume the read, and
  1963. // the whole operation must be restarted from the beginning.
  1964. PartitionRead(context.Context, *PartitionReadRequest) (*PartitionResponse, error)
  1965. }
  1966. func RegisterSpannerServer(s *grpc.Server, srv SpannerServer) {
  1967. s.RegisterService(&_Spanner_serviceDesc, srv)
  1968. }
  1969. func _Spanner_CreateSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1970. in := new(CreateSessionRequest)
  1971. if err := dec(in); err != nil {
  1972. return nil, err
  1973. }
  1974. if interceptor == nil {
  1975. return srv.(SpannerServer).CreateSession(ctx, in)
  1976. }
  1977. info := &grpc.UnaryServerInfo{
  1978. Server: srv,
  1979. FullMethod: "/google.spanner.v1.Spanner/CreateSession",
  1980. }
  1981. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1982. return srv.(SpannerServer).CreateSession(ctx, req.(*CreateSessionRequest))
  1983. }
  1984. return interceptor(ctx, in, info, handler)
  1985. }
  1986. func _Spanner_GetSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1987. in := new(GetSessionRequest)
  1988. if err := dec(in); err != nil {
  1989. return nil, err
  1990. }
  1991. if interceptor == nil {
  1992. return srv.(SpannerServer).GetSession(ctx, in)
  1993. }
  1994. info := &grpc.UnaryServerInfo{
  1995. Server: srv,
  1996. FullMethod: "/google.spanner.v1.Spanner/GetSession",
  1997. }
  1998. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1999. return srv.(SpannerServer).GetSession(ctx, req.(*GetSessionRequest))
  2000. }
  2001. return interceptor(ctx, in, info, handler)
  2002. }
  2003. func _Spanner_ListSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2004. in := new(ListSessionsRequest)
  2005. if err := dec(in); err != nil {
  2006. return nil, err
  2007. }
  2008. if interceptor == nil {
  2009. return srv.(SpannerServer).ListSessions(ctx, in)
  2010. }
  2011. info := &grpc.UnaryServerInfo{
  2012. Server: srv,
  2013. FullMethod: "/google.spanner.v1.Spanner/ListSessions",
  2014. }
  2015. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2016. return srv.(SpannerServer).ListSessions(ctx, req.(*ListSessionsRequest))
  2017. }
  2018. return interceptor(ctx, in, info, handler)
  2019. }
  2020. func _Spanner_DeleteSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2021. in := new(DeleteSessionRequest)
  2022. if err := dec(in); err != nil {
  2023. return nil, err
  2024. }
  2025. if interceptor == nil {
  2026. return srv.(SpannerServer).DeleteSession(ctx, in)
  2027. }
  2028. info := &grpc.UnaryServerInfo{
  2029. Server: srv,
  2030. FullMethod: "/google.spanner.v1.Spanner/DeleteSession",
  2031. }
  2032. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2033. return srv.(SpannerServer).DeleteSession(ctx, req.(*DeleteSessionRequest))
  2034. }
  2035. return interceptor(ctx, in, info, handler)
  2036. }
  2037. func _Spanner_ExecuteSql_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2038. in := new(ExecuteSqlRequest)
  2039. if err := dec(in); err != nil {
  2040. return nil, err
  2041. }
  2042. if interceptor == nil {
  2043. return srv.(SpannerServer).ExecuteSql(ctx, in)
  2044. }
  2045. info := &grpc.UnaryServerInfo{
  2046. Server: srv,
  2047. FullMethod: "/google.spanner.v1.Spanner/ExecuteSql",
  2048. }
  2049. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2050. return srv.(SpannerServer).ExecuteSql(ctx, req.(*ExecuteSqlRequest))
  2051. }
  2052. return interceptor(ctx, in, info, handler)
  2053. }
  2054. func _Spanner_ExecuteStreamingSql_Handler(srv interface{}, stream grpc.ServerStream) error {
  2055. m := new(ExecuteSqlRequest)
  2056. if err := stream.RecvMsg(m); err != nil {
  2057. return err
  2058. }
  2059. return srv.(SpannerServer).ExecuteStreamingSql(m, &spannerExecuteStreamingSqlServer{stream})
  2060. }
  2061. type Spanner_ExecuteStreamingSqlServer interface {
  2062. Send(*PartialResultSet) error
  2063. grpc.ServerStream
  2064. }
  2065. type spannerExecuteStreamingSqlServer struct {
  2066. grpc.ServerStream
  2067. }
  2068. func (x *spannerExecuteStreamingSqlServer) Send(m *PartialResultSet) error {
  2069. return x.ServerStream.SendMsg(m)
  2070. }
  2071. func _Spanner_ExecuteBatchDml_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2072. in := new(ExecuteBatchDmlRequest)
  2073. if err := dec(in); err != nil {
  2074. return nil, err
  2075. }
  2076. if interceptor == nil {
  2077. return srv.(SpannerServer).ExecuteBatchDml(ctx, in)
  2078. }
  2079. info := &grpc.UnaryServerInfo{
  2080. Server: srv,
  2081. FullMethod: "/google.spanner.v1.Spanner/ExecuteBatchDml",
  2082. }
  2083. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2084. return srv.(SpannerServer).ExecuteBatchDml(ctx, req.(*ExecuteBatchDmlRequest))
  2085. }
  2086. return interceptor(ctx, in, info, handler)
  2087. }
  2088. func _Spanner_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2089. in := new(ReadRequest)
  2090. if err := dec(in); err != nil {
  2091. return nil, err
  2092. }
  2093. if interceptor == nil {
  2094. return srv.(SpannerServer).Read(ctx, in)
  2095. }
  2096. info := &grpc.UnaryServerInfo{
  2097. Server: srv,
  2098. FullMethod: "/google.spanner.v1.Spanner/Read",
  2099. }
  2100. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2101. return srv.(SpannerServer).Read(ctx, req.(*ReadRequest))
  2102. }
  2103. return interceptor(ctx, in, info, handler)
  2104. }
  2105. func _Spanner_StreamingRead_Handler(srv interface{}, stream grpc.ServerStream) error {
  2106. m := new(ReadRequest)
  2107. if err := stream.RecvMsg(m); err != nil {
  2108. return err
  2109. }
  2110. return srv.(SpannerServer).StreamingRead(m, &spannerStreamingReadServer{stream})
  2111. }
  2112. type Spanner_StreamingReadServer interface {
  2113. Send(*PartialResultSet) error
  2114. grpc.ServerStream
  2115. }
  2116. type spannerStreamingReadServer struct {
  2117. grpc.ServerStream
  2118. }
  2119. func (x *spannerStreamingReadServer) Send(m *PartialResultSet) error {
  2120. return x.ServerStream.SendMsg(m)
  2121. }
  2122. func _Spanner_BeginTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2123. in := new(BeginTransactionRequest)
  2124. if err := dec(in); err != nil {
  2125. return nil, err
  2126. }
  2127. if interceptor == nil {
  2128. return srv.(SpannerServer).BeginTransaction(ctx, in)
  2129. }
  2130. info := &grpc.UnaryServerInfo{
  2131. Server: srv,
  2132. FullMethod: "/google.spanner.v1.Spanner/BeginTransaction",
  2133. }
  2134. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2135. return srv.(SpannerServer).BeginTransaction(ctx, req.(*BeginTransactionRequest))
  2136. }
  2137. return interceptor(ctx, in, info, handler)
  2138. }
  2139. func _Spanner_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2140. in := new(CommitRequest)
  2141. if err := dec(in); err != nil {
  2142. return nil, err
  2143. }
  2144. if interceptor == nil {
  2145. return srv.(SpannerServer).Commit(ctx, in)
  2146. }
  2147. info := &grpc.UnaryServerInfo{
  2148. Server: srv,
  2149. FullMethod: "/google.spanner.v1.Spanner/Commit",
  2150. }
  2151. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2152. return srv.(SpannerServer).Commit(ctx, req.(*CommitRequest))
  2153. }
  2154. return interceptor(ctx, in, info, handler)
  2155. }
  2156. func _Spanner_Rollback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2157. in := new(RollbackRequest)
  2158. if err := dec(in); err != nil {
  2159. return nil, err
  2160. }
  2161. if interceptor == nil {
  2162. return srv.(SpannerServer).Rollback(ctx, in)
  2163. }
  2164. info := &grpc.UnaryServerInfo{
  2165. Server: srv,
  2166. FullMethod: "/google.spanner.v1.Spanner/Rollback",
  2167. }
  2168. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2169. return srv.(SpannerServer).Rollback(ctx, req.(*RollbackRequest))
  2170. }
  2171. return interceptor(ctx, in, info, handler)
  2172. }
  2173. func _Spanner_PartitionQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2174. in := new(PartitionQueryRequest)
  2175. if err := dec(in); err != nil {
  2176. return nil, err
  2177. }
  2178. if interceptor == nil {
  2179. return srv.(SpannerServer).PartitionQuery(ctx, in)
  2180. }
  2181. info := &grpc.UnaryServerInfo{
  2182. Server: srv,
  2183. FullMethod: "/google.spanner.v1.Spanner/PartitionQuery",
  2184. }
  2185. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2186. return srv.(SpannerServer).PartitionQuery(ctx, req.(*PartitionQueryRequest))
  2187. }
  2188. return interceptor(ctx, in, info, handler)
  2189. }
  2190. func _Spanner_PartitionRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2191. in := new(PartitionReadRequest)
  2192. if err := dec(in); err != nil {
  2193. return nil, err
  2194. }
  2195. if interceptor == nil {
  2196. return srv.(SpannerServer).PartitionRead(ctx, in)
  2197. }
  2198. info := &grpc.UnaryServerInfo{
  2199. Server: srv,
  2200. FullMethod: "/google.spanner.v1.Spanner/PartitionRead",
  2201. }
  2202. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2203. return srv.(SpannerServer).PartitionRead(ctx, req.(*PartitionReadRequest))
  2204. }
  2205. return interceptor(ctx, in, info, handler)
  2206. }
  2207. var _Spanner_serviceDesc = grpc.ServiceDesc{
  2208. ServiceName: "google.spanner.v1.Spanner",
  2209. HandlerType: (*SpannerServer)(nil),
  2210. Methods: []grpc.MethodDesc{
  2211. {
  2212. MethodName: "CreateSession",
  2213. Handler: _Spanner_CreateSession_Handler,
  2214. },
  2215. {
  2216. MethodName: "GetSession",
  2217. Handler: _Spanner_GetSession_Handler,
  2218. },
  2219. {
  2220. MethodName: "ListSessions",
  2221. Handler: _Spanner_ListSessions_Handler,
  2222. },
  2223. {
  2224. MethodName: "DeleteSession",
  2225. Handler: _Spanner_DeleteSession_Handler,
  2226. },
  2227. {
  2228. MethodName: "ExecuteSql",
  2229. Handler: _Spanner_ExecuteSql_Handler,
  2230. },
  2231. {
  2232. MethodName: "ExecuteBatchDml",
  2233. Handler: _Spanner_ExecuteBatchDml_Handler,
  2234. },
  2235. {
  2236. MethodName: "Read",
  2237. Handler: _Spanner_Read_Handler,
  2238. },
  2239. {
  2240. MethodName: "BeginTransaction",
  2241. Handler: _Spanner_BeginTransaction_Handler,
  2242. },
  2243. {
  2244. MethodName: "Commit",
  2245. Handler: _Spanner_Commit_Handler,
  2246. },
  2247. {
  2248. MethodName: "Rollback",
  2249. Handler: _Spanner_Rollback_Handler,
  2250. },
  2251. {
  2252. MethodName: "PartitionQuery",
  2253. Handler: _Spanner_PartitionQuery_Handler,
  2254. },
  2255. {
  2256. MethodName: "PartitionRead",
  2257. Handler: _Spanner_PartitionRead_Handler,
  2258. },
  2259. },
  2260. Streams: []grpc.StreamDesc{
  2261. {
  2262. StreamName: "ExecuteStreamingSql",
  2263. Handler: _Spanner_ExecuteStreamingSql_Handler,
  2264. ServerStreams: true,
  2265. },
  2266. {
  2267. StreamName: "StreamingRead",
  2268. Handler: _Spanner_StreamingRead_Handler,
  2269. ServerStreams: true,
  2270. },
  2271. },
  2272. Metadata: "google/spanner/v1/spanner.proto",
  2273. }
  2274. func init() {
  2275. proto.RegisterFile("google/spanner/v1/spanner.proto", fileDescriptor_spanner_e6205c7313670aad)
  2276. }
  2277. var fileDescriptor_spanner_e6205c7313670aad = []byte{
  2278. // 1832 bytes of a gzipped FileDescriptorProto
  2279. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0xcd, 0x6f, 0x1b, 0xc7,
  2280. 0x15, 0xf7, 0x92, 0x12, 0x25, 0x3e, 0xea, 0x73, 0xc2, 0x48, 0x0c, 0xed, 0x26, 0xca, 0x26, 0x8e,
  2281. 0x54, 0x02, 0x25, 0x63, 0xc5, 0x28, 0x1c, 0x25, 0x69, 0x1c, 0xd9, 0x8a, 0xed, 0x5a, 0xb2, 0xe8,
  2282. 0xa5, 0xec, 0xa0, 0x81, 0x0b, 0x62, 0x44, 0x4e, 0x98, 0xad, 0xf6, 0x4b, 0x3b, 0x43, 0x43, 0x4c,
  2283. 0x91, 0x4b, 0xd1, 0xde, 0x7a, 0x68, 0x1b, 0x14, 0x3d, 0xb4, 0xb7, 0xde, 0x8a, 0x1c, 0x0b, 0xe4,
  2284. 0x56, 0x14, 0x28, 0x90, 0x43, 0x80, 0x9e, 0xfa, 0x2f, 0xf4, 0x6f, 0xe8, 0xa5, 0x97, 0x62, 0xbe,
  2285. 0x96, 0x4b, 0x72, 0x44, 0x31, 0xa5, 0x13, 0xa0, 0xe8, 0x89, 0x3b, 0xf3, 0xde, 0xbc, 0xf9, 0xcd,
  2286. 0xfb, 0xfd, 0xe6, 0xe3, 0x81, 0xf0, 0x52, 0x27, 0x0c, 0x3b, 0x1e, 0xa9, 0xd1, 0x08, 0x07, 0x01,
  2287. 0x89, 0x6b, 0x4f, 0xaf, 0xe9, 0xcf, 0x6a, 0x14, 0x87, 0x2c, 0x44, 0xab, 0xd2, 0xa1, 0xaa, 0x7b,
  2288. 0x9f, 0x5e, 0x2b, 0x5f, 0x51, 0x63, 0x70, 0xe4, 0xd6, 0x70, 0x10, 0x84, 0x0c, 0x33, 0x37, 0x0c,
  2289. 0xa8, 0x1c, 0x50, 0xbe, 0xac, 0xac, 0xa2, 0x75, 0xdc, 0xfd, 0xa8, 0x46, 0xfc, 0x88, 0xf5, 0x94,
  2290. 0xf1, 0xca, 0xb0, 0x91, 0xb2, 0xb8, 0xdb, 0x62, 0xca, 0xfa, 0xd2, 0xb0, 0x95, 0xb9, 0x3e, 0xa1,
  2291. 0x0c, 0xfb, 0x91, 0x72, 0x58, 0x57, 0x0e, 0x71, 0xd4, 0xaa, 0x51, 0x86, 0x59, 0x97, 0x0e, 0xc5,
  2292. 0x4d, 0x2d, 0xe3, 0x84, 0xf4, 0xb4, 0x75, 0x63, 0xd4, 0xea, 0x77, 0x25, 0x6a, 0xe5, 0x61, 0x8f,
  2293. 0x7a, 0xc4, 0x84, 0x76, 0x3d, 0xd6, 0xa4, 0x44, 0xa3, 0x7b, 0x65, 0xd4, 0x87, 0xc5, 0x38, 0xa0,
  2294. 0xb8, 0x95, 0x0a, 0x64, 0x00, 0xc2, 0x7a, 0x11, 0x91, 0x56, 0xfb, 0x63, 0x28, 0xde, 0x8a, 0x09,
  2295. 0x66, 0xa4, 0x41, 0x28, 0x75, 0xc3, 0xc0, 0x21, 0xa7, 0x5d, 0x42, 0x19, 0x2a, 0xc3, 0x7c, 0x1b,
  2296. 0x33, 0x7c, 0x8c, 0x29, 0x29, 0x59, 0x1b, 0xd6, 0x56, 0xde, 0x49, 0xda, 0xe8, 0x3a, 0xcc, 0x51,
  2297. 0xe9, 0x5d, 0xca, 0x6c, 0x58, 0x5b, 0x85, 0xed, 0x72, 0x75, 0x84, 0x92, 0xaa, 0x8e, 0xa7, 0x5d,
  2298. 0xed, 0xcf, 0x33, 0x30, 0xa7, 0x3a, 0x11, 0x82, 0x99, 0x00, 0xfb, 0x3a, 0xb2, 0xf8, 0x46, 0x3f,
  2299. 0x80, 0x9c, 0x87, 0x8f, 0x89, 0x47, 0x4b, 0x99, 0x8d, 0xec, 0x56, 0x61, 0xfb, 0xb5, 0xf3, 0x83,
  2300. 0x56, 0xf7, 0x85, 0xe3, 0x5e, 0xc0, 0xe2, 0x9e, 0xa3, 0x46, 0xa1, 0xb7, 0xa0, 0xd0, 0x12, 0x2b,
  2301. 0x69, 0x72, 0x8e, 0x4a, 0xd9, 0x41, 0x64, 0x9a, 0xc0, 0xea, 0x91, 0x26, 0xd0, 0x01, 0xe9, 0xce,
  2302. 0x3b, 0xd0, 0x23, 0x78, 0x01, 0x47, 0x51, 0x1c, 0x9e, 0xb9, 0x3e, 0x8f, 0xe0, 0x61, 0xca, 0x9a,
  2303. 0x5d, 0xaa, 0x42, 0xcd, 0x5c, 0x18, 0x6a, 0x2d, 0x35, 0x78, 0x1f, 0x53, 0xf6, 0x88, 0x8a, 0xb0,
  2304. 0xe5, 0x37, 0xa1, 0x90, 0x82, 0x8a, 0x56, 0x20, 0x7b, 0x42, 0x7a, 0x6a, 0xd5, 0xfc, 0x13, 0x15,
  2305. 0x61, 0xf6, 0x29, 0xf6, 0xba, 0x44, 0x24, 0x32, 0xef, 0xc8, 0xc6, 0x4e, 0xe6, 0x86, 0x65, 0x6f,
  2306. 0xc2, 0xea, 0x1d, 0xc2, 0x86, 0x58, 0x31, 0xe4, 0xcd, 0xfe, 0x85, 0x05, 0xcf, 0xed, 0xbb, 0x54,
  2307. 0xbb, 0xd2, 0x49, 0x18, 0xbc, 0x0c, 0xf9, 0x08, 0x77, 0x48, 0x93, 0xba, 0x9f, 0xc8, 0xa9, 0x67,
  2308. 0x9d, 0x79, 0xde, 0xd1, 0x70, 0x3f, 0x21, 0xe8, 0x3b, 0x00, 0xc2, 0xc8, 0xc2, 0x13, 0x12, 0x88,
  2309. 0x3c, 0xe6, 0x1d, 0xe1, 0x7e, 0xc4, 0x3b, 0xd0, 0x1a, 0xe4, 0x3e, 0x72, 0x3d, 0x46, 0x62, 0x91,
  2310. 0x97, 0xbc, 0xa3, 0x5a, 0xf6, 0x53, 0x28, 0x0e, 0xc2, 0xa0, 0x51, 0x18, 0x50, 0x82, 0xbe, 0x0f,
  2311. 0xf3, 0x4a, 0x02, 0xb4, 0x64, 0x09, 0x66, 0xc7, 0xc9, 0x25, 0xf1, 0x45, 0xaf, 0xc1, 0x72, 0x40,
  2312. 0xce, 0x58, 0x33, 0x85, 0x45, 0x26, 0x69, 0x91, 0x77, 0xd7, 0x35, 0x1e, 0xbb, 0x02, 0xc5, 0xdb,
  2313. 0xc4, 0x23, 0x23, 0x0a, 0x36, 0xe5, 0xea, 0xab, 0x19, 0x58, 0xdd, 0x3b, 0x23, 0xad, 0x2e, 0x23,
  2314. 0x8d, 0x53, 0x4f, 0x7b, 0x96, 0xfa, 0x7a, 0x96, 0xce, 0xba, 0x89, 0xee, 0x42, 0x21, 0xb5, 0xa1,
  2315. 0x94, 0xda, 0x4d, 0xc2, 0x3c, 0xea, 0x7b, 0x35, 0x88, 0x47, 0x5a, 0x2c, 0x8c, 0x9d, 0xf4, 0x50,
  2316. 0x4e, 0x3d, 0x3d, 0xf5, 0x54, 0x36, 0xf9, 0x27, 0xaa, 0x41, 0x2e, 0xc2, 0x31, 0xf6, 0xa9, 0xd2,
  2317. 0xd7, 0xfa, 0x88, 0xbe, 0x1a, 0xe2, 0x24, 0x72, 0x94, 0x1b, 0x7a, 0x04, 0x05, 0xf1, 0xd5, 0xe4,
  2318. 0xdb, 0x97, 0x96, 0x66, 0x45, 0x2e, 0xaf, 0x1b, 0xc0, 0x8c, 0xac, 0xb0, 0x5a, 0xe7, 0xe3, 0x8e,
  2319. 0xf8, 0x30, 0xb9, 0x67, 0x20, 0x4a, 0x3a, 0xd0, 0xcb, 0xb0, 0xc0, 0x0f, 0x16, 0x5f, 0x27, 0x39,
  2320. 0xb7, 0x61, 0x6d, 0x2d, 0x38, 0x05, 0xd9, 0x27, 0x29, 0x3f, 0x00, 0x38, 0xed, 0x92, 0xb8, 0xd7,
  2321. 0xf4, 0xc3, 0x36, 0x29, 0xcd, 0x6d, 0x58, 0x5b, 0x4b, 0xdb, 0xd5, 0x89, 0x26, 0x7e, 0xc8, 0x87,
  2322. 0x1d, 0x84, 0x6d, 0xe2, 0xe4, 0x4f, 0xf5, 0x27, 0xda, 0x84, 0xe5, 0x08, 0xc7, 0xcc, 0xe5, 0x89,
  2323. 0x51, 0x93, 0xce, 0x8b, 0x49, 0x97, 0x92, 0x6e, 0x39, 0x6f, 0x11, 0x66, 0x29, 0x39, 0x0d, 0xc2,
  2324. 0x52, 0x7e, 0xc3, 0xda, 0xca, 0x3a, 0xb2, 0x51, 0x7e, 0x0c, 0xcb, 0x43, 0xeb, 0x31, 0x6c, 0xac,
  2325. 0xef, 0xa5, 0x37, 0x56, 0x2a, 0xb9, 0x69, 0xce, 0x7a, 0x11, 0x49, 0xef, 0xb8, 0x2a, 0xe4, 0x13,
  2326. 0xb8, 0x08, 0x20, 0xf7, 0xe0, 0xd0, 0x39, 0x78, 0x6f, 0x7f, 0xe5, 0x12, 0x9a, 0x87, 0x99, 0xfa,
  2327. 0xfe, 0x7b, 0x0f, 0x56, 0x2c, 0x54, 0x80, 0xb9, 0xba, 0x73, 0xf8, 0xfe, 0xbd, 0xfd, 0xbd, 0x95,
  2328. 0x8c, 0xfd, 0xaf, 0x2c, 0xac, 0xa9, 0x15, 0xef, 0x62, 0xd6, 0xfa, 0xf8, 0xb6, 0xff, 0xad, 0x2a,
  2329. 0xaa, 0x01, 0xc0, 0x2f, 0x1c, 0xe2, 0x93, 0x80, 0xd1, 0x52, 0x56, 0xa8, 0xe1, 0x8d, 0xf3, 0x49,
  2330. 0x19, 0x82, 0x58, 0x6d, 0xe8, 0xb1, 0x4e, 0x2a, 0x4c, 0x3f, 0xe3, 0x33, 0xe9, 0x8c, 0xff, 0x32,
  2331. 0x03, 0xf9, 0xc4, 0x5f, 0x4b, 0xd9, 0x32, 0x49, 0x39, 0x33, 0x99, 0x94, 0xdb, 0x83, 0x52, 0x96,
  2332. 0xe0, 0x6f, 0xfd, 0x17, 0xe0, 0xc7, 0x29, 0xfb, 0x1b, 0x13, 0xca, 0xcf, 0x2d, 0x58, 0x1f, 0x01,
  2333. 0xa6, 0x4e, 0xbb, 0x77, 0xa0, 0xd0, 0xbf, 0xa6, 0xf5, 0x81, 0x77, 0xc5, 0x10, 0xd4, 0x11, 0x5e,
  2334. 0x0d, 0xc2, 0x1c, 0x88, 0xf5, 0x27, 0x45, 0x15, 0xc8, 0xc9, 0x57, 0x84, 0x82, 0x83, 0xf4, 0xc8,
  2335. 0x38, 0x6a, 0x89, 0x55, 0x77, 0xa9, 0xa3, 0x3c, 0xec, 0x13, 0x58, 0xa9, 0xeb, 0xfd, 0x72, 0x18,
  2336. 0x89, 0x07, 0x0f, 0x7a, 0x1d, 0x8a, 0xfd, 0xad, 0xc5, 0x4f, 0xf7, 0xe6, 0x71, 0x8f, 0x11, 0x2a,
  2337. 0x16, 0x9c, 0x75, 0x50, 0x62, 0xe3, 0x07, 0xfd, 0x2e, 0xb7, 0xa0, 0xab, 0xb0, 0xe4, 0xe3, 0xb3,
  2338. 0x66, 0x62, 0x91, 0x33, 0x67, 0x9d, 0x45, 0x1f, 0x9f, 0x25, 0xe1, 0xa9, 0xfd, 0xb7, 0x2c, 0x3c,
  2339. 0x9f, 0x34, 0xc5, 0x36, 0xf9, 0x1f, 0x3b, 0x3d, 0x7f, 0x64, 0x3a, 0x3d, 0x6f, 0x18, 0xc0, 0x18,
  2340. 0x57, 0x39, 0xf6, 0x04, 0xad, 0xc3, 0x6a, 0x3f, 0xe9, 0xa1, 0x64, 0x42, 0x1c, 0xa3, 0x85, 0xed,
  2341. 0x57, 0xc6, 0x4d, 0xa0, 0x48, 0x73, 0x56, 0xa2, 0xa1, 0x9e, 0x6f, 0x4c, 0xb9, 0x5f, 0x66, 0xa0,
  2342. 0x98, 0x4c, 0xef, 0x10, 0xdc, 0xfe, 0x36, 0x49, 0x2c, 0xc2, 0x2c, 0xc3, 0xc7, 0x1e, 0x51, 0x34,
  2343. 0xca, 0x06, 0xef, 0x75, 0x83, 0x36, 0x39, 0x53, 0xaf, 0x09, 0xd9, 0xe0, 0x78, 0x5a, 0xa1, 0xd7,
  2344. 0xf5, 0x03, 0xc9, 0x54, 0xde, 0xd1, 0x4d, 0xb4, 0x0d, 0x73, 0x27, 0xa4, 0xc7, 0x77, 0x97, 0x4a,
  2345. 0xf1, 0x0b, 0x06, 0x2c, 0xf7, 0x49, 0x8f, 0xef, 0xac, 0xdc, 0x89, 0xf8, 0x35, 0x13, 0x94, 0x9f,
  2346. 0x82, 0x20, 0xfb, 0x3a, 0xe4, 0x13, 0x2f, 0xd3, 0x7d, 0x66, 0x99, 0xee, 0x33, 0xfb, 0x33, 0x0b,
  2347. 0x56, 0x53, 0xe9, 0x57, 0x47, 0xc6, 0xdb, 0xfc, 0xbd, 0x95, 0xec, 0xbe, 0xf3, 0x4f, 0x8c, 0xfe,
  2348. 0xc8, 0x94, 0x3f, 0xba, 0x69, 0xe2, 0xe7, 0xc5, 0xf1, 0xfc, 0x0c, 0xf0, 0x62, 0xff, 0x3d, 0x03,
  2349. 0x85, 0xff, 0x1f, 0x2d, 0x14, 0x61, 0xd6, 0x73, 0x7d, 0x97, 0x89, 0x27, 0x47, 0xd6, 0x91, 0x8d,
  2350. 0x91, 0x47, 0x50, 0x7e, 0xf4, 0x11, 0x64, 0x60, 0x19, 0x8c, 0x2c, 0x33, 0x58, 0xdf, 0x25, 0x1d,
  2351. 0x37, 0x48, 0x27, 0xfc, 0xc2, 0xd4, 0xbe, 0x0b, 0x73, 0x5a, 0x98, 0x32, 0xad, 0x57, 0xc7, 0xa7,
  2352. 0x55, 0x4b, 0x53, 0x8f, 0xb2, 0xff, 0x6d, 0xc1, 0xe2, 0xad, 0xd0, 0xf7, 0x5d, 0x76, 0xf1, 0x64,
  2353. 0x9b, 0xb0, 0x94, 0x22, 0xa3, 0xe9, 0xb6, 0xc5, 0x9c, 0x0b, 0x77, 0x2f, 0x39, 0x8b, 0xa9, 0xfe,
  2354. 0x7b, 0x6d, 0xf4, 0x63, 0x58, 0xa3, 0x6e, 0xd0, 0xf1, 0x88, 0x2c, 0x86, 0x52, 0xdc, 0x67, 0xbf,
  2355. 0x06, 0xc8, 0xbb, 0x97, 0x9c, 0xa2, 0x0c, 0xc3, 0xeb, 0xa2, 0x94, 0x0a, 0xde, 0x84, 0xbc, 0xae,
  2356. 0x7a, 0xf9, 0x39, 0xce, 0x85, 0x7f, 0xd9, 0x10, 0xf1, 0x40, 0xf9, 0x38, 0x7d, 0xef, 0xdd, 0xc5,
  2357. 0x01, 0x29, 0xda, 0x1f, 0xc0, 0x92, 0x5e, 0xbc, 0xda, 0x55, 0x7b, 0xb0, 0xd2, 0x12, 0x3d, 0xcd,
  2358. 0xa4, 0x64, 0x17, 0x69, 0x18, 0x5f, 0xc8, 0x2d, 0xcb, 0x31, 0x49, 0x87, 0xed, 0xc0, 0xb2, 0x13,
  2359. 0x7a, 0xde, 0x31, 0x6e, 0x9d, 0x5c, 0x9c, 0xd7, 0xab, 0xe6, 0xbc, 0x0e, 0x65, 0x75, 0xfb, 0x4b,
  2360. 0x04, 0x73, 0x0d, 0xb9, 0x3c, 0xf4, 0x7b, 0x4e, 0x5b, 0xba, 0x00, 0x47, 0x9b, 0x86, 0x0c, 0x98,
  2361. 0x4a, 0xf4, 0xf2, 0x98, 0x32, 0xca, 0xde, 0xfb, 0xd9, 0x3f, 0xfe, 0xf9, 0x59, 0xe6, 0x5d, 0x7b,
  2362. 0x87, 0x97, 0xfb, 0x3f, 0xd5, 0x75, 0xdf, 0x3b, 0x51, 0x1c, 0xfe, 0x84, 0xb4, 0x18, 0xad, 0x55,
  2363. 0x6a, 0x6e, 0x40, 0x19, 0x0e, 0x5a, 0x84, 0x7f, 0x6b, 0x3b, 0xad, 0x55, 0x3e, 0xad, 0xe9, 0x02,
  2364. 0x6c, 0xc7, 0xaa, 0xa0, 0x5f, 0x59, 0x00, 0xfd, 0x2a, 0x14, 0xbd, 0x6a, 0x98, 0x71, 0xa4, 0x48,
  2365. 0x1d, 0x8b, 0xeb, 0xa6, 0xc0, 0xb5, 0x83, 0x6e, 0x08, 0x5c, 0xbc, 0x26, 0x9b, 0x00, 0x53, 0x02,
  2366. 0xa9, 0x56, 0xf9, 0x14, 0xfd, 0xd1, 0x82, 0x85, 0x74, 0x9d, 0x89, 0x4c, 0xe7, 0x8f, 0xa1, 0x1e,
  2367. 0x2e, 0x6f, 0x5e, 0xe8, 0x27, 0x95, 0x63, 0xef, 0x0a, 0x8c, 0x6f, 0xa3, 0x29, 0x72, 0x87, 0x7e,
  2368. 0x63, 0xc1, 0xe2, 0x40, 0x55, 0x6a, 0xa4, 0xd5, 0x54, 0xb7, 0x96, 0xd7, 0x46, 0xe4, 0xb9, 0xe7,
  2369. 0x47, 0xac, 0xa7, 0x53, 0x57, 0x99, 0x2a, 0x75, 0xd0, 0x2f, 0xd1, 0x8c, 0x6c, 0x8e, 0x54, 0x70,
  2370. 0xe5, 0xb1, 0x6f, 0x57, 0xfb, 0xa1, 0x00, 0x75, 0xdf, 0x7e, 0x5f, 0x80, 0x52, 0x93, 0x7d, 0x4d,
  2371. 0x5c, 0x3b, 0x24, 0x99, 0x94, 0x6b, 0xee, 0x2f, 0x16, 0x3c, 0xa7, 0x61, 0xb0, 0x98, 0x60, 0xdf,
  2372. 0x0d, 0x3a, 0x93, 0xc3, 0x3d, 0xf7, 0x3e, 0xc7, 0x5e, 0x1f, 0xf5, 0x87, 0x02, 0xf5, 0x91, 0x7d,
  2373. 0xf8, 0x2c, 0x50, 0xa7, 0x30, 0xee, 0x58, 0x95, 0xd7, 0x2d, 0xf4, 0x57, 0x0b, 0x96, 0x87, 0xca,
  2374. 0x03, 0xf4, 0xdd, 0x89, 0x6b, 0x9b, 0x72, 0x65, 0x12, 0x57, 0x25, 0xd5, 0xc7, 0x62, 0x21, 0x75,
  2375. 0xfb, 0xfe, 0x33, 0x58, 0x88, 0x0e, 0xce, 0x39, 0xf8, 0xb5, 0x05, 0x33, 0xfc, 0x49, 0x80, 0x5e,
  2376. 0x34, 0xb2, 0x9f, 0xbc, 0x15, 0x2e, 0x50, 0xc7, 0x7d, 0x01, 0x6f, 0xcf, 0xbe, 0x39, 0x0d, 0xbc,
  2377. 0x98, 0xe0, 0x36, 0xc7, 0xf4, 0xb9, 0x05, 0x8b, 0x49, 0xb2, 0x27, 0x02, 0x37, 0x91, 0x16, 0x8e,
  2378. 0x04, 0xc6, 0x07, 0xf6, 0xbd, 0x69, 0x30, 0xd2, 0x34, 0x2e, 0xa9, 0x82, 0x2f, 0x2c, 0x58, 0x19,
  2379. 0x7e, 0x06, 0x20, 0x13, 0xb7, 0xe7, 0xbc, 0x15, 0xca, 0x17, 0xbc, 0xe1, 0xec, 0x0f, 0x04, 0xf0,
  2380. 0x87, 0xf6, 0xfe, 0x34, 0xc0, 0x8f, 0x87, 0x26, 0xe7, 0x89, 0xfe, 0x83, 0x05, 0x39, 0x79, 0x99,
  2381. 0xa2, 0x0d, 0xd3, 0x5d, 0x94, 0x7e, 0x64, 0x94, 0x5f, 0x1e, 0xe3, 0xa1, 0x44, 0x7a, 0x20, 0x80,
  2382. 0xde, 0xb1, 0x77, 0xa7, 0x01, 0x2a, 0xef, 0x65, 0x0e, 0xef, 0x77, 0x16, 0xcc, 0xeb, 0x2b, 0x19,
  2383. 0xd9, 0x26, 0x09, 0x0c, 0xde, 0xd7, 0xe7, 0x1e, 0xa8, 0x87, 0x02, 0xd7, 0x3d, 0xfb, 0xf6, 0x54,
  2384. 0xea, 0x54, 0x93, 0x71, 0x64, 0x5f, 0x58, 0xb0, 0x34, 0x58, 0x3d, 0xa2, 0xad, 0x49, 0x0b, 0xcc,
  2385. 0xf2, 0xab, 0x63, 0x5f, 0xfc, 0x3a, 0x97, 0x8f, 0x04, 0xe6, 0x43, 0xfb, 0x87, 0xd3, 0x60, 0x8e,
  2386. 0x06, 0x00, 0x70, 0xe4, 0x7f, 0xb6, 0x60, 0x71, 0xa0, 0x2e, 0x34, 0x5e, 0x57, 0xa6, 0xca, 0x71,
  2387. 0x42, 0xdc, 0xcf, 0x64, 0x97, 0x45, 0xe9, 0xf9, 0x77, 0xac, 0xca, 0xee, 0x6f, 0x2d, 0x78, 0xbe,
  2388. 0x15, 0xfa, 0xa3, 0x08, 0x76, 0x17, 0xd4, 0xfb, 0xaa, 0xce, 0x29, 0xaf, 0x5b, 0x1f, 0xde, 0x50,
  2389. 0x2e, 0x9d, 0xd0, 0xc3, 0x41, 0xa7, 0x1a, 0xc6, 0x9d, 0x5a, 0x87, 0x04, 0x42, 0x10, 0x35, 0x69,
  2390. 0xc2, 0x91, 0x4b, 0x53, 0xff, 0x91, 0xbc, 0xa5, 0x3e, 0xff, 0x94, 0x59, 0xbf, 0x23, 0x87, 0xde,
  2391. 0xf2, 0xc2, 0x6e, 0xbb, 0xaa, 0xe2, 0x56, 0x1f, 0x5f, 0xfb, 0x4a, 0x5b, 0x9e, 0x08, 0xcb, 0x13,
  2392. 0x65, 0x79, 0xf2, 0xf8, 0xda, 0x71, 0x4e, 0x04, 0x7e, 0xe3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff,
  2393. 0x33, 0x44, 0xce, 0x51, 0xcb, 0x1a, 0x00, 0x00,
  2394. }