|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: google/spanner/v1/type.proto
-
- package spanner // import "google.golang.org/genproto/googleapis/spanner/v1"
-
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
-
- // 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
-
- // `TypeCode` is used as part of [Type][google.spanner.v1.Type] to
- // indicate the type of a Cloud Spanner value.
- //
- // Each legal value of a type can be encoded to or decoded from a JSON
- // value, using the encodings described below. All Cloud Spanner values can
- // be `null`, regardless of type; `null`s are always encoded as a JSON
- // `null`.
- type TypeCode int32
-
- const (
- // Not specified.
- TypeCode_TYPE_CODE_UNSPECIFIED TypeCode = 0
- // Encoded as JSON `true` or `false`.
- TypeCode_BOOL TypeCode = 1
- // Encoded as `string`, in decimal format.
- TypeCode_INT64 TypeCode = 2
- // Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
- // `"-Infinity"`.
- 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
- // Encoded as `string`.
- TypeCode_STRING TypeCode = 6
- // Encoded as a base64-encoded `string`, as described in RFC 4648,
- // section 4.
- TypeCode_BYTES TypeCode = 7
- // Encoded as `list`, where the list elements are represented
- // according to
- // [array_element_type][google.spanner.v1.Type.array_element_type].
- TypeCode_ARRAY TypeCode = 8
- // Encoded as `list`, where list element `i` is represented according
- // to [struct_type.fields[i]][google.spanner.v1.StructType.fields].
- TypeCode_STRUCT TypeCode = 9
- )
-
- var TypeCode_name = map[int32]string{
- 0: "TYPE_CODE_UNSPECIFIED",
- 1: "BOOL",
- 2: "INT64",
- 3: "FLOAT64",
- 4: "TIMESTAMP",
- 5: "DATE",
- 6: "STRING",
- 7: "BYTES",
- 8: "ARRAY",
- 9: "STRUCT",
- }
- var TypeCode_value = map[string]int32{
- "TYPE_CODE_UNSPECIFIED": 0,
- "BOOL": 1,
- "INT64": 2,
- "FLOAT64": 3,
- "TIMESTAMP": 4,
- "DATE": 5,
- "STRING": 6,
- "BYTES": 7,
- "ARRAY": 8,
- "STRUCT": 9,
- }
-
- func (x TypeCode) String() string {
- return proto.EnumName(TypeCode_name, int32(x))
- }
- func (TypeCode) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_type_fd75b23a4d0055d4, []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,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,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,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 fileDescriptor_type_fd75b23a4d0055d4, []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 {
- return m.Code
- }
- return TypeCode_TYPE_CODE_UNSPECIFIED
- }
-
- func (m *Type) GetArrayElementType() *Type {
- if m != nil {
- return m.ArrayElementType
- }
- return nil
- }
-
- func (m *Type) GetStructType() *StructType {
- if m != nil {
- return m.StructType
- }
- return nil
- }
-
- // `StructType` defines the fields of a
- // [STRUCT][google.spanner.v1.TypeCode.STRUCT] type.
- type StructType struct {
- // The list of fields that make up this struct. Order is
- // significant, because values of this struct type are represented as
- // lists, where the order of field values matches the order of
- // 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,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 fileDescriptor_type_fd75b23a4d0055d4, []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 {
- return m.Fields
- }
- return nil
- }
-
- // Message representing a single field of a struct.
- type StructType_Field struct {
- // The name of the field. For reads, this is the column name. For
- // SQL queries, it is the column alias (e.g., `"Word"` in the
- // query `"SELECT 'hello' AS Word"`), or the column name (e.g.,
- // `"ColName"` in the query `"SELECT ColName FROM Table"`). Some
- // 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,proto3" json:"name,omitempty"`
- // The type of the field.
- 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 fileDescriptor_type_fd75b23a4d0055d4, []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 {
- return m.Name
- }
- return ""
- }
-
- func (m *StructType_Field) GetType() *Type {
- if m != nil {
- return m.Type
- }
- return nil
- }
-
- func init() {
- proto.RegisterType((*Type)(nil), "google.spanner.v1.Type")
- proto.RegisterType((*StructType)(nil), "google.spanner.v1.StructType")
- proto.RegisterType((*StructType_Field)(nil), "google.spanner.v1.StructType.Field")
- proto.RegisterEnum("google.spanner.v1.TypeCode", TypeCode_name, TypeCode_value)
- }
-
- func init() { proto.RegisterFile("google/spanner/v1/type.proto", fileDescriptor_type_fd75b23a4d0055d4) }
-
- var fileDescriptor_type_fd75b23a4d0055d4 = []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,
- 0xa2, 0x90, 0xd0, 0x2a, 0x22, 0x2c, 0x08, 0x69, 0x3a, 0x5d, 0x03, 0xbb, 0x6d, 0x48, 0x66, 0x17,
- 0x2a, 0x85, 0x32, 0xb6, 0x63, 0x28, 0xa4, 0x33, 0x21, 0xc9, 0x2e, 0xf4, 0x25, 0xbc, 0xd0, 0xb7,
- 0xf0, 0x21, 0x7c, 0x00, 0x9f, 0x4a, 0x66, 0x92, 0xaa, 0xb0, 0x2a, 0xde, 0x9d, 0xe4, 0xfb, 0xbf,
- 0x33,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