mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
@ -1,36 +1,16 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/spanner/admin/database/v1/spanner_database_admin.proto
|
||||
|
||||
/*
|
||||
Package database is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/spanner/admin/database/v1/spanner_database_admin.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Database
|
||||
ListDatabasesRequest
|
||||
ListDatabasesResponse
|
||||
CreateDatabaseRequest
|
||||
CreateDatabaseMetadata
|
||||
GetDatabaseRequest
|
||||
UpdateDatabaseDdlRequest
|
||||
UpdateDatabaseDdlMetadata
|
||||
DropDatabaseRequest
|
||||
GetDatabaseDdlRequest
|
||||
GetDatabaseDdlResponse
|
||||
*/
|
||||
package database
|
||||
package database // import "google.golang.org/genproto/googleapis/spanner/admin/database/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import empty "github.com/golang/protobuf/ptypes/empty"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_iam_v11 "google.golang.org/genproto/googleapis/iam/v1"
|
||||
import google_iam_v1 "google.golang.org/genproto/googleapis/iam/v1"
|
||||
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
|
||||
import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import v1 "google.golang.org/genproto/googleapis/iam/v1"
|
||||
import longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
@ -75,7 +55,9 @@ var Database_State_value = map[string]int32{
|
||||
func (x Database_State) String() string {
|
||||
return proto.EnumName(Database_State_name, int32(x))
|
||||
}
|
||||
func (Database_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
|
||||
func (Database_State) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{0, 0}
|
||||
}
|
||||
|
||||
// A Cloud Spanner database.
|
||||
type Database struct {
|
||||
@ -84,15 +66,37 @@ type Database struct {
|
||||
// where `<database>` is as specified in the `CREATE DATABASE`
|
||||
// statement. This name can be passed to other API methods to
|
||||
// identify the database.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Output only. The current database state.
|
||||
State Database_State `protobuf:"varint,2,opt,name=state,enum=google.spanner.admin.database.v1.Database_State" json:"state,omitempty"`
|
||||
State Database_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.spanner.admin.database.v1.Database_State" json:"state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Database) Reset() { *m = Database{} }
|
||||
func (m *Database) String() string { return proto.CompactTextString(m) }
|
||||
func (*Database) ProtoMessage() {}
|
||||
func (*Database) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *Database) Reset() { *m = Database{} }
|
||||
func (m *Database) String() string { return proto.CompactTextString(m) }
|
||||
func (*Database) ProtoMessage() {}
|
||||
func (*Database) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{0}
|
||||
}
|
||||
func (m *Database) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Database.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Database) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Database.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Database) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Database.Merge(dst, src)
|
||||
}
|
||||
func (m *Database) XXX_Size() int {
|
||||
return xxx_messageInfo_Database.Size(m)
|
||||
}
|
||||
func (m *Database) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Database.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Database proto.InternalMessageInfo
|
||||
|
||||
func (m *Database) GetName() string {
|
||||
if m != nil {
|
||||
@ -112,20 +116,42 @@ func (m *Database) GetState() Database_State {
|
||||
type ListDatabasesRequest struct {
|
||||
// Required. The instance whose databases should be listed.
|
||||
// Values are of the form `projects/<project>/instances/<instance>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Number of databases to be returned in the response. If 0 or less,
|
||||
// defaults to the server's maximum allowed page size.
|
||||
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
|
||||
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// If non-empty, `page_token` should contain a
|
||||
// [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
|
||||
// previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
|
||||
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
|
||||
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListDatabasesRequest) Reset() { *m = ListDatabasesRequest{} }
|
||||
func (m *ListDatabasesRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListDatabasesRequest) ProtoMessage() {}
|
||||
func (*ListDatabasesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *ListDatabasesRequest) Reset() { *m = ListDatabasesRequest{} }
|
||||
func (m *ListDatabasesRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListDatabasesRequest) ProtoMessage() {}
|
||||
func (*ListDatabasesRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{1}
|
||||
}
|
||||
func (m *ListDatabasesRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListDatabasesRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListDatabasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListDatabasesRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ListDatabasesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListDatabasesRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *ListDatabasesRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListDatabasesRequest.Size(m)
|
||||
}
|
||||
func (m *ListDatabasesRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListDatabasesRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListDatabasesRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListDatabasesRequest) GetParent() string {
|
||||
if m != nil {
|
||||
@ -151,17 +177,39 @@ func (m *ListDatabasesRequest) GetPageToken() string {
|
||||
// The response for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
|
||||
type ListDatabasesResponse struct {
|
||||
// Databases that matched the request.
|
||||
Databases []*Database `protobuf:"bytes,1,rep,name=databases" json:"databases,omitempty"`
|
||||
Databases []*Database `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
|
||||
// `next_page_token` can be sent in a subsequent
|
||||
// [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
|
||||
// of the matching databases.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListDatabasesResponse) Reset() { *m = ListDatabasesResponse{} }
|
||||
func (m *ListDatabasesResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListDatabasesResponse) ProtoMessage() {}
|
||||
func (*ListDatabasesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
func (m *ListDatabasesResponse) Reset() { *m = ListDatabasesResponse{} }
|
||||
func (m *ListDatabasesResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListDatabasesResponse) ProtoMessage() {}
|
||||
func (*ListDatabasesResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{2}
|
||||
}
|
||||
func (m *ListDatabasesResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListDatabasesResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListDatabasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListDatabasesResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ListDatabasesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListDatabasesResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *ListDatabasesResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListDatabasesResponse.Size(m)
|
||||
}
|
||||
func (m *ListDatabasesResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListDatabasesResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListDatabasesResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListDatabasesResponse) GetDatabases() []*Database {
|
||||
if m != nil {
|
||||
@ -181,24 +229,46 @@ func (m *ListDatabasesResponse) GetNextPageToken() string {
|
||||
type CreateDatabaseRequest struct {
|
||||
// Required. The name of the instance that will serve the new database.
|
||||
// Values are of the form `projects/<project>/instances/<instance>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. A `CREATE DATABASE` statement, which specifies the ID of the
|
||||
// new database. The database ID must conform to the regular expression
|
||||
// `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length.
|
||||
// If the database ID is a reserved word or if it contains a hyphen, the
|
||||
// database ID must be enclosed in backticks (`` ` ``).
|
||||
CreateStatement string `protobuf:"bytes,2,opt,name=create_statement,json=createStatement" json:"create_statement,omitempty"`
|
||||
CreateStatement string `protobuf:"bytes,2,opt,name=create_statement,json=createStatement,proto3" json:"create_statement,omitempty"`
|
||||
// An optional list of DDL statements to run inside the newly created
|
||||
// database. Statements can create tables, indexes, etc. These
|
||||
// statements execute atomically with the creation of the database:
|
||||
// if there is an error in any statement, the database is not created.
|
||||
ExtraStatements []string `protobuf:"bytes,3,rep,name=extra_statements,json=extraStatements" json:"extra_statements,omitempty"`
|
||||
ExtraStatements []string `protobuf:"bytes,3,rep,name=extra_statements,json=extraStatements,proto3" json:"extra_statements,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateDatabaseRequest) Reset() { *m = CreateDatabaseRequest{} }
|
||||
func (m *CreateDatabaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateDatabaseRequest) ProtoMessage() {}
|
||||
func (*CreateDatabaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
func (m *CreateDatabaseRequest) Reset() { *m = CreateDatabaseRequest{} }
|
||||
func (m *CreateDatabaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateDatabaseRequest) ProtoMessage() {}
|
||||
func (*CreateDatabaseRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{3}
|
||||
}
|
||||
func (m *CreateDatabaseRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateDatabaseRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateDatabaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateDatabaseRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CreateDatabaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateDatabaseRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *CreateDatabaseRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateDatabaseRequest.Size(m)
|
||||
}
|
||||
func (m *CreateDatabaseRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateDatabaseRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateDatabaseRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateDatabaseRequest) GetParent() string {
|
||||
if m != nil {
|
||||
@ -225,13 +295,35 @@ func (m *CreateDatabaseRequest) GetExtraStatements() []string {
|
||||
// [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].
|
||||
type CreateDatabaseMetadata struct {
|
||||
// The database being created.
|
||||
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
|
||||
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateDatabaseMetadata) Reset() { *m = CreateDatabaseMetadata{} }
|
||||
func (m *CreateDatabaseMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateDatabaseMetadata) ProtoMessage() {}
|
||||
func (*CreateDatabaseMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
||||
func (m *CreateDatabaseMetadata) Reset() { *m = CreateDatabaseMetadata{} }
|
||||
func (m *CreateDatabaseMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateDatabaseMetadata) ProtoMessage() {}
|
||||
func (*CreateDatabaseMetadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{4}
|
||||
}
|
||||
func (m *CreateDatabaseMetadata) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateDatabaseMetadata.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateDatabaseMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateDatabaseMetadata.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CreateDatabaseMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateDatabaseMetadata.Merge(dst, src)
|
||||
}
|
||||
func (m *CreateDatabaseMetadata) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateDatabaseMetadata.Size(m)
|
||||
}
|
||||
func (m *CreateDatabaseMetadata) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateDatabaseMetadata.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateDatabaseMetadata proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateDatabaseMetadata) GetDatabase() string {
|
||||
if m != nil {
|
||||
@ -244,13 +336,35 @@ func (m *CreateDatabaseMetadata) GetDatabase() string {
|
||||
type GetDatabaseRequest struct {
|
||||
// Required. The name of the requested database. Values are of the form
|
||||
// `projects/<project>/instances/<instance>/databases/<database>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetDatabaseRequest) Reset() { *m = GetDatabaseRequest{} }
|
||||
func (m *GetDatabaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetDatabaseRequest) ProtoMessage() {}
|
||||
func (*GetDatabaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
||||
func (m *GetDatabaseRequest) Reset() { *m = GetDatabaseRequest{} }
|
||||
func (m *GetDatabaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetDatabaseRequest) ProtoMessage() {}
|
||||
func (*GetDatabaseRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{5}
|
||||
}
|
||||
func (m *GetDatabaseRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetDatabaseRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetDatabaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetDatabaseRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GetDatabaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetDatabaseRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *GetDatabaseRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetDatabaseRequest.Size(m)
|
||||
}
|
||||
func (m *GetDatabaseRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetDatabaseRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetDatabaseRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetDatabaseRequest) GetName() string {
|
||||
if m != nil {
|
||||
@ -277,9 +391,9 @@ func (m *GetDatabaseRequest) GetName() string {
|
||||
// details.
|
||||
type UpdateDatabaseDdlRequest struct {
|
||||
// Required. The database to update.
|
||||
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
|
||||
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
||||
// DDL statements to be applied to the database.
|
||||
Statements []string `protobuf:"bytes,2,rep,name=statements" json:"statements,omitempty"`
|
||||
Statements []string `protobuf:"bytes,2,rep,name=statements,proto3" json:"statements,omitempty"`
|
||||
// If empty, the new update request is assigned an
|
||||
// automatically-generated operation ID. Otherwise, `operation_id`
|
||||
// is used to construct the name of the resulting
|
||||
@ -299,13 +413,35 @@ type UpdateDatabaseDdlRequest struct {
|
||||
// underscore. If the named operation already exists,
|
||||
// [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
|
||||
// `ALREADY_EXISTS`.
|
||||
OperationId string `protobuf:"bytes,3,opt,name=operation_id,json=operationId" json:"operation_id,omitempty"`
|
||||
OperationId string `protobuf:"bytes,3,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateDatabaseDdlRequest) Reset() { *m = UpdateDatabaseDdlRequest{} }
|
||||
func (m *UpdateDatabaseDdlRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateDatabaseDdlRequest) ProtoMessage() {}
|
||||
func (*UpdateDatabaseDdlRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||
func (m *UpdateDatabaseDdlRequest) Reset() { *m = UpdateDatabaseDdlRequest{} }
|
||||
func (m *UpdateDatabaseDdlRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateDatabaseDdlRequest) ProtoMessage() {}
|
||||
func (*UpdateDatabaseDdlRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{6}
|
||||
}
|
||||
func (m *UpdateDatabaseDdlRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateDatabaseDdlRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateDatabaseDdlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateDatabaseDdlRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *UpdateDatabaseDdlRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateDatabaseDdlRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *UpdateDatabaseDdlRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateDatabaseDdlRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateDatabaseDdlRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateDatabaseDdlRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateDatabaseDdlRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateDatabaseDdlRequest) GetDatabase() string {
|
||||
if m != nil {
|
||||
@ -332,20 +468,42 @@ func (m *UpdateDatabaseDdlRequest) GetOperationId() string {
|
||||
// [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
|
||||
type UpdateDatabaseDdlMetadata struct {
|
||||
// The database being modified.
|
||||
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
|
||||
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
||||
// For an update this list contains all the statements. For an
|
||||
// individual statement, this list contains only that statement.
|
||||
Statements []string `protobuf:"bytes,2,rep,name=statements" json:"statements,omitempty"`
|
||||
Statements []string `protobuf:"bytes,2,rep,name=statements,proto3" json:"statements,omitempty"`
|
||||
// Reports the commit timestamps of all statements that have
|
||||
// succeeded so far, where `commit_timestamps[i]` is the commit
|
||||
// timestamp for the statement `statements[i]`.
|
||||
CommitTimestamps []*google_protobuf3.Timestamp `protobuf:"bytes,3,rep,name=commit_timestamps,json=commitTimestamps" json:"commit_timestamps,omitempty"`
|
||||
CommitTimestamps []*timestamp.Timestamp `protobuf:"bytes,3,rep,name=commit_timestamps,json=commitTimestamps,proto3" json:"commit_timestamps,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateDatabaseDdlMetadata) Reset() { *m = UpdateDatabaseDdlMetadata{} }
|
||||
func (m *UpdateDatabaseDdlMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateDatabaseDdlMetadata) ProtoMessage() {}
|
||||
func (*UpdateDatabaseDdlMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
||||
func (m *UpdateDatabaseDdlMetadata) Reset() { *m = UpdateDatabaseDdlMetadata{} }
|
||||
func (m *UpdateDatabaseDdlMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateDatabaseDdlMetadata) ProtoMessage() {}
|
||||
func (*UpdateDatabaseDdlMetadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{7}
|
||||
}
|
||||
func (m *UpdateDatabaseDdlMetadata) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateDatabaseDdlMetadata.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateDatabaseDdlMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateDatabaseDdlMetadata.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *UpdateDatabaseDdlMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateDatabaseDdlMetadata.Merge(dst, src)
|
||||
}
|
||||
func (m *UpdateDatabaseDdlMetadata) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateDatabaseDdlMetadata.Size(m)
|
||||
}
|
||||
func (m *UpdateDatabaseDdlMetadata) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateDatabaseDdlMetadata.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateDatabaseDdlMetadata proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateDatabaseDdlMetadata) GetDatabase() string {
|
||||
if m != nil {
|
||||
@ -361,7 +519,7 @@ func (m *UpdateDatabaseDdlMetadata) GetStatements() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateDatabaseDdlMetadata) GetCommitTimestamps() []*google_protobuf3.Timestamp {
|
||||
func (m *UpdateDatabaseDdlMetadata) GetCommitTimestamps() []*timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.CommitTimestamps
|
||||
}
|
||||
@ -371,13 +529,35 @@ func (m *UpdateDatabaseDdlMetadata) GetCommitTimestamps() []*google_protobuf3.Ti
|
||||
// The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase].
|
||||
type DropDatabaseRequest struct {
|
||||
// Required. The database to be dropped.
|
||||
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
|
||||
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DropDatabaseRequest) Reset() { *m = DropDatabaseRequest{} }
|
||||
func (m *DropDatabaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DropDatabaseRequest) ProtoMessage() {}
|
||||
func (*DropDatabaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||
func (m *DropDatabaseRequest) Reset() { *m = DropDatabaseRequest{} }
|
||||
func (m *DropDatabaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DropDatabaseRequest) ProtoMessage() {}
|
||||
func (*DropDatabaseRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{8}
|
||||
}
|
||||
func (m *DropDatabaseRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DropDatabaseRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DropDatabaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DropDatabaseRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *DropDatabaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DropDatabaseRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *DropDatabaseRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DropDatabaseRequest.Size(m)
|
||||
}
|
||||
func (m *DropDatabaseRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DropDatabaseRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DropDatabaseRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DropDatabaseRequest) GetDatabase() string {
|
||||
if m != nil {
|
||||
@ -389,13 +569,35 @@ func (m *DropDatabaseRequest) GetDatabase() string {
|
||||
// The request for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
|
||||
type GetDatabaseDdlRequest struct {
|
||||
// Required. The database whose schema we wish to get.
|
||||
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
|
||||
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetDatabaseDdlRequest) Reset() { *m = GetDatabaseDdlRequest{} }
|
||||
func (m *GetDatabaseDdlRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetDatabaseDdlRequest) ProtoMessage() {}
|
||||
func (*GetDatabaseDdlRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
||||
func (m *GetDatabaseDdlRequest) Reset() { *m = GetDatabaseDdlRequest{} }
|
||||
func (m *GetDatabaseDdlRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetDatabaseDdlRequest) ProtoMessage() {}
|
||||
func (*GetDatabaseDdlRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{9}
|
||||
}
|
||||
func (m *GetDatabaseDdlRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetDatabaseDdlRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetDatabaseDdlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetDatabaseDdlRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GetDatabaseDdlRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetDatabaseDdlRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *GetDatabaseDdlRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetDatabaseDdlRequest.Size(m)
|
||||
}
|
||||
func (m *GetDatabaseDdlRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetDatabaseDdlRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetDatabaseDdlRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetDatabaseDdlRequest) GetDatabase() string {
|
||||
if m != nil {
|
||||
@ -408,13 +610,35 @@ func (m *GetDatabaseDdlRequest) GetDatabase() string {
|
||||
type GetDatabaseDdlResponse struct {
|
||||
// A list of formatted DDL statements defining the schema of the database
|
||||
// specified in the request.
|
||||
Statements []string `protobuf:"bytes,1,rep,name=statements" json:"statements,omitempty"`
|
||||
Statements []string `protobuf:"bytes,1,rep,name=statements,proto3" json:"statements,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetDatabaseDdlResponse) Reset() { *m = GetDatabaseDdlResponse{} }
|
||||
func (m *GetDatabaseDdlResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetDatabaseDdlResponse) ProtoMessage() {}
|
||||
func (*GetDatabaseDdlResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
||||
func (m *GetDatabaseDdlResponse) Reset() { *m = GetDatabaseDdlResponse{} }
|
||||
func (m *GetDatabaseDdlResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetDatabaseDdlResponse) ProtoMessage() {}
|
||||
func (*GetDatabaseDdlResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_spanner_database_admin_7b69d4ce340cae98, []int{10}
|
||||
}
|
||||
func (m *GetDatabaseDdlResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetDatabaseDdlResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetDatabaseDdlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetDatabaseDdlResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GetDatabaseDdlResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetDatabaseDdlResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *GetDatabaseDdlResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetDatabaseDdlResponse.Size(m)
|
||||
}
|
||||
func (m *GetDatabaseDdlResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetDatabaseDdlResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetDatabaseDdlResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetDatabaseDdlResponse) GetStatements() []string {
|
||||
if m != nil {
|
||||
@ -446,8 +670,9 @@ var _ grpc.ClientConn
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for DatabaseAdmin service
|
||||
|
||||
// DatabaseAdminClient is the client API for DatabaseAdmin service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type DatabaseAdminClient interface {
|
||||
// Lists Cloud Spanner databases.
|
||||
ListDatabases(ctx context.Context, in *ListDatabasesRequest, opts ...grpc.CallOption) (*ListDatabasesResponse, error)
|
||||
@ -459,7 +684,7 @@ type DatabaseAdminClient interface {
|
||||
// [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
|
||||
// [response][google.longrunning.Operation.response] field type is
|
||||
// [Database][google.spanner.admin.database.v1.Database], if successful.
|
||||
CreateDatabase(ctx context.Context, in *CreateDatabaseRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
|
||||
CreateDatabase(ctx context.Context, in *CreateDatabaseRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
// Gets the state of a Cloud Spanner database.
|
||||
GetDatabase(ctx context.Context, in *GetDatabaseRequest, opts ...grpc.CallOption) (*Database, error)
|
||||
// Updates the schema of a Cloud Spanner database by
|
||||
@ -469,9 +694,9 @@ type DatabaseAdminClient interface {
|
||||
// track execution of the schema change(s). The
|
||||
// [metadata][google.longrunning.Operation.metadata] field type is
|
||||
// [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
|
||||
UpdateDatabaseDdl(ctx context.Context, in *UpdateDatabaseDdlRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
|
||||
UpdateDatabaseDdl(ctx context.Context, in *UpdateDatabaseDdlRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
// Drops (aka deletes) a Cloud Spanner database.
|
||||
DropDatabase(ctx context.Context, in *DropDatabaseRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
|
||||
DropDatabase(ctx context.Context, in *DropDatabaseRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
// Returns the schema of a Cloud Spanner database as a list of formatted
|
||||
// DDL statements. This method does not show pending schema updates, those may
|
||||
// be queried using the [Operations][google.longrunning.Operations] API.
|
||||
@ -481,20 +706,20 @@ type DatabaseAdminClient interface {
|
||||
//
|
||||
// Authorization requires `spanner.databases.setIamPolicy` permission on
|
||||
// [resource][google.iam.v1.SetIamPolicyRequest.resource].
|
||||
SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
|
||||
SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
|
||||
// Gets the access control policy for a database resource. Returns an empty
|
||||
// policy if a database exists but does not have a policy set.
|
||||
//
|
||||
// Authorization requires `spanner.databases.getIamPolicy` permission on
|
||||
// [resource][google.iam.v1.GetIamPolicyRequest.resource].
|
||||
GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
|
||||
GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
|
||||
// Returns permissions that the caller has on the specified database resource.
|
||||
//
|
||||
// Attempting this RPC on a non-existent Cloud Spanner database will result in
|
||||
// a NOT_FOUND error if the user has `spanner.databases.list` permission on
|
||||
// the containing Cloud Spanner instance. Otherwise returns an empty set of
|
||||
// permissions.
|
||||
TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error)
|
||||
TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
|
||||
}
|
||||
|
||||
type databaseAdminClient struct {
|
||||
@ -507,16 +732,16 @@ func NewDatabaseAdminClient(cc *grpc.ClientConn) DatabaseAdminClient {
|
||||
|
||||
func (c *databaseAdminClient) ListDatabases(ctx context.Context, in *ListDatabasesRequest, opts ...grpc.CallOption) (*ListDatabasesResponse, error) {
|
||||
out := new(ListDatabasesResponse)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabases", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabases", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *databaseAdminClient) CreateDatabase(ctx context.Context, in *CreateDatabaseRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
|
||||
out := new(google_longrunning.Operation)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/CreateDatabase", in, out, c.cc, opts...)
|
||||
func (c *databaseAdminClient) CreateDatabase(ctx context.Context, in *CreateDatabaseRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/CreateDatabase", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -525,25 +750,25 @@ func (c *databaseAdminClient) CreateDatabase(ctx context.Context, in *CreateData
|
||||
|
||||
func (c *databaseAdminClient) GetDatabase(ctx context.Context, in *GetDatabaseRequest, opts ...grpc.CallOption) (*Database, error) {
|
||||
out := new(Database)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabase", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabase", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *databaseAdminClient) UpdateDatabaseDdl(ctx context.Context, in *UpdateDatabaseDdlRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
|
||||
out := new(google_longrunning.Operation)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabaseDdl", in, out, c.cc, opts...)
|
||||
func (c *databaseAdminClient) UpdateDatabaseDdl(ctx context.Context, in *UpdateDatabaseDdlRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabaseDdl", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *databaseAdminClient) DropDatabase(ctx context.Context, in *DropDatabaseRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) {
|
||||
out := new(google_protobuf2.Empty)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/DropDatabase", in, out, c.cc, opts...)
|
||||
func (c *databaseAdminClient) DropDatabase(ctx context.Context, in *DropDatabaseRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/DropDatabase", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -552,42 +777,41 @@ func (c *databaseAdminClient) DropDatabase(ctx context.Context, in *DropDatabase
|
||||
|
||||
func (c *databaseAdminClient) GetDatabaseDdl(ctx context.Context, in *GetDatabaseDdlRequest, opts ...grpc.CallOption) (*GetDatabaseDdlResponse, error) {
|
||||
out := new(GetDatabaseDdlResponse)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabaseDdl", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/GetDatabaseDdl", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *databaseAdminClient) SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
|
||||
out := new(google_iam_v1.Policy)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/SetIamPolicy", in, out, c.cc, opts...)
|
||||
func (c *databaseAdminClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
|
||||
out := new(v1.Policy)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/SetIamPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *databaseAdminClient) GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
|
||||
out := new(google_iam_v1.Policy)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/GetIamPolicy", in, out, c.cc, opts...)
|
||||
func (c *databaseAdminClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
|
||||
out := new(v1.Policy)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/GetIamPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *databaseAdminClient) TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error) {
|
||||
out := new(google_iam_v11.TestIamPermissionsResponse)
|
||||
err := grpc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/TestIamPermissions", in, out, c.cc, opts...)
|
||||
func (c *databaseAdminClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
|
||||
out := new(v1.TestIamPermissionsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.spanner.admin.database.v1.DatabaseAdmin/TestIamPermissions", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Server API for DatabaseAdmin service
|
||||
|
||||
// DatabaseAdminServer is the server API for DatabaseAdmin service.
|
||||
type DatabaseAdminServer interface {
|
||||
// Lists Cloud Spanner databases.
|
||||
ListDatabases(context.Context, *ListDatabasesRequest) (*ListDatabasesResponse, error)
|
||||
@ -599,7 +823,7 @@ type DatabaseAdminServer interface {
|
||||
// [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
|
||||
// [response][google.longrunning.Operation.response] field type is
|
||||
// [Database][google.spanner.admin.database.v1.Database], if successful.
|
||||
CreateDatabase(context.Context, *CreateDatabaseRequest) (*google_longrunning.Operation, error)
|
||||
CreateDatabase(context.Context, *CreateDatabaseRequest) (*longrunning.Operation, error)
|
||||
// Gets the state of a Cloud Spanner database.
|
||||
GetDatabase(context.Context, *GetDatabaseRequest) (*Database, error)
|
||||
// Updates the schema of a Cloud Spanner database by
|
||||
@ -609,9 +833,9 @@ type DatabaseAdminServer interface {
|
||||
// track execution of the schema change(s). The
|
||||
// [metadata][google.longrunning.Operation.metadata] field type is
|
||||
// [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
|
||||
UpdateDatabaseDdl(context.Context, *UpdateDatabaseDdlRequest) (*google_longrunning.Operation, error)
|
||||
UpdateDatabaseDdl(context.Context, *UpdateDatabaseDdlRequest) (*longrunning.Operation, error)
|
||||
// Drops (aka deletes) a Cloud Spanner database.
|
||||
DropDatabase(context.Context, *DropDatabaseRequest) (*google_protobuf2.Empty, error)
|
||||
DropDatabase(context.Context, *DropDatabaseRequest) (*empty.Empty, error)
|
||||
// Returns the schema of a Cloud Spanner database as a list of formatted
|
||||
// DDL statements. This method does not show pending schema updates, those may
|
||||
// be queried using the [Operations][google.longrunning.Operations] API.
|
||||
@ -621,20 +845,20 @@ type DatabaseAdminServer interface {
|
||||
//
|
||||
// Authorization requires `spanner.databases.setIamPolicy` permission on
|
||||
// [resource][google.iam.v1.SetIamPolicyRequest.resource].
|
||||
SetIamPolicy(context.Context, *google_iam_v11.SetIamPolicyRequest) (*google_iam_v1.Policy, error)
|
||||
SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
|
||||
// Gets the access control policy for a database resource. Returns an empty
|
||||
// policy if a database exists but does not have a policy set.
|
||||
//
|
||||
// Authorization requires `spanner.databases.getIamPolicy` permission on
|
||||
// [resource][google.iam.v1.GetIamPolicyRequest.resource].
|
||||
GetIamPolicy(context.Context, *google_iam_v11.GetIamPolicyRequest) (*google_iam_v1.Policy, error)
|
||||
GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
|
||||
// Returns permissions that the caller has on the specified database resource.
|
||||
//
|
||||
// Attempting this RPC on a non-existent Cloud Spanner database will result in
|
||||
// a NOT_FOUND error if the user has `spanner.databases.list` permission on
|
||||
// the containing Cloud Spanner instance. Otherwise returns an empty set of
|
||||
// permissions.
|
||||
TestIamPermissions(context.Context, *google_iam_v11.TestIamPermissionsRequest) (*google_iam_v11.TestIamPermissionsResponse, error)
|
||||
TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
|
||||
}
|
||||
|
||||
func RegisterDatabaseAdminServer(s *grpc.Server, srv DatabaseAdminServer) {
|
||||
@ -750,7 +974,7 @@ func _DatabaseAdmin_GetDatabaseDdl_Handler(srv interface{}, ctx context.Context,
|
||||
}
|
||||
|
||||
func _DatabaseAdmin_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(google_iam_v11.SetIamPolicyRequest)
|
||||
in := new(v1.SetIamPolicyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -762,13 +986,13 @@ func _DatabaseAdmin_SetIamPolicy_Handler(srv interface{}, ctx context.Context, d
|
||||
FullMethod: "/google.spanner.admin.database.v1.DatabaseAdmin/SetIamPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DatabaseAdminServer).SetIamPolicy(ctx, req.(*google_iam_v11.SetIamPolicyRequest))
|
||||
return srv.(DatabaseAdminServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DatabaseAdmin_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(google_iam_v11.GetIamPolicyRequest)
|
||||
in := new(v1.GetIamPolicyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -780,13 +1004,13 @@ func _DatabaseAdmin_GetIamPolicy_Handler(srv interface{}, ctx context.Context, d
|
||||
FullMethod: "/google.spanner.admin.database.v1.DatabaseAdmin/GetIamPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DatabaseAdminServer).GetIamPolicy(ctx, req.(*google_iam_v11.GetIamPolicyRequest))
|
||||
return srv.(DatabaseAdminServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DatabaseAdmin_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(google_iam_v11.TestIamPermissionsRequest)
|
||||
in := new(v1.TestIamPermissionsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -798,7 +1022,7 @@ func _DatabaseAdmin_TestIamPermissions_Handler(srv interface{}, ctx context.Cont
|
||||
FullMethod: "/google.spanner.admin.database.v1.DatabaseAdmin/TestIamPermissions",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DatabaseAdminServer).TestIamPermissions(ctx, req.(*google_iam_v11.TestIamPermissionsRequest))
|
||||
return srv.(DatabaseAdminServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@ -849,10 +1073,10 @@ var _DatabaseAdmin_serviceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/spanner/admin/database/v1/spanner_database_admin.proto", fileDescriptor0)
|
||||
proto.RegisterFile("google/spanner/admin/database/v1/spanner_database_admin.proto", fileDescriptor_spanner_database_admin_7b69d4ce340cae98)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_spanner_database_admin_7b69d4ce340cae98 = []byte{
|
||||
// 1033 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0xcf, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xc7, 0x19, 0xa7, 0xa9, 0x92, 0x17, 0x27, 0x75, 0x06, 0x1c, 0xb9, 0x5b, 0x5a, 0xcc, 0x82,
|
||||
|
File diff suppressed because it is too large
Load Diff
207
vendor/google.golang.org/genproto/googleapis/spanner/v1/keys.pb.go
generated
vendored
207
vendor/google.golang.org/genproto/googleapis/spanner/v1/keys.pb.go
generated
vendored
@ -1,58 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/spanner/v1/keys.proto
|
||||
|
||||
/*
|
||||
Package spanner is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/spanner/v1/keys.proto
|
||||
google/spanner/v1/mutation.proto
|
||||
google/spanner/v1/query_plan.proto
|
||||
google/spanner/v1/result_set.proto
|
||||
google/spanner/v1/spanner.proto
|
||||
google/spanner/v1/transaction.proto
|
||||
google/spanner/v1/type.proto
|
||||
|
||||
It has these top-level messages:
|
||||
KeyRange
|
||||
KeySet
|
||||
Mutation
|
||||
PlanNode
|
||||
QueryPlan
|
||||
ResultSet
|
||||
PartialResultSet
|
||||
ResultSetMetadata
|
||||
ResultSetStats
|
||||
CreateSessionRequest
|
||||
Session
|
||||
GetSessionRequest
|
||||
ListSessionsRequest
|
||||
ListSessionsResponse
|
||||
DeleteSessionRequest
|
||||
ExecuteSqlRequest
|
||||
PartitionOptions
|
||||
PartitionQueryRequest
|
||||
PartitionReadRequest
|
||||
Partition
|
||||
PartitionResponse
|
||||
ReadRequest
|
||||
BeginTransactionRequest
|
||||
CommitRequest
|
||||
CommitResponse
|
||||
RollbackRequest
|
||||
TransactionOptions
|
||||
Transaction
|
||||
TransactionSelector
|
||||
Type
|
||||
StructType
|
||||
*/
|
||||
package spanner
|
||||
package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
@ -164,38 +119,51 @@ type KeyRange struct {
|
||||
// Types that are valid to be assigned to EndKeyType:
|
||||
// *KeyRange_EndClosed
|
||||
// *KeyRange_EndOpen
|
||||
EndKeyType isKeyRange_EndKeyType `protobuf_oneof:"end_key_type"`
|
||||
EndKeyType isKeyRange_EndKeyType `protobuf_oneof:"end_key_type"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *KeyRange) Reset() { *m = KeyRange{} }
|
||||
func (m *KeyRange) String() string { return proto.CompactTextString(m) }
|
||||
func (*KeyRange) ProtoMessage() {}
|
||||
func (*KeyRange) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *KeyRange) Reset() { *m = KeyRange{} }
|
||||
func (m *KeyRange) String() string { return proto.CompactTextString(m) }
|
||||
func (*KeyRange) ProtoMessage() {}
|
||||
func (*KeyRange) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_keys_3b687fe915157fa4, []int{0}
|
||||
}
|
||||
func (m *KeyRange) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_KeyRange.Unmarshal(m, b)
|
||||
}
|
||||
func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_KeyRange.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *KeyRange) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KeyRange.Merge(dst, src)
|
||||
}
|
||||
func (m *KeyRange) XXX_Size() int {
|
||||
return xxx_messageInfo_KeyRange.Size(m)
|
||||
}
|
||||
func (m *KeyRange) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_KeyRange.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_KeyRange proto.InternalMessageInfo
|
||||
|
||||
type isKeyRange_StartKeyType interface {
|
||||
isKeyRange_StartKeyType()
|
||||
}
|
||||
type isKeyRange_EndKeyType interface {
|
||||
isKeyRange_EndKeyType()
|
||||
}
|
||||
|
||||
type KeyRange_StartClosed struct {
|
||||
StartClosed *google_protobuf1.ListValue `protobuf:"bytes,1,opt,name=start_closed,json=startClosed,oneof"`
|
||||
StartClosed *_struct.ListValue `protobuf:"bytes,1,opt,name=start_closed,json=startClosed,proto3,oneof"`
|
||||
}
|
||||
|
||||
type KeyRange_StartOpen struct {
|
||||
StartOpen *google_protobuf1.ListValue `protobuf:"bytes,2,opt,name=start_open,json=startOpen,oneof"`
|
||||
}
|
||||
type KeyRange_EndClosed struct {
|
||||
EndClosed *google_protobuf1.ListValue `protobuf:"bytes,3,opt,name=end_closed,json=endClosed,oneof"`
|
||||
}
|
||||
type KeyRange_EndOpen struct {
|
||||
EndOpen *google_protobuf1.ListValue `protobuf:"bytes,4,opt,name=end_open,json=endOpen,oneof"`
|
||||
StartOpen *_struct.ListValue `protobuf:"bytes,2,opt,name=start_open,json=startOpen,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*KeyRange_StartClosed) isKeyRange_StartKeyType() {}
|
||||
func (*KeyRange_StartOpen) isKeyRange_StartKeyType() {}
|
||||
func (*KeyRange_EndClosed) isKeyRange_EndKeyType() {}
|
||||
func (*KeyRange_EndOpen) isKeyRange_EndKeyType() {}
|
||||
|
||||
func (*KeyRange_StartOpen) isKeyRange_StartKeyType() {}
|
||||
|
||||
func (m *KeyRange) GetStartKeyType() isKeyRange_StartKeyType {
|
||||
if m != nil {
|
||||
@ -203,6 +171,37 @@ func (m *KeyRange) GetStartKeyType() isKeyRange_StartKeyType {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *KeyRange) GetStartClosed() *_struct.ListValue {
|
||||
if x, ok := m.GetStartKeyType().(*KeyRange_StartClosed); ok {
|
||||
return x.StartClosed
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *KeyRange) GetStartOpen() *_struct.ListValue {
|
||||
if x, ok := m.GetStartKeyType().(*KeyRange_StartOpen); ok {
|
||||
return x.StartOpen
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isKeyRange_EndKeyType interface {
|
||||
isKeyRange_EndKeyType()
|
||||
}
|
||||
|
||||
type KeyRange_EndClosed struct {
|
||||
EndClosed *_struct.ListValue `protobuf:"bytes,3,opt,name=end_closed,json=endClosed,proto3,oneof"`
|
||||
}
|
||||
|
||||
type KeyRange_EndOpen struct {
|
||||
EndOpen *_struct.ListValue `protobuf:"bytes,4,opt,name=end_open,json=endOpen,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*KeyRange_EndClosed) isKeyRange_EndKeyType() {}
|
||||
|
||||
func (*KeyRange_EndOpen) isKeyRange_EndKeyType() {}
|
||||
|
||||
func (m *KeyRange) GetEndKeyType() isKeyRange_EndKeyType {
|
||||
if m != nil {
|
||||
return m.EndKeyType
|
||||
@ -210,28 +209,14 @@ func (m *KeyRange) GetEndKeyType() isKeyRange_EndKeyType {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *KeyRange) GetStartClosed() *google_protobuf1.ListValue {
|
||||
if x, ok := m.GetStartKeyType().(*KeyRange_StartClosed); ok {
|
||||
return x.StartClosed
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *KeyRange) GetStartOpen() *google_protobuf1.ListValue {
|
||||
if x, ok := m.GetStartKeyType().(*KeyRange_StartOpen); ok {
|
||||
return x.StartOpen
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *KeyRange) GetEndClosed() *google_protobuf1.ListValue {
|
||||
func (m *KeyRange) GetEndClosed() *_struct.ListValue {
|
||||
if x, ok := m.GetEndKeyType().(*KeyRange_EndClosed); ok {
|
||||
return x.EndClosed
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *KeyRange) GetEndOpen() *google_protobuf1.ListValue {
|
||||
func (m *KeyRange) GetEndOpen() *_struct.ListValue {
|
||||
if x, ok := m.GetEndKeyType().(*KeyRange_EndOpen); ok {
|
||||
return x.EndOpen
|
||||
}
|
||||
@ -292,7 +277,7 @@ func _KeyRange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffe
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf1.ListValue)
|
||||
msg := new(_struct.ListValue)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.StartKeyType = &KeyRange_StartClosed{msg}
|
||||
return true, err
|
||||
@ -300,7 +285,7 @@ func _KeyRange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffe
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf1.ListValue)
|
||||
msg := new(_struct.ListValue)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.StartKeyType = &KeyRange_StartOpen{msg}
|
||||
return true, err
|
||||
@ -308,7 +293,7 @@ func _KeyRange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffe
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf1.ListValue)
|
||||
msg := new(_struct.ListValue)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.EndKeyType = &KeyRange_EndClosed{msg}
|
||||
return true, err
|
||||
@ -316,7 +301,7 @@ func _KeyRange_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffe
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf1.ListValue)
|
||||
msg := new(_struct.ListValue)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.EndKeyType = &KeyRange_EndOpen{msg}
|
||||
return true, err
|
||||
@ -331,12 +316,12 @@ func _KeyRange_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.StartKeyType.(type) {
|
||||
case *KeyRange_StartClosed:
|
||||
s := proto.Size(x.StartClosed)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *KeyRange_StartOpen:
|
||||
s := proto.Size(x.StartOpen)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -347,12 +332,12 @@ func _KeyRange_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.EndKeyType.(type) {
|
||||
case *KeyRange_EndClosed:
|
||||
s := proto.Size(x.EndClosed)
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *KeyRange_EndOpen:
|
||||
s := proto.Size(x.EndOpen)
|
||||
n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -374,22 +359,44 @@ type KeySet struct {
|
||||
// many elements as there are columns in the primary or index key
|
||||
// with which this `KeySet` is used. Individual key values are
|
||||
// encoded as described [here][google.spanner.v1.TypeCode].
|
||||
Keys []*google_protobuf1.ListValue `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
|
||||
Keys []*_struct.ListValue `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
|
||||
// A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about
|
||||
// key range specifications.
|
||||
Ranges []*KeyRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"`
|
||||
Ranges []*KeyRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
|
||||
// For convenience `all` can be set to `true` to indicate that this
|
||||
// `KeySet` matches all keys in the table or index. Note that any keys
|
||||
// specified in `keys` or `ranges` are only yielded once.
|
||||
All bool `protobuf:"varint,3,opt,name=all" json:"all,omitempty"`
|
||||
All bool `protobuf:"varint,3,opt,name=all,proto3" json:"all,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *KeySet) Reset() { *m = KeySet{} }
|
||||
func (m *KeySet) String() string { return proto.CompactTextString(m) }
|
||||
func (*KeySet) ProtoMessage() {}
|
||||
func (*KeySet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *KeySet) Reset() { *m = KeySet{} }
|
||||
func (m *KeySet) String() string { return proto.CompactTextString(m) }
|
||||
func (*KeySet) ProtoMessage() {}
|
||||
func (*KeySet) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_keys_3b687fe915157fa4, []int{1}
|
||||
}
|
||||
func (m *KeySet) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_KeySet.Unmarshal(m, b)
|
||||
}
|
||||
func (m *KeySet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_KeySet.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *KeySet) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KeySet.Merge(dst, src)
|
||||
}
|
||||
func (m *KeySet) XXX_Size() int {
|
||||
return xxx_messageInfo_KeySet.Size(m)
|
||||
}
|
||||
func (m *KeySet) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_KeySet.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
func (m *KeySet) GetKeys() []*google_protobuf1.ListValue {
|
||||
var xxx_messageInfo_KeySet proto.InternalMessageInfo
|
||||
|
||||
func (m *KeySet) GetKeys() []*_struct.ListValue {
|
||||
if m != nil {
|
||||
return m.Keys
|
||||
}
|
||||
@ -415,9 +422,9 @@ func init() {
|
||||
proto.RegisterType((*KeySet)(nil), "google.spanner.v1.KeySet")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/spanner/v1/keys.proto", fileDescriptor0) }
|
||||
func init() { proto.RegisterFile("google/spanner/v1/keys.proto", fileDescriptor_keys_3b687fe915157fa4) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_keys_3b687fe915157fa4 = []byte{
|
||||
// 371 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6b, 0xea, 0x30,
|
||||
0x1c, 0xc7, 0x5f, 0xab, 0xf8, 0x34, 0x8a, 0xf8, 0x0a, 0x8f, 0x57, 0x7c, 0x3b, 0x88, 0xa7, 0x9d,
|
||||
|
172
vendor/google.golang.org/genproto/googleapis/spanner/v1/mutation.pb.go
generated
vendored
172
vendor/google.golang.org/genproto/googleapis/spanner/v1/mutation.pb.go
generated
vendored
@ -1,19 +1,25 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/spanner/v1/mutation.proto
|
||||
|
||||
package spanner
|
||||
package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// A modification to one or more Cloud Spanner rows. Mutations can be
|
||||
// applied to a Cloud Spanner database by sending them in a
|
||||
// [Commit][google.spanner.v1.Spanner.Commit] call.
|
||||
@ -26,39 +32,69 @@ type Mutation struct {
|
||||
// *Mutation_InsertOrUpdate
|
||||
// *Mutation_Replace
|
||||
// *Mutation_Delete_
|
||||
Operation isMutation_Operation `protobuf_oneof:"operation"`
|
||||
Operation isMutation_Operation `protobuf_oneof:"operation"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Mutation) Reset() { *m = Mutation{} }
|
||||
func (m *Mutation) String() string { return proto.CompactTextString(m) }
|
||||
func (*Mutation) ProtoMessage() {}
|
||||
func (*Mutation) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
func (m *Mutation) Reset() { *m = Mutation{} }
|
||||
func (m *Mutation) String() string { return proto.CompactTextString(m) }
|
||||
func (*Mutation) ProtoMessage() {}
|
||||
func (*Mutation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_mutation_eb7ac5a738061ac4, []int{0}
|
||||
}
|
||||
func (m *Mutation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Mutation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Mutation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Mutation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Mutation.Merge(dst, src)
|
||||
}
|
||||
func (m *Mutation) XXX_Size() int {
|
||||
return xxx_messageInfo_Mutation.Size(m)
|
||||
}
|
||||
func (m *Mutation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Mutation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Mutation proto.InternalMessageInfo
|
||||
|
||||
type isMutation_Operation interface {
|
||||
isMutation_Operation()
|
||||
}
|
||||
|
||||
type Mutation_Insert struct {
|
||||
Insert *Mutation_Write `protobuf:"bytes,1,opt,name=insert,oneof"`
|
||||
}
|
||||
type Mutation_Update struct {
|
||||
Update *Mutation_Write `protobuf:"bytes,2,opt,name=update,oneof"`
|
||||
}
|
||||
type Mutation_InsertOrUpdate struct {
|
||||
InsertOrUpdate *Mutation_Write `protobuf:"bytes,3,opt,name=insert_or_update,json=insertOrUpdate,oneof"`
|
||||
}
|
||||
type Mutation_Replace struct {
|
||||
Replace *Mutation_Write `protobuf:"bytes,4,opt,name=replace,oneof"`
|
||||
}
|
||||
type Mutation_Delete_ struct {
|
||||
Delete *Mutation_Delete `protobuf:"bytes,5,opt,name=delete,oneof"`
|
||||
Insert *Mutation_Write `protobuf:"bytes,1,opt,name=insert,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Mutation_Insert) isMutation_Operation() {}
|
||||
func (*Mutation_Update) isMutation_Operation() {}
|
||||
type Mutation_Update struct {
|
||||
Update *Mutation_Write `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Mutation_InsertOrUpdate struct {
|
||||
InsertOrUpdate *Mutation_Write `protobuf:"bytes,3,opt,name=insert_or_update,json=insertOrUpdate,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Mutation_Replace struct {
|
||||
Replace *Mutation_Write `protobuf:"bytes,4,opt,name=replace,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Mutation_Delete_ struct {
|
||||
Delete *Mutation_Delete `protobuf:"bytes,5,opt,name=delete,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Mutation_Insert) isMutation_Operation() {}
|
||||
|
||||
func (*Mutation_Update) isMutation_Operation() {}
|
||||
|
||||
func (*Mutation_InsertOrUpdate) isMutation_Operation() {}
|
||||
func (*Mutation_Replace) isMutation_Operation() {}
|
||||
func (*Mutation_Delete_) isMutation_Operation() {}
|
||||
|
||||
func (*Mutation_Replace) isMutation_Operation() {}
|
||||
|
||||
func (*Mutation_Delete_) isMutation_Operation() {}
|
||||
|
||||
func (m *Mutation) GetOperation() isMutation_Operation {
|
||||
if m != nil {
|
||||
@ -203,27 +239,27 @@ func _Mutation_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.Operation.(type) {
|
||||
case *Mutation_Insert:
|
||||
s := proto.Size(x.Insert)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Mutation_Update:
|
||||
s := proto.Size(x.Update)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Mutation_InsertOrUpdate:
|
||||
s := proto.Size(x.InsertOrUpdate)
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Mutation_Replace:
|
||||
s := proto.Size(x.Replace)
|
||||
n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Mutation_Delete_:
|
||||
s := proto.Size(x.Delete)
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -237,13 +273,13 @@ func _Mutation_OneofSizer(msg proto.Message) (n int) {
|
||||
// [replace][google.spanner.v1.Mutation.replace] operations.
|
||||
type Mutation_Write struct {
|
||||
// Required. The table whose rows will be written.
|
||||
Table string `protobuf:"bytes,1,opt,name=table" json:"table,omitempty"`
|
||||
Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
||||
// The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
|
||||
//
|
||||
// The list of columns must contain enough columns to allow
|
||||
// Cloud Spanner to derive values for all primary key columns in the
|
||||
// row(s) to be modified.
|
||||
Columns []string `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"`
|
||||
Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
|
||||
// The values to be written. `values` can contain more than one
|
||||
// list of values. If it does, then multiple rows are written, one
|
||||
// for each entry in `values`. Each list in `values` must have
|
||||
@ -252,13 +288,35 @@ type Mutation_Write struct {
|
||||
// `Mutation`s, each containing one `values` entry and repeating
|
||||
// [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
|
||||
// encoded as described [here][google.spanner.v1.TypeCode].
|
||||
Values []*google_protobuf1.ListValue `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"`
|
||||
Values []*_struct.ListValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Mutation_Write) Reset() { *m = Mutation_Write{} }
|
||||
func (m *Mutation_Write) String() string { return proto.CompactTextString(m) }
|
||||
func (*Mutation_Write) ProtoMessage() {}
|
||||
func (*Mutation_Write) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
|
||||
func (m *Mutation_Write) Reset() { *m = Mutation_Write{} }
|
||||
func (m *Mutation_Write) String() string { return proto.CompactTextString(m) }
|
||||
func (*Mutation_Write) ProtoMessage() {}
|
||||
func (*Mutation_Write) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_mutation_eb7ac5a738061ac4, []int{0, 0}
|
||||
}
|
||||
func (m *Mutation_Write) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Mutation_Write.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Mutation_Write) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Mutation_Write.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Mutation_Write) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Mutation_Write.Merge(dst, src)
|
||||
}
|
||||
func (m *Mutation_Write) XXX_Size() int {
|
||||
return xxx_messageInfo_Mutation_Write.Size(m)
|
||||
}
|
||||
func (m *Mutation_Write) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Mutation_Write.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Mutation_Write proto.InternalMessageInfo
|
||||
|
||||
func (m *Mutation_Write) GetTable() string {
|
||||
if m != nil {
|
||||
@ -274,7 +332,7 @@ func (m *Mutation_Write) GetColumns() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Mutation_Write) GetValues() []*google_protobuf1.ListValue {
|
||||
func (m *Mutation_Write) GetValues() []*_struct.ListValue {
|
||||
if m != nil {
|
||||
return m.Values
|
||||
}
|
||||
@ -284,17 +342,39 @@ func (m *Mutation_Write) GetValues() []*google_protobuf1.ListValue {
|
||||
// Arguments to [delete][google.spanner.v1.Mutation.delete] operations.
|
||||
type Mutation_Delete struct {
|
||||
// Required. The table whose rows will be deleted.
|
||||
Table string `protobuf:"bytes,1,opt,name=table" json:"table,omitempty"`
|
||||
Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
||||
// Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
|
||||
// Delete is idempotent. The transaction will succeed even if some or all
|
||||
// rows do not exist.
|
||||
KeySet *KeySet `protobuf:"bytes,2,opt,name=key_set,json=keySet" json:"key_set,omitempty"`
|
||||
KeySet *KeySet `protobuf:"bytes,2,opt,name=key_set,json=keySet,proto3" json:"key_set,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Mutation_Delete) Reset() { *m = Mutation_Delete{} }
|
||||
func (m *Mutation_Delete) String() string { return proto.CompactTextString(m) }
|
||||
func (*Mutation_Delete) ProtoMessage() {}
|
||||
func (*Mutation_Delete) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 1} }
|
||||
func (m *Mutation_Delete) Reset() { *m = Mutation_Delete{} }
|
||||
func (m *Mutation_Delete) String() string { return proto.CompactTextString(m) }
|
||||
func (*Mutation_Delete) ProtoMessage() {}
|
||||
func (*Mutation_Delete) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_mutation_eb7ac5a738061ac4, []int{0, 1}
|
||||
}
|
||||
func (m *Mutation_Delete) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Mutation_Delete.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Mutation_Delete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Mutation_Delete.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Mutation_Delete) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Mutation_Delete.Merge(dst, src)
|
||||
}
|
||||
func (m *Mutation_Delete) XXX_Size() int {
|
||||
return xxx_messageInfo_Mutation_Delete.Size(m)
|
||||
}
|
||||
func (m *Mutation_Delete) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Mutation_Delete.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Mutation_Delete proto.InternalMessageInfo
|
||||
|
||||
func (m *Mutation_Delete) GetTable() string {
|
||||
if m != nil {
|
||||
@ -316,9 +396,11 @@ func init() {
|
||||
proto.RegisterType((*Mutation_Delete)(nil), "google.spanner.v1.Mutation.Delete")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/spanner/v1/mutation.proto", fileDescriptor1) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/spanner/v1/mutation.proto", fileDescriptor_mutation_eb7ac5a738061ac4)
|
||||
}
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
var fileDescriptor_mutation_eb7ac5a738061ac4 = []byte{
|
||||
// 413 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xd1, 0xea, 0xd3, 0x30,
|
||||
0x14, 0xc6, 0xed, 0xba, 0x75, 0x2e, 0x43, 0xd1, 0xa2, 0x58, 0x8b, 0x17, 0x75, 0x57, 0xbb, 0x4a,
|
||||
|
171
vendor/google.golang.org/genproto/googleapis/spanner/v1/query_plan.pb.go
generated
vendored
171
vendor/google.golang.org/genproto/googleapis/spanner/v1/query_plan.pb.go
generated
vendored
@ -1,19 +1,25 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/spanner/v1/query_plan.proto
|
||||
|
||||
package spanner
|
||||
package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// The kind of [PlanNode][google.spanner.v1.PlanNode]. Distinguishes between the two different kinds of
|
||||
// nodes that can appear in a query plan.
|
||||
type PlanNode_Kind int32
|
||||
@ -46,24 +52,26 @@ var PlanNode_Kind_value = map[string]int32{
|
||||
func (x PlanNode_Kind) String() string {
|
||||
return proto.EnumName(PlanNode_Kind_name, int32(x))
|
||||
}
|
||||
func (PlanNode_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
||||
func (PlanNode_Kind) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_plan_e20f6b3462ee8118, []int{0, 0}
|
||||
}
|
||||
|
||||
// Node information for nodes appearing in a [QueryPlan.plan_nodes][google.spanner.v1.QueryPlan.plan_nodes].
|
||||
type PlanNode struct {
|
||||
// The `PlanNode`'s index in [node list][google.spanner.v1.QueryPlan.plan_nodes].
|
||||
Index int32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"`
|
||||
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
|
||||
// Used to determine the type of node. May be needed for visualizing
|
||||
// different kinds of nodes differently. For example, If the node is a
|
||||
// [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] node, it will have a condensed representation
|
||||
// which can be used to directly embed a description of the node in its
|
||||
// parent.
|
||||
Kind PlanNode_Kind `protobuf:"varint,2,opt,name=kind,enum=google.spanner.v1.PlanNode_Kind" json:"kind,omitempty"`
|
||||
Kind PlanNode_Kind `protobuf:"varint,2,opt,name=kind,proto3,enum=google.spanner.v1.PlanNode_Kind" json:"kind,omitempty"`
|
||||
// The display name for the node.
|
||||
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
|
||||
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
// List of child node `index`es and their relationship to this parent.
|
||||
ChildLinks []*PlanNode_ChildLink `protobuf:"bytes,4,rep,name=child_links,json=childLinks" json:"child_links,omitempty"`
|
||||
ChildLinks []*PlanNode_ChildLink `protobuf:"bytes,4,rep,name=child_links,json=childLinks,proto3" json:"child_links,omitempty"`
|
||||
// Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.
|
||||
ShortRepresentation *PlanNode_ShortRepresentation `protobuf:"bytes,5,opt,name=short_representation,json=shortRepresentation" json:"short_representation,omitempty"`
|
||||
ShortRepresentation *PlanNode_ShortRepresentation `protobuf:"bytes,5,opt,name=short_representation,json=shortRepresentation,proto3" json:"short_representation,omitempty"`
|
||||
// Attributes relevant to the node contained in a group of key-value pairs.
|
||||
// For example, a Parameter Reference node could have the following
|
||||
// information in its metadata:
|
||||
@ -72,18 +80,40 @@ type PlanNode struct {
|
||||
// "parameter_reference": "param1",
|
||||
// "parameter_type": "array"
|
||||
// }
|
||||
Metadata *google_protobuf1.Struct `protobuf:"bytes,6,opt,name=metadata" json:"metadata,omitempty"`
|
||||
Metadata *_struct.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// The execution statistics associated with the node, contained in a group of
|
||||
// key-value pairs. Only present if the plan was returned as a result of a
|
||||
// profile query. For example, number of executions, number of rows/time per
|
||||
// execution etc.
|
||||
ExecutionStats *google_protobuf1.Struct `protobuf:"bytes,7,opt,name=execution_stats,json=executionStats" json:"execution_stats,omitempty"`
|
||||
ExecutionStats *_struct.Struct `protobuf:"bytes,7,opt,name=execution_stats,json=executionStats,proto3" json:"execution_stats,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PlanNode) Reset() { *m = PlanNode{} }
|
||||
func (m *PlanNode) String() string { return proto.CompactTextString(m) }
|
||||
func (*PlanNode) ProtoMessage() {}
|
||||
func (*PlanNode) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (m *PlanNode) Reset() { *m = PlanNode{} }
|
||||
func (m *PlanNode) String() string { return proto.CompactTextString(m) }
|
||||
func (*PlanNode) ProtoMessage() {}
|
||||
func (*PlanNode) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_plan_e20f6b3462ee8118, []int{0}
|
||||
}
|
||||
func (m *PlanNode) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PlanNode.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PlanNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PlanNode.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PlanNode) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PlanNode.Merge(dst, src)
|
||||
}
|
||||
func (m *PlanNode) XXX_Size() int {
|
||||
return xxx_messageInfo_PlanNode.Size(m)
|
||||
}
|
||||
func (m *PlanNode) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PlanNode.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PlanNode proto.InternalMessageInfo
|
||||
|
||||
func (m *PlanNode) GetIndex() int32 {
|
||||
if m != nil {
|
||||
@ -120,14 +150,14 @@ func (m *PlanNode) GetShortRepresentation() *PlanNode_ShortRepresentation {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PlanNode) GetMetadata() *google_protobuf1.Struct {
|
||||
func (m *PlanNode) GetMetadata() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PlanNode) GetExecutionStats() *google_protobuf1.Struct {
|
||||
func (m *PlanNode) GetExecutionStats() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.ExecutionStats
|
||||
}
|
||||
@ -138,12 +168,12 @@ func (m *PlanNode) GetExecutionStats() *google_protobuf1.Struct {
|
||||
// [PlanNode][google.spanner.v1.PlanNode].
|
||||
type PlanNode_ChildLink struct {
|
||||
// The node to which the link points.
|
||||
ChildIndex int32 `protobuf:"varint,1,opt,name=child_index,json=childIndex" json:"child_index,omitempty"`
|
||||
ChildIndex int32 `protobuf:"varint,1,opt,name=child_index,json=childIndex,proto3" json:"child_index,omitempty"`
|
||||
// The type of the link. For example, in Hash Joins this could be used to
|
||||
// distinguish between the build child and the probe child, or in the case
|
||||
// of the child being an output variable, to represent the tag associated
|
||||
// with the output variable.
|
||||
Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Only present if the child node is [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] and corresponds
|
||||
// to an output variable of the parent node. The field carries the name of
|
||||
// the output variable.
|
||||
@ -152,13 +182,35 @@ type PlanNode_ChildLink struct {
|
||||
// created for each column that is read by the operator. The corresponding
|
||||
// `variable` fields will be set to the variable names assigned to the
|
||||
// columns.
|
||||
Variable string `protobuf:"bytes,3,opt,name=variable" json:"variable,omitempty"`
|
||||
Variable string `protobuf:"bytes,3,opt,name=variable,proto3" json:"variable,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PlanNode_ChildLink) Reset() { *m = PlanNode_ChildLink{} }
|
||||
func (m *PlanNode_ChildLink) String() string { return proto.CompactTextString(m) }
|
||||
func (*PlanNode_ChildLink) ProtoMessage() {}
|
||||
func (*PlanNode_ChildLink) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
||||
func (m *PlanNode_ChildLink) Reset() { *m = PlanNode_ChildLink{} }
|
||||
func (m *PlanNode_ChildLink) String() string { return proto.CompactTextString(m) }
|
||||
func (*PlanNode_ChildLink) ProtoMessage() {}
|
||||
func (*PlanNode_ChildLink) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_plan_e20f6b3462ee8118, []int{0, 0}
|
||||
}
|
||||
func (m *PlanNode_ChildLink) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PlanNode_ChildLink.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PlanNode_ChildLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PlanNode_ChildLink.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PlanNode_ChildLink) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PlanNode_ChildLink.Merge(dst, src)
|
||||
}
|
||||
func (m *PlanNode_ChildLink) XXX_Size() int {
|
||||
return xxx_messageInfo_PlanNode_ChildLink.Size(m)
|
||||
}
|
||||
func (m *PlanNode_ChildLink) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PlanNode_ChildLink.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PlanNode_ChildLink proto.InternalMessageInfo
|
||||
|
||||
func (m *PlanNode_ChildLink) GetChildIndex() int32 {
|
||||
if m != nil {
|
||||
@ -185,19 +237,41 @@ func (m *PlanNode_ChildLink) GetVariable() string {
|
||||
// `SCALAR` [PlanNode(s)][google.spanner.v1.PlanNode].
|
||||
type PlanNode_ShortRepresentation struct {
|
||||
// A string representation of the expression subtree rooted at this node.
|
||||
Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
|
||||
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// A mapping of (subquery variable name) -> (subquery node id) for cases
|
||||
// where the `description` string of this node references a `SCALAR`
|
||||
// subquery contained in the expression subtree rooted at this node. The
|
||||
// referenced `SCALAR` subquery may not necessarily be a direct child of
|
||||
// this node.
|
||||
Subqueries map[string]int32 `protobuf:"bytes,2,rep,name=subqueries" json:"subqueries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
||||
Subqueries map[string]int32 `protobuf:"bytes,2,rep,name=subqueries,proto3" json:"subqueries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PlanNode_ShortRepresentation) Reset() { *m = PlanNode_ShortRepresentation{} }
|
||||
func (m *PlanNode_ShortRepresentation) String() string { return proto.CompactTextString(m) }
|
||||
func (*PlanNode_ShortRepresentation) ProtoMessage() {}
|
||||
func (*PlanNode_ShortRepresentation) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
|
||||
func (m *PlanNode_ShortRepresentation) Reset() { *m = PlanNode_ShortRepresentation{} }
|
||||
func (m *PlanNode_ShortRepresentation) String() string { return proto.CompactTextString(m) }
|
||||
func (*PlanNode_ShortRepresentation) ProtoMessage() {}
|
||||
func (*PlanNode_ShortRepresentation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_plan_e20f6b3462ee8118, []int{0, 1}
|
||||
}
|
||||
func (m *PlanNode_ShortRepresentation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PlanNode_ShortRepresentation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PlanNode_ShortRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PlanNode_ShortRepresentation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PlanNode_ShortRepresentation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PlanNode_ShortRepresentation.Merge(dst, src)
|
||||
}
|
||||
func (m *PlanNode_ShortRepresentation) XXX_Size() int {
|
||||
return xxx_messageInfo_PlanNode_ShortRepresentation.Size(m)
|
||||
}
|
||||
func (m *PlanNode_ShortRepresentation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PlanNode_ShortRepresentation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PlanNode_ShortRepresentation proto.InternalMessageInfo
|
||||
|
||||
func (m *PlanNode_ShortRepresentation) GetDescription() string {
|
||||
if m != nil {
|
||||
@ -218,13 +292,35 @@ type QueryPlan struct {
|
||||
// The nodes in the query plan. Plan nodes are returned in pre-order starting
|
||||
// with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in
|
||||
// `plan_nodes`.
|
||||
PlanNodes []*PlanNode `protobuf:"bytes,1,rep,name=plan_nodes,json=planNodes" json:"plan_nodes,omitempty"`
|
||||
PlanNodes []*PlanNode `protobuf:"bytes,1,rep,name=plan_nodes,json=planNodes,proto3" json:"plan_nodes,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *QueryPlan) Reset() { *m = QueryPlan{} }
|
||||
func (m *QueryPlan) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryPlan) ProtoMessage() {}
|
||||
func (*QueryPlan) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
||||
func (m *QueryPlan) Reset() { *m = QueryPlan{} }
|
||||
func (m *QueryPlan) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryPlan) ProtoMessage() {}
|
||||
func (*QueryPlan) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_query_plan_e20f6b3462ee8118, []int{1}
|
||||
}
|
||||
func (m *QueryPlan) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QueryPlan.Unmarshal(m, b)
|
||||
}
|
||||
func (m *QueryPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_QueryPlan.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *QueryPlan) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryPlan.Merge(dst, src)
|
||||
}
|
||||
func (m *QueryPlan) XXX_Size() int {
|
||||
return xxx_messageInfo_QueryPlan.Size(m)
|
||||
}
|
||||
func (m *QueryPlan) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryPlan.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryPlan proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryPlan) GetPlanNodes() []*PlanNode {
|
||||
if m != nil {
|
||||
@ -237,13 +333,16 @@ func init() {
|
||||
proto.RegisterType((*PlanNode)(nil), "google.spanner.v1.PlanNode")
|
||||
proto.RegisterType((*PlanNode_ChildLink)(nil), "google.spanner.v1.PlanNode.ChildLink")
|
||||
proto.RegisterType((*PlanNode_ShortRepresentation)(nil), "google.spanner.v1.PlanNode.ShortRepresentation")
|
||||
proto.RegisterMapType((map[string]int32)(nil), "google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry")
|
||||
proto.RegisterType((*QueryPlan)(nil), "google.spanner.v1.QueryPlan")
|
||||
proto.RegisterEnum("google.spanner.v1.PlanNode_Kind", PlanNode_Kind_name, PlanNode_Kind_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/spanner/v1/query_plan.proto", fileDescriptor2) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/spanner/v1/query_plan.proto", fileDescriptor_query_plan_e20f6b3462ee8118)
|
||||
}
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
var fileDescriptor_query_plan_e20f6b3462ee8118 = []byte{
|
||||
// 604 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdd, 0x6e, 0xd3, 0x4c,
|
||||
0x10, 0xfd, 0x9c, 0x26, 0xf9, 0x9a, 0x09, 0x4a, 0xc3, 0xb6, 0xa8, 0x56, 0x40, 0xc2, 0x44, 0x42,
|
||||
|
164
vendor/google.golang.org/genproto/googleapis/spanner/v1/result_set.pb.go
generated
vendored
164
vendor/google.golang.org/genproto/googleapis/spanner/v1/result_set.pb.go
generated
vendored
@ -1,41 +1,69 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/spanner/v1/result_set.proto
|
||||
|
||||
package spanner
|
||||
package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Results from [Read][google.spanner.v1.Spanner.Read] or
|
||||
// [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
|
||||
type ResultSet struct {
|
||||
// Metadata about the result set, such as row type information.
|
||||
Metadata *ResultSetMetadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
|
||||
Metadata *ResultSetMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// Each element in `rows` is a row whose format is defined by
|
||||
// [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
|
||||
// in each row matches the ith field in
|
||||
// [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
|
||||
// encoded based on type as described
|
||||
// [here][google.spanner.v1.TypeCode].
|
||||
Rows []*google_protobuf1.ListValue `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"`
|
||||
Rows []*_struct.ListValue `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
|
||||
// Query plan and execution statistics for the query that produced this
|
||||
// result set. These can be requested by setting
|
||||
// [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
|
||||
Stats *ResultSetStats `protobuf:"bytes,3,opt,name=stats" json:"stats,omitempty"`
|
||||
Stats *ResultSetStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ResultSet) Reset() { *m = ResultSet{} }
|
||||
func (m *ResultSet) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResultSet) ProtoMessage() {}
|
||||
func (*ResultSet) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
||||
func (m *ResultSet) Reset() { *m = ResultSet{} }
|
||||
func (m *ResultSet) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResultSet) ProtoMessage() {}
|
||||
func (*ResultSet) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_result_set_d3beff64c1ecf5a2, []int{0}
|
||||
}
|
||||
func (m *ResultSet) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ResultSet.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ResultSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ResultSet.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ResultSet) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ResultSet.Merge(dst, src)
|
||||
}
|
||||
func (m *ResultSet) XXX_Size() int {
|
||||
return xxx_messageInfo_ResultSet.Size(m)
|
||||
}
|
||||
func (m *ResultSet) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ResultSet.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ResultSet proto.InternalMessageInfo
|
||||
|
||||
func (m *ResultSet) GetMetadata() *ResultSetMetadata {
|
||||
if m != nil {
|
||||
@ -44,7 +72,7 @@ func (m *ResultSet) GetMetadata() *ResultSetMetadata {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResultSet) GetRows() []*google_protobuf1.ListValue {
|
||||
func (m *ResultSet) GetRows() []*_struct.ListValue {
|
||||
if m != nil {
|
||||
return m.Rows
|
||||
}
|
||||
@ -64,7 +92,7 @@ func (m *ResultSet) GetStats() *ResultSetStats {
|
||||
type PartialResultSet struct {
|
||||
// Metadata about the result set, such as row type information.
|
||||
// Only present in the first response.
|
||||
Metadata *ResultSetMetadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
|
||||
Metadata *ResultSetMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// A streamed result set consists of a stream of values, which might
|
||||
// be split into many `PartialResultSet` messages to accommodate
|
||||
// large rows and/or large values. Every N complete values defines a
|
||||
@ -138,11 +166,11 @@ type PartialResultSet struct {
|
||||
// This sequence of `PartialResultSet`s encodes two rows, one
|
||||
// containing the field value `"Hello"`, and a second containing the
|
||||
// field value `"World" = "W" + "orl" + "d"`.
|
||||
Values []*google_protobuf1.Value `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"`
|
||||
Values []*_struct.Value `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
|
||||
// If true, then the final value in [values][google.spanner.v1.PartialResultSet.values] is chunked, and must
|
||||
// be combined with more values from subsequent `PartialResultSet`s
|
||||
// to obtain a complete field value.
|
||||
ChunkedValue bool `protobuf:"varint,3,opt,name=chunked_value,json=chunkedValue" json:"chunked_value,omitempty"`
|
||||
ChunkedValue bool `protobuf:"varint,3,opt,name=chunked_value,json=chunkedValue,proto3" json:"chunked_value,omitempty"`
|
||||
// Streaming calls might be interrupted for a variety of reasons, such
|
||||
// as TCP connection loss. If this occurs, the stream of results can
|
||||
// be resumed by re-sending the original request and including
|
||||
@ -153,13 +181,35 @@ type PartialResultSet struct {
|
||||
// streaming result set. These can be requested by setting
|
||||
// [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] and are sent
|
||||
// only once with the last response in the stream.
|
||||
Stats *ResultSetStats `protobuf:"bytes,5,opt,name=stats" json:"stats,omitempty"`
|
||||
Stats *ResultSetStats `protobuf:"bytes,5,opt,name=stats,proto3" json:"stats,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PartialResultSet) Reset() { *m = PartialResultSet{} }
|
||||
func (m *PartialResultSet) String() string { return proto.CompactTextString(m) }
|
||||
func (*PartialResultSet) ProtoMessage() {}
|
||||
func (*PartialResultSet) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
|
||||
func (m *PartialResultSet) Reset() { *m = PartialResultSet{} }
|
||||
func (m *PartialResultSet) String() string { return proto.CompactTextString(m) }
|
||||
func (*PartialResultSet) ProtoMessage() {}
|
||||
func (*PartialResultSet) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_result_set_d3beff64c1ecf5a2, []int{1}
|
||||
}
|
||||
func (m *PartialResultSet) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PartialResultSet.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PartialResultSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PartialResultSet.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PartialResultSet) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PartialResultSet.Merge(dst, src)
|
||||
}
|
||||
func (m *PartialResultSet) XXX_Size() int {
|
||||
return xxx_messageInfo_PartialResultSet.Size(m)
|
||||
}
|
||||
func (m *PartialResultSet) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PartialResultSet.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PartialResultSet proto.InternalMessageInfo
|
||||
|
||||
func (m *PartialResultSet) GetMetadata() *ResultSetMetadata {
|
||||
if m != nil {
|
||||
@ -168,7 +218,7 @@ func (m *PartialResultSet) GetMetadata() *ResultSetMetadata {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PartialResultSet) GetValues() []*google_protobuf1.Value {
|
||||
func (m *PartialResultSet) GetValues() []*_struct.Value {
|
||||
if m != nil {
|
||||
return m.Values
|
||||
}
|
||||
@ -206,16 +256,38 @@ type ResultSetMetadata struct {
|
||||
// { "name": "UserId", "type": { "code": "INT64" } },
|
||||
// { "name": "UserName", "type": { "code": "STRING" } },
|
||||
// ]
|
||||
RowType *StructType `protobuf:"bytes,1,opt,name=row_type,json=rowType" json:"row_type,omitempty"`
|
||||
RowType *StructType `protobuf:"bytes,1,opt,name=row_type,json=rowType,proto3" json:"row_type,omitempty"`
|
||||
// If the read or SQL query began a transaction as a side-effect, the
|
||||
// information about the new transaction is yielded here.
|
||||
Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction" json:"transaction,omitempty"`
|
||||
Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ResultSetMetadata) Reset() { *m = ResultSetMetadata{} }
|
||||
func (m *ResultSetMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResultSetMetadata) ProtoMessage() {}
|
||||
func (*ResultSetMetadata) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} }
|
||||
func (m *ResultSetMetadata) Reset() { *m = ResultSetMetadata{} }
|
||||
func (m *ResultSetMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResultSetMetadata) ProtoMessage() {}
|
||||
func (*ResultSetMetadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_result_set_d3beff64c1ecf5a2, []int{2}
|
||||
}
|
||||
func (m *ResultSetMetadata) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ResultSetMetadata.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ResultSetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ResultSetMetadata.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ResultSetMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ResultSetMetadata.Merge(dst, src)
|
||||
}
|
||||
func (m *ResultSetMetadata) XXX_Size() int {
|
||||
return xxx_messageInfo_ResultSetMetadata.Size(m)
|
||||
}
|
||||
func (m *ResultSetMetadata) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ResultSetMetadata.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ResultSetMetadata proto.InternalMessageInfo
|
||||
|
||||
func (m *ResultSetMetadata) GetRowType() *StructType {
|
||||
if m != nil {
|
||||
@ -234,7 +306,7 @@ func (m *ResultSetMetadata) GetTransaction() *Transaction {
|
||||
// Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
|
||||
type ResultSetStats struct {
|
||||
// [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
|
||||
QueryPlan *QueryPlan `protobuf:"bytes,1,opt,name=query_plan,json=queryPlan" json:"query_plan,omitempty"`
|
||||
QueryPlan *QueryPlan `protobuf:"bytes,1,opt,name=query_plan,json=queryPlan,proto3" json:"query_plan,omitempty"`
|
||||
// Aggregated statistics from the execution of the query. Only present when
|
||||
// the query is profiled. For example, a query could return the statistics as
|
||||
// follows:
|
||||
@ -244,13 +316,35 @@ type ResultSetStats struct {
|
||||
// "elapsed_time": "1.22 secs",
|
||||
// "cpu_time": "1.19 secs"
|
||||
// }
|
||||
QueryStats *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"`
|
||||
QueryStats *_struct.Struct `protobuf:"bytes,2,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ResultSetStats) Reset() { *m = ResultSetStats{} }
|
||||
func (m *ResultSetStats) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResultSetStats) ProtoMessage() {}
|
||||
func (*ResultSetStats) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{3} }
|
||||
func (m *ResultSetStats) Reset() { *m = ResultSetStats{} }
|
||||
func (m *ResultSetStats) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResultSetStats) ProtoMessage() {}
|
||||
func (*ResultSetStats) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_result_set_d3beff64c1ecf5a2, []int{3}
|
||||
}
|
||||
func (m *ResultSetStats) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ResultSetStats.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ResultSetStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ResultSetStats.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ResultSetStats) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ResultSetStats.Merge(dst, src)
|
||||
}
|
||||
func (m *ResultSetStats) XXX_Size() int {
|
||||
return xxx_messageInfo_ResultSetStats.Size(m)
|
||||
}
|
||||
func (m *ResultSetStats) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ResultSetStats.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ResultSetStats proto.InternalMessageInfo
|
||||
|
||||
func (m *ResultSetStats) GetQueryPlan() *QueryPlan {
|
||||
if m != nil {
|
||||
@ -259,7 +353,7 @@ func (m *ResultSetStats) GetQueryPlan() *QueryPlan {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResultSetStats) GetQueryStats() *google_protobuf1.Struct {
|
||||
func (m *ResultSetStats) GetQueryStats() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.QueryStats
|
||||
}
|
||||
@ -273,9 +367,11 @@ func init() {
|
||||
proto.RegisterType((*ResultSetStats)(nil), "google.spanner.v1.ResultSetStats")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/spanner/v1/result_set.proto", fileDescriptor3) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/spanner/v1/result_set.proto", fileDescriptor_result_set_d3beff64c1ecf5a2)
|
||||
}
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
var fileDescriptor_result_set_d3beff64c1ecf5a2 = []byte{
|
||||
// 501 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x6e, 0x13, 0x31,
|
||||
0x14, 0x85, 0xe5, 0xf4, 0x87, 0xd4, 0x13, 0x10, 0xb5, 0x04, 0x1d, 0x45, 0x05, 0xa5, 0x29, 0x8b,
|
||||
|
733
vendor/google.golang.org/genproto/googleapis/spanner/v1/spanner.pb.go
generated
vendored
733
vendor/google.golang.org/genproto/googleapis/spanner/v1/spanner.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
276
vendor/google.golang.org/genproto/googleapis/spanner/v1/transaction.pb.go
generated
vendored
276
vendor/google.golang.org/genproto/googleapis/spanner/v1/transaction.pb.go
generated
vendored
@ -1,20 +1,26 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/spanner/v1/transaction.proto
|
||||
|
||||
package spanner
|
||||
package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import duration "github.com/golang/protobuf/ptypes/duration"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/duration"
|
||||
import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// # Transactions
|
||||
//
|
||||
//
|
||||
@ -238,27 +244,51 @@ type TransactionOptions struct {
|
||||
// Types that are valid to be assigned to Mode:
|
||||
// *TransactionOptions_ReadWrite_
|
||||
// *TransactionOptions_ReadOnly_
|
||||
Mode isTransactionOptions_Mode `protobuf_oneof:"mode"`
|
||||
Mode isTransactionOptions_Mode `protobuf_oneof:"mode"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TransactionOptions) Reset() { *m = TransactionOptions{} }
|
||||
func (m *TransactionOptions) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionOptions) ProtoMessage() {}
|
||||
func (*TransactionOptions) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
|
||||
func (m *TransactionOptions) Reset() { *m = TransactionOptions{} }
|
||||
func (m *TransactionOptions) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionOptions) ProtoMessage() {}
|
||||
func (*TransactionOptions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_transaction_1d57af638fc1a731, []int{0}
|
||||
}
|
||||
func (m *TransactionOptions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TransactionOptions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TransactionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TransactionOptions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TransactionOptions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TransactionOptions.Merge(dst, src)
|
||||
}
|
||||
func (m *TransactionOptions) XXX_Size() int {
|
||||
return xxx_messageInfo_TransactionOptions.Size(m)
|
||||
}
|
||||
func (m *TransactionOptions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TransactionOptions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TransactionOptions proto.InternalMessageInfo
|
||||
|
||||
type isTransactionOptions_Mode interface {
|
||||
isTransactionOptions_Mode()
|
||||
}
|
||||
|
||||
type TransactionOptions_ReadWrite_ struct {
|
||||
ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,1,opt,name=read_write,json=readWrite,oneof"`
|
||||
ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,1,opt,name=read_write,json=readWrite,proto3,oneof"`
|
||||
}
|
||||
|
||||
type TransactionOptions_ReadOnly_ struct {
|
||||
ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,oneof"`
|
||||
ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*TransactionOptions_ReadWrite_) isTransactionOptions_Mode() {}
|
||||
func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {}
|
||||
|
||||
func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {}
|
||||
|
||||
func (m *TransactionOptions) GetMode() isTransactionOptions_Mode {
|
||||
if m != nil {
|
||||
@ -340,12 +370,12 @@ func _TransactionOptions_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.Mode.(type) {
|
||||
case *TransactionOptions_ReadWrite_:
|
||||
s := proto.Size(x.ReadWrite)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *TransactionOptions_ReadOnly_:
|
||||
s := proto.Size(x.ReadOnly)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -358,12 +388,34 @@ func _TransactionOptions_OneofSizer(msg proto.Message) (n int) {
|
||||
// Message type to initiate a read-write transaction. Currently this
|
||||
// transaction type has no options.
|
||||
type TransactionOptions_ReadWrite struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TransactionOptions_ReadWrite) Reset() { *m = TransactionOptions_ReadWrite{} }
|
||||
func (m *TransactionOptions_ReadWrite) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionOptions_ReadWrite) ProtoMessage() {}
|
||||
func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0, 0} }
|
||||
func (m *TransactionOptions_ReadWrite) Reset() { *m = TransactionOptions_ReadWrite{} }
|
||||
func (m *TransactionOptions_ReadWrite) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionOptions_ReadWrite) ProtoMessage() {}
|
||||
func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_transaction_1d57af638fc1a731, []int{0, 0}
|
||||
}
|
||||
func (m *TransactionOptions_ReadWrite) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TransactionOptions_ReadWrite.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TransactionOptions_ReadWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TransactionOptions_ReadWrite.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TransactionOptions_ReadWrite) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TransactionOptions_ReadWrite.Merge(dst, src)
|
||||
}
|
||||
func (m *TransactionOptions_ReadWrite) XXX_Size() int {
|
||||
return xxx_messageInfo_TransactionOptions_ReadWrite.Size(m)
|
||||
}
|
||||
func (m *TransactionOptions_ReadWrite) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TransactionOptions_ReadWrite.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TransactionOptions_ReadWrite proto.InternalMessageInfo
|
||||
|
||||
// Message type to initiate a read-only transaction.
|
||||
type TransactionOptions_ReadOnly struct {
|
||||
@ -378,39 +430,69 @@ type TransactionOptions_ReadOnly struct {
|
||||
TimestampBound isTransactionOptions_ReadOnly_TimestampBound `protobuf_oneof:"timestamp_bound"`
|
||||
// If true, the Cloud Spanner-selected read timestamp is included in
|
||||
// the [Transaction][google.spanner.v1.Transaction] message that describes the transaction.
|
||||
ReturnReadTimestamp bool `protobuf:"varint,6,opt,name=return_read_timestamp,json=returnReadTimestamp" json:"return_read_timestamp,omitempty"`
|
||||
ReturnReadTimestamp bool `protobuf:"varint,6,opt,name=return_read_timestamp,json=returnReadTimestamp,proto3" json:"return_read_timestamp,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TransactionOptions_ReadOnly) Reset() { *m = TransactionOptions_ReadOnly{} }
|
||||
func (m *TransactionOptions_ReadOnly) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionOptions_ReadOnly) ProtoMessage() {}
|
||||
func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0, 1} }
|
||||
func (m *TransactionOptions_ReadOnly) Reset() { *m = TransactionOptions_ReadOnly{} }
|
||||
func (m *TransactionOptions_ReadOnly) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionOptions_ReadOnly) ProtoMessage() {}
|
||||
func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_transaction_1d57af638fc1a731, []int{0, 1}
|
||||
}
|
||||
func (m *TransactionOptions_ReadOnly) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TransactionOptions_ReadOnly.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TransactionOptions_ReadOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TransactionOptions_ReadOnly.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TransactionOptions_ReadOnly) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TransactionOptions_ReadOnly.Merge(dst, src)
|
||||
}
|
||||
func (m *TransactionOptions_ReadOnly) XXX_Size() int {
|
||||
return xxx_messageInfo_TransactionOptions_ReadOnly.Size(m)
|
||||
}
|
||||
func (m *TransactionOptions_ReadOnly) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TransactionOptions_ReadOnly.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TransactionOptions_ReadOnly proto.InternalMessageInfo
|
||||
|
||||
type isTransactionOptions_ReadOnly_TimestampBound interface {
|
||||
isTransactionOptions_ReadOnly_TimestampBound()
|
||||
}
|
||||
|
||||
type TransactionOptions_ReadOnly_Strong struct {
|
||||
Strong bool `protobuf:"varint,1,opt,name=strong,oneof"`
|
||||
}
|
||||
type TransactionOptions_ReadOnly_MinReadTimestamp struct {
|
||||
MinReadTimestamp *google_protobuf3.Timestamp `protobuf:"bytes,2,opt,name=min_read_timestamp,json=minReadTimestamp,oneof"`
|
||||
}
|
||||
type TransactionOptions_ReadOnly_MaxStaleness struct {
|
||||
MaxStaleness *google_protobuf2.Duration `protobuf:"bytes,3,opt,name=max_staleness,json=maxStaleness,oneof"`
|
||||
}
|
||||
type TransactionOptions_ReadOnly_ReadTimestamp struct {
|
||||
ReadTimestamp *google_protobuf3.Timestamp `protobuf:"bytes,4,opt,name=read_timestamp,json=readTimestamp,oneof"`
|
||||
}
|
||||
type TransactionOptions_ReadOnly_ExactStaleness struct {
|
||||
ExactStaleness *google_protobuf2.Duration `protobuf:"bytes,5,opt,name=exact_staleness,json=exactStaleness,oneof"`
|
||||
Strong bool `protobuf:"varint,1,opt,name=strong,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*TransactionOptions_ReadOnly_Strong) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
type TransactionOptions_ReadOnly_MinReadTimestamp struct {
|
||||
MinReadTimestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=min_read_timestamp,json=minReadTimestamp,proto3,oneof"`
|
||||
}
|
||||
|
||||
type TransactionOptions_ReadOnly_MaxStaleness struct {
|
||||
MaxStaleness *duration.Duration `protobuf:"bytes,3,opt,name=max_staleness,json=maxStaleness,proto3,oneof"`
|
||||
}
|
||||
|
||||
type TransactionOptions_ReadOnly_ReadTimestamp struct {
|
||||
ReadTimestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=read_timestamp,json=readTimestamp,proto3,oneof"`
|
||||
}
|
||||
|
||||
type TransactionOptions_ReadOnly_ExactStaleness struct {
|
||||
ExactStaleness *duration.Duration `protobuf:"bytes,5,opt,name=exact_staleness,json=exactStaleness,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*TransactionOptions_ReadOnly_Strong) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
|
||||
func (*TransactionOptions_ReadOnly_MinReadTimestamp) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
func (*TransactionOptions_ReadOnly_MaxStaleness) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
func (*TransactionOptions_ReadOnly_ReadTimestamp) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
func (*TransactionOptions_ReadOnly_ExactStaleness) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
|
||||
func (*TransactionOptions_ReadOnly_MaxStaleness) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
|
||||
func (*TransactionOptions_ReadOnly_ReadTimestamp) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
|
||||
func (*TransactionOptions_ReadOnly_ExactStaleness) isTransactionOptions_ReadOnly_TimestampBound() {}
|
||||
|
||||
func (m *TransactionOptions_ReadOnly) GetTimestampBound() isTransactionOptions_ReadOnly_TimestampBound {
|
||||
if m != nil {
|
||||
@ -426,28 +508,28 @@ func (m *TransactionOptions_ReadOnly) GetStrong() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *TransactionOptions_ReadOnly) GetMinReadTimestamp() *google_protobuf3.Timestamp {
|
||||
func (m *TransactionOptions_ReadOnly) GetMinReadTimestamp() *timestamp.Timestamp {
|
||||
if x, ok := m.GetTimestampBound().(*TransactionOptions_ReadOnly_MinReadTimestamp); ok {
|
||||
return x.MinReadTimestamp
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransactionOptions_ReadOnly) GetMaxStaleness() *google_protobuf2.Duration {
|
||||
func (m *TransactionOptions_ReadOnly) GetMaxStaleness() *duration.Duration {
|
||||
if x, ok := m.GetTimestampBound().(*TransactionOptions_ReadOnly_MaxStaleness); ok {
|
||||
return x.MaxStaleness
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransactionOptions_ReadOnly) GetReadTimestamp() *google_protobuf3.Timestamp {
|
||||
func (m *TransactionOptions_ReadOnly) GetReadTimestamp() *timestamp.Timestamp {
|
||||
if x, ok := m.GetTimestampBound().(*TransactionOptions_ReadOnly_ReadTimestamp); ok {
|
||||
return x.ReadTimestamp
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransactionOptions_ReadOnly) GetExactStaleness() *google_protobuf2.Duration {
|
||||
func (m *TransactionOptions_ReadOnly) GetExactStaleness() *duration.Duration {
|
||||
if x, ok := m.GetTimestampBound().(*TransactionOptions_ReadOnly_ExactStaleness); ok {
|
||||
return x.ExactStaleness
|
||||
}
|
||||
@ -524,7 +606,7 @@ func _TransactionOptions_ReadOnly_OneofUnmarshaler(msg proto.Message, tag, wire
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf3.Timestamp)
|
||||
msg := new(timestamp.Timestamp)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.TimestampBound = &TransactionOptions_ReadOnly_MinReadTimestamp{msg}
|
||||
return true, err
|
||||
@ -532,7 +614,7 @@ func _TransactionOptions_ReadOnly_OneofUnmarshaler(msg proto.Message, tag, wire
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf2.Duration)
|
||||
msg := new(duration.Duration)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.TimestampBound = &TransactionOptions_ReadOnly_MaxStaleness{msg}
|
||||
return true, err
|
||||
@ -540,7 +622,7 @@ func _TransactionOptions_ReadOnly_OneofUnmarshaler(msg proto.Message, tag, wire
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf3.Timestamp)
|
||||
msg := new(timestamp.Timestamp)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.TimestampBound = &TransactionOptions_ReadOnly_ReadTimestamp{msg}
|
||||
return true, err
|
||||
@ -548,7 +630,7 @@ func _TransactionOptions_ReadOnly_OneofUnmarshaler(msg proto.Message, tag, wire
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_protobuf2.Duration)
|
||||
msg := new(duration.Duration)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.TimestampBound = &TransactionOptions_ReadOnly_ExactStaleness{msg}
|
||||
return true, err
|
||||
@ -562,26 +644,26 @@ func _TransactionOptions_ReadOnly_OneofSizer(msg proto.Message) (n int) {
|
||||
// timestamp_bound
|
||||
switch x := m.TimestampBound.(type) {
|
||||
case *TransactionOptions_ReadOnly_Strong:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case *TransactionOptions_ReadOnly_MinReadTimestamp:
|
||||
s := proto.Size(x.MinReadTimestamp)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *TransactionOptions_ReadOnly_MaxStaleness:
|
||||
s := proto.Size(x.MaxStaleness)
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *TransactionOptions_ReadOnly_ReadTimestamp:
|
||||
s := proto.Size(x.ReadTimestamp)
|
||||
n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *TransactionOptions_ReadOnly_ExactStaleness:
|
||||
s := proto.Size(x.ExactStaleness)
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -608,13 +690,35 @@ type Transaction struct {
|
||||
//
|
||||
// A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
|
||||
// Example: `"2014-10-02T15:01:23.045123456Z"`.
|
||||
ReadTimestamp *google_protobuf3.Timestamp `protobuf:"bytes,2,opt,name=read_timestamp,json=readTimestamp" json:"read_timestamp,omitempty"`
|
||||
ReadTimestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_timestamp,json=readTimestamp,proto3" json:"read_timestamp,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Transaction) Reset() { *m = Transaction{} }
|
||||
func (m *Transaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*Transaction) ProtoMessage() {}
|
||||
func (*Transaction) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} }
|
||||
func (m *Transaction) Reset() { *m = Transaction{} }
|
||||
func (m *Transaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*Transaction) ProtoMessage() {}
|
||||
func (*Transaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_transaction_1d57af638fc1a731, []int{1}
|
||||
}
|
||||
func (m *Transaction) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Transaction.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Transaction) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Transaction.Merge(dst, src)
|
||||
}
|
||||
func (m *Transaction) XXX_Size() int {
|
||||
return xxx_messageInfo_Transaction.Size(m)
|
||||
}
|
||||
func (m *Transaction) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Transaction.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Transaction proto.InternalMessageInfo
|
||||
|
||||
func (m *Transaction) GetId() []byte {
|
||||
if m != nil {
|
||||
@ -623,7 +727,7 @@ func (m *Transaction) GetId() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Transaction) GetReadTimestamp() *google_protobuf3.Timestamp {
|
||||
func (m *Transaction) GetReadTimestamp() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.ReadTimestamp
|
||||
}
|
||||
@ -643,31 +747,57 @@ type TransactionSelector struct {
|
||||
// *TransactionSelector_SingleUse
|
||||
// *TransactionSelector_Id
|
||||
// *TransactionSelector_Begin
|
||||
Selector isTransactionSelector_Selector `protobuf_oneof:"selector"`
|
||||
Selector isTransactionSelector_Selector `protobuf_oneof:"selector"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TransactionSelector) Reset() { *m = TransactionSelector{} }
|
||||
func (m *TransactionSelector) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionSelector) ProtoMessage() {}
|
||||
func (*TransactionSelector) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} }
|
||||
func (m *TransactionSelector) Reset() { *m = TransactionSelector{} }
|
||||
func (m *TransactionSelector) String() string { return proto.CompactTextString(m) }
|
||||
func (*TransactionSelector) ProtoMessage() {}
|
||||
func (*TransactionSelector) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_transaction_1d57af638fc1a731, []int{2}
|
||||
}
|
||||
func (m *TransactionSelector) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TransactionSelector.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TransactionSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TransactionSelector.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TransactionSelector) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TransactionSelector.Merge(dst, src)
|
||||
}
|
||||
func (m *TransactionSelector) XXX_Size() int {
|
||||
return xxx_messageInfo_TransactionSelector.Size(m)
|
||||
}
|
||||
func (m *TransactionSelector) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TransactionSelector.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TransactionSelector proto.InternalMessageInfo
|
||||
|
||||
type isTransactionSelector_Selector interface {
|
||||
isTransactionSelector_Selector()
|
||||
}
|
||||
|
||||
type TransactionSelector_SingleUse struct {
|
||||
SingleUse *TransactionOptions `protobuf:"bytes,1,opt,name=single_use,json=singleUse,oneof"`
|
||||
SingleUse *TransactionOptions `protobuf:"bytes,1,opt,name=single_use,json=singleUse,proto3,oneof"`
|
||||
}
|
||||
|
||||
type TransactionSelector_Id struct {
|
||||
Id []byte `protobuf:"bytes,2,opt,name=id,proto3,oneof"`
|
||||
}
|
||||
|
||||
type TransactionSelector_Begin struct {
|
||||
Begin *TransactionOptions `protobuf:"bytes,3,opt,name=begin,oneof"`
|
||||
Begin *TransactionOptions `protobuf:"bytes,3,opt,name=begin,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*TransactionSelector_SingleUse) isTransactionSelector_Selector() {}
|
||||
func (*TransactionSelector_Id) isTransactionSelector_Selector() {}
|
||||
func (*TransactionSelector_Begin) isTransactionSelector_Selector() {}
|
||||
|
||||
func (*TransactionSelector_Id) isTransactionSelector_Selector() {}
|
||||
|
||||
func (*TransactionSelector_Begin) isTransactionSelector_Selector() {}
|
||||
|
||||
func (m *TransactionSelector) GetSelector() isTransactionSelector_Selector {
|
||||
if m != nil {
|
||||
@ -767,16 +897,16 @@ func _TransactionSelector_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.Selector.(type) {
|
||||
case *TransactionSelector_SingleUse:
|
||||
s := proto.Size(x.SingleUse)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *TransactionSelector_Id:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Id)))
|
||||
n += len(x.Id)
|
||||
case *TransactionSelector_Begin:
|
||||
s := proto.Size(x.Begin)
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -794,9 +924,11 @@ func init() {
|
||||
proto.RegisterType((*TransactionSelector)(nil), "google.spanner.v1.TransactionSelector")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/spanner/v1/transaction.proto", fileDescriptor5) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/spanner/v1/transaction.proto", fileDescriptor_transaction_1d57af638fc1a731)
|
||||
}
|
||||
|
||||
var fileDescriptor5 = []byte{
|
||||
var fileDescriptor_transaction_1d57af638fc1a731 = []byte{
|
||||
// 537 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xd1, 0x8a, 0xd3, 0x40,
|
||||
0x14, 0x86, 0xd3, 0x6e, 0xb7, 0x74, 0x4f, 0xbb, 0xdd, 0xee, 0x2c, 0x8b, 0x35, 0x88, 0x4a, 0x45,
|
||||
|
124
vendor/google.golang.org/genproto/googleapis/spanner/v1/type.pb.go
generated
vendored
124
vendor/google.golang.org/genproto/googleapis/spanner/v1/type.pb.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/spanner/v1/type.proto
|
||||
|
||||
package spanner
|
||||
package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -13,6 +13,12 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// `TypeCode` is used as part of [Type][google.spanner.v1.Type] to
|
||||
// indicate the type of a Cloud Spanner value.
|
||||
//
|
||||
@ -34,6 +40,12 @@ const (
|
||||
TypeCode_FLOAT64 TypeCode = 3
|
||||
// Encoded as `string` in RFC 3339 timestamp format. The time zone
|
||||
// must be present, and must be `"Z"`.
|
||||
//
|
||||
// If the schema has the column option
|
||||
// `allow_commit_timestamp=true`, the placeholder string
|
||||
// `"spanner.commit_timestamp()"` can be used to instruct the system
|
||||
// to insert the commit timestamp associated with the transaction
|
||||
// commit.
|
||||
TypeCode_TIMESTAMP TypeCode = 4
|
||||
// Encoded as `string` in RFC 3339 date format.
|
||||
TypeCode_DATE TypeCode = 5
|
||||
@ -78,25 +90,49 @@ var TypeCode_value = map[string]int32{
|
||||
func (x TypeCode) String() string {
|
||||
return proto.EnumName(TypeCode_name, int32(x))
|
||||
}
|
||||
func (TypeCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
|
||||
func (TypeCode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_type_d02d3ac499dc3799, []int{0}
|
||||
}
|
||||
|
||||
// `Type` indicates the type of a Cloud Spanner value, as might be stored in a
|
||||
// table cell or returned from an SQL query.
|
||||
type Type struct {
|
||||
// Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
|
||||
Code TypeCode `protobuf:"varint,1,opt,name=code,enum=google.spanner.v1.TypeCode" json:"code,omitempty"`
|
||||
Code TypeCode `protobuf:"varint,1,opt,name=code,proto3,enum=google.spanner.v1.TypeCode" json:"code,omitempty"`
|
||||
// If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type`
|
||||
// is the type of the array elements.
|
||||
ArrayElementType *Type `protobuf:"bytes,2,opt,name=array_element_type,json=arrayElementType" json:"array_element_type,omitempty"`
|
||||
ArrayElementType *Type `protobuf:"bytes,2,opt,name=array_element_type,json=arrayElementType,proto3" json:"array_element_type,omitempty"`
|
||||
// If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type`
|
||||
// provides type information for the struct's fields.
|
||||
StructType *StructType `protobuf:"bytes,3,opt,name=struct_type,json=structType" json:"struct_type,omitempty"`
|
||||
StructType *StructType `protobuf:"bytes,3,opt,name=struct_type,json=structType,proto3" json:"struct_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Type) Reset() { *m = Type{} }
|
||||
func (m *Type) String() string { return proto.CompactTextString(m) }
|
||||
func (*Type) ProtoMessage() {}
|
||||
func (*Type) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
|
||||
func (m *Type) Reset() { *m = Type{} }
|
||||
func (m *Type) String() string { return proto.CompactTextString(m) }
|
||||
func (*Type) ProtoMessage() {}
|
||||
func (*Type) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_type_d02d3ac499dc3799, []int{0}
|
||||
}
|
||||
func (m *Type) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Type.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Type.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Type) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Type.Merge(dst, src)
|
||||
}
|
||||
func (m *Type) XXX_Size() int {
|
||||
return xxx_messageInfo_Type.Size(m)
|
||||
}
|
||||
func (m *Type) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Type.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Type proto.InternalMessageInfo
|
||||
|
||||
func (m *Type) GetCode() TypeCode {
|
||||
if m != nil {
|
||||
@ -127,13 +163,35 @@ type StructType struct {
|
||||
// fields in the [StructType][google.spanner.v1.StructType]. In turn, the order of fields
|
||||
// matches the order of columns in a read request, or the order of
|
||||
// fields in the `SELECT` clause of a query.
|
||||
Fields []*StructType_Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
|
||||
Fields []*StructType_Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *StructType) Reset() { *m = StructType{} }
|
||||
func (m *StructType) String() string { return proto.CompactTextString(m) }
|
||||
func (*StructType) ProtoMessage() {}
|
||||
func (*StructType) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} }
|
||||
func (m *StructType) Reset() { *m = StructType{} }
|
||||
func (m *StructType) String() string { return proto.CompactTextString(m) }
|
||||
func (*StructType) ProtoMessage() {}
|
||||
func (*StructType) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_type_d02d3ac499dc3799, []int{1}
|
||||
}
|
||||
func (m *StructType) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StructType.Unmarshal(m, b)
|
||||
}
|
||||
func (m *StructType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_StructType.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *StructType) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StructType.Merge(dst, src)
|
||||
}
|
||||
func (m *StructType) XXX_Size() int {
|
||||
return xxx_messageInfo_StructType.Size(m)
|
||||
}
|
||||
func (m *StructType) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_StructType.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_StructType proto.InternalMessageInfo
|
||||
|
||||
func (m *StructType) GetFields() []*StructType_Field {
|
||||
if m != nil {
|
||||
@ -151,15 +209,37 @@ type StructType_Field struct {
|
||||
// columns might have an empty name (e.g., !"SELECT
|
||||
// UPPER(ColName)"`). Note that a query result can contain
|
||||
// multiple fields with the same name.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The type of the field.
|
||||
Type *Type `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
|
||||
Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *StructType_Field) Reset() { *m = StructType_Field{} }
|
||||
func (m *StructType_Field) String() string { return proto.CompactTextString(m) }
|
||||
func (*StructType_Field) ProtoMessage() {}
|
||||
func (*StructType_Field) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1, 0} }
|
||||
func (m *StructType_Field) Reset() { *m = StructType_Field{} }
|
||||
func (m *StructType_Field) String() string { return proto.CompactTextString(m) }
|
||||
func (*StructType_Field) ProtoMessage() {}
|
||||
func (*StructType_Field) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_type_d02d3ac499dc3799, []int{1, 0}
|
||||
}
|
||||
func (m *StructType_Field) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StructType_Field.Unmarshal(m, b)
|
||||
}
|
||||
func (m *StructType_Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_StructType_Field.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *StructType_Field) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StructType_Field.Merge(dst, src)
|
||||
}
|
||||
func (m *StructType_Field) XXX_Size() int {
|
||||
return xxx_messageInfo_StructType_Field.Size(m)
|
||||
}
|
||||
func (m *StructType_Field) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_StructType_Field.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_StructType_Field proto.InternalMessageInfo
|
||||
|
||||
func (m *StructType_Field) GetName() string {
|
||||
if m != nil {
|
||||
@ -182,9 +262,9 @@ func init() {
|
||||
proto.RegisterEnum("google.spanner.v1.TypeCode", TypeCode_name, TypeCode_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/spanner/v1/type.proto", fileDescriptor6) }
|
||||
func init() { proto.RegisterFile("google/spanner/v1/type.proto", fileDescriptor_type_d02d3ac499dc3799) }
|
||||
|
||||
var fileDescriptor6 = []byte{
|
||||
var fileDescriptor_type_d02d3ac499dc3799 = []byte{
|
||||
// 444 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xd1, 0x8a, 0xd3, 0x40,
|
||||
0x14, 0x86, 0x9d, 0x6d, 0xda, 0x6d, 0x4e, 0x51, 0xc6, 0x81, 0x65, 0xeb, 0xaa, 0x50, 0xd6, 0x9b,
|
||||
|
Reference in New Issue
Block a user