| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/spanner/v1/type.proto |
| 20 |
|
| 21 |
package spannerpb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
reflect "reflect" |
| 28 |
sync "sync" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// `TypeCode` is used as part of [Type][google.spanner.v1.Type] to |
| 39 |
// indicate the type of a Cloud Spanner value. |
| 40 |
// |
| 41 |
// Each legal value of a type can be encoded to or decoded from a JSON |
| 42 |
// value, using the encodings described below. All Cloud Spanner values can |
| 43 |
// be `null`, regardless of type; `null`s are always encoded as a JSON |
| 44 |
// `null`. |
| 45 |
type TypeCode int32 |
| 46 |
|
| 47 |
const ( |
| 48 |
// Not specified. |
| 49 |
TypeCode_TYPE_CODE_UNSPECIFIED TypeCode = 0 |
| 50 |
// Encoded as JSON `true` or `false`. |
| 51 |
TypeCode_BOOL TypeCode = 1 |
| 52 |
// Encoded as `string`, in decimal format. |
| 53 |
TypeCode_INT64 TypeCode = 2 |
| 54 |
// Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or |
| 55 |
// `"-Infinity"`. |
| 56 |
TypeCode_FLOAT64 TypeCode = 3 |
| 57 |
// Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or |
| 58 |
// `"-Infinity"`. |
| 59 |
TypeCode_FLOAT32 TypeCode = 15 |
| 60 |
// Encoded as `string` in RFC 3339 timestamp format. The time zone |
| 61 |
// must be present, and must be `"Z"`. |
| 62 |
// |
| 63 |
// If the schema has the column option |
| 64 |
// `allow_commit_timestamp=true`, the placeholder string |
| 65 |
// `"spanner.commit_timestamp()"` can be used to instruct the system |
| 66 |
// to insert the commit timestamp associated with the transaction |
| 67 |
// commit. |
| 68 |
TypeCode_TIMESTAMP TypeCode = 4 |
| 69 |
// Encoded as `string` in RFC 3339 date format. |
| 70 |
TypeCode_DATE TypeCode = 5 |
| 71 |
// Encoded as `string`. |
| 72 |
TypeCode_STRING TypeCode = 6 |
| 73 |
// Encoded as a base64-encoded `string`, as described in RFC 4648, |
| 74 |
// section 4. |
| 75 |
TypeCode_BYTES TypeCode = 7 |
| 76 |
// Encoded as `list`, where the list elements are represented |
| 77 |
// according to |
| 78 |
// [array_element_type][google.spanner.v1.Type.array_element_type]. |
| 79 |
TypeCode_ARRAY TypeCode = 8 |
| 80 |
// Encoded as `list`, where list element `i` is represented according |
| 81 |
// to [struct_type.fields[i]][google.spanner.v1.StructType.fields]. |
| 82 |
TypeCode_STRUCT TypeCode = 9 |
| 83 |
// Encoded as `string`, in decimal format or scientific notation format. |
| 84 |
// Decimal format: |
| 85 |
// `[+-]Digits[.[Digits]]` or |
| 86 |
// `[+-][Digits].Digits` |
| 87 |
// |
| 88 |
// Scientific notation: |
| 89 |
// `[+-]Digits[.[Digits]][ExponentIndicator[+-]Digits]` or |
| 90 |
// `[+-][Digits].Digits[ExponentIndicator[+-]Digits]` |
| 91 |
// (ExponentIndicator is `"e"` or `"E"`) |
| 92 |
TypeCode_NUMERIC TypeCode = 10 |
| 93 |
// Encoded as a JSON-formatted `string` as described in RFC 7159. The |
| 94 |
// following rules are applied when parsing JSON input: |
| 95 |
// |
| 96 |
// - Whitespace characters are not preserved. |
| 97 |
// - If a JSON object has duplicate keys, only the first key is preserved. |
| 98 |
// - Members of a JSON object are not guaranteed to have their order |
| 99 |
// preserved. |
| 100 |
// - JSON array elements will have their order preserved. |
| 101 |
TypeCode_JSON TypeCode = 11 |
| 102 |
// Encoded as a base64-encoded `string`, as described in RFC 4648, |
| 103 |
// section 4. |
| 104 |
TypeCode_PROTO TypeCode = 13 |
| 105 |
// Encoded as `string`, in decimal format. |
| 106 |
TypeCode_ENUM TypeCode = 14 |
| 107 |
// Encoded as `string`, in `ISO8601` duration format - |
| 108 |
// `P[n]Y[n]M[n]DT[n]H[n]M[n[.fraction]]S` |
| 109 |
// where `n` is an integer. |
| 110 |
// For example, `P1Y2M3DT4H5M6.5S` represents time duration of 1 year, 2 |
| 111 |
// months, 3 days, 4 hours, 5 minutes, and 6.5 seconds. |
| 112 |
TypeCode_INTERVAL TypeCode = 16 |
| 113 |
// Encoded as `string`, in lower-case hexa-decimal format, as described |
| 114 |
// in RFC 9562, section 4. |
| 115 |
TypeCode_UUID TypeCode = 17 |
| 116 |
) |
| 117 |
|
| 118 |
// Enum value maps for TypeCode. |
| 119 |
var ( |
| 120 |
TypeCode_name = map[int32]string{ |
| 121 |
0: "TYPE_CODE_UNSPECIFIED", |
| 122 |
1: "BOOL", |
| 123 |
2: "INT64", |
| 124 |
3: "FLOAT64", |
| 125 |
15: "FLOAT32", |
| 126 |
4: "TIMESTAMP", |
| 127 |
5: "DATE", |
| 128 |
6: "STRING", |
| 129 |
7: "BYTES", |
| 130 |
8: "ARRAY", |
| 131 |
9: "STRUCT", |
| 132 |
10: "NUMERIC", |
| 133 |
11: "JSON", |
| 134 |
13: "PROTO", |
| 135 |
14: "ENUM", |
| 136 |
16: "INTERVAL", |
| 137 |
17: "UUID", |
| 138 |
} |
| 139 |
TypeCode_value = map[string]int32{ |
| 140 |
"TYPE_CODE_UNSPECIFIED": 0, |
| 141 |
"BOOL": 1, |
| 142 |
"INT64": 2, |
| 143 |
"FLOAT64": 3, |
| 144 |
"FLOAT32": 15, |
| 145 |
"TIMESTAMP": 4, |
| 146 |
"DATE": 5, |
| 147 |
"STRING": 6, |
| 148 |
"BYTES": 7, |
| 149 |
"ARRAY": 8, |
| 150 |
"STRUCT": 9, |
| 151 |
"NUMERIC": 10, |
| 152 |
"JSON": 11, |
| 153 |
"PROTO": 13, |
| 154 |
"ENUM": 14, |
| 155 |
"INTERVAL": 16, |
| 156 |
"UUID": 17, |
| 157 |
} |
| 158 |
) |
| 159 |
|
| 160 |
func (x TypeCode) Enum() *TypeCode { |
| 161 |
p := new(TypeCode) |
| 162 |
*p = x |
| 163 |
return p |
| 164 |
} |
| 165 |
|
| 166 |
func (x TypeCode) String() string { |
| 167 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 168 |
} |
| 169 |
|
| 170 |
func (TypeCode) Descriptor() protoreflect.EnumDescriptor { |
| 171 |
return file_google_spanner_v1_type_proto_enumTypes[0].Descriptor() |
| 172 |
} |
| 173 |
|
| 174 |
func (TypeCode) Type() protoreflect.EnumType { |
| 175 |
return &file_google_spanner_v1_type_proto_enumTypes[0] |
| 176 |
} |
| 177 |
|
| 178 |
func (x TypeCode) Number() protoreflect.EnumNumber { |
| 179 |
return protoreflect.EnumNumber(x) |
| 180 |
} |
| 181 |
|
| 182 |
// Deprecated: Use TypeCode.Descriptor instead. |
| 183 |
func (TypeCode) EnumDescriptor() ([]byte, []int) { |
| 184 |
return file_google_spanner_v1_type_proto_rawDescGZIP(), []int{0} |
| 185 |
} |
| 186 |
|
| 187 |
// `TypeAnnotationCode` is used as a part of [Type][google.spanner.v1.Type] to |
| 188 |
// disambiguate SQL types that should be used for a given Cloud Spanner value. |
| 189 |
// Disambiguation is needed because the same Cloud Spanner type can be mapped to |
| 190 |
// different SQL types depending on SQL dialect. TypeAnnotationCode doesn't |
| 191 |
// affect the way value is serialized. |
| 192 |
type TypeAnnotationCode int32 |
| 193 |
|
| 194 |
const ( |
| 195 |
// Not specified. |
| 196 |
TypeAnnotationCode_TYPE_ANNOTATION_CODE_UNSPECIFIED TypeAnnotationCode = 0 |
| 197 |
// PostgreSQL compatible NUMERIC type. This annotation needs to be applied to |
| 198 |
// [Type][google.spanner.v1.Type] instances having |
| 199 |
// [NUMERIC][google.spanner.v1.TypeCode.NUMERIC] type code to specify that |
| 200 |
// values of this type should be treated as PostgreSQL NUMERIC values. |
| 201 |
// Currently this annotation is always needed for |
| 202 |
// [NUMERIC][google.spanner.v1.TypeCode.NUMERIC] when a client interacts with |
| 203 |
// PostgreSQL-enabled Spanner databases. |
| 204 |
TypeAnnotationCode_PG_NUMERIC TypeAnnotationCode = 2 |
| 205 |
// PostgreSQL compatible JSONB type. This annotation needs to be applied to |
| 206 |
// [Type][google.spanner.v1.Type] instances having |
| 207 |
// [JSON][google.spanner.v1.TypeCode.JSON] type code to specify that values of |
| 208 |
// this type should be treated as PostgreSQL JSONB values. Currently this |
| 209 |
// annotation is always needed for [JSON][google.spanner.v1.TypeCode.JSON] |
| 210 |
// when a client interacts with PostgreSQL-enabled Spanner databases. |
| 211 |
TypeAnnotationCode_PG_JSONB TypeAnnotationCode = 3 |
| 212 |
// PostgreSQL compatible OID type. This annotation can be used by a client |
| 213 |
// interacting with PostgreSQL-enabled Spanner database to specify that a |
| 214 |
// value should be treated using the semantics of the OID type. |
| 215 |
TypeAnnotationCode_PG_OID TypeAnnotationCode = 4 |
| 216 |
) |
| 217 |
|
| 218 |
// Enum value maps for TypeAnnotationCode. |
| 219 |
var ( |
| 220 |
TypeAnnotationCode_name = map[int32]string{ |
| 221 |
0: "TYPE_ANNOTATION_CODE_UNSPECIFIED", |
| 222 |
2: "PG_NUMERIC", |
| 223 |
3: "PG_JSONB", |
| 224 |
4: "PG_OID", |
| 225 |
} |
| 226 |
TypeAnnotationCode_value = map[string]int32{ |
| 227 |
"TYPE_ANNOTATION_CODE_UNSPECIFIED": 0, |
| 228 |
"PG_NUMERIC": 2, |
| 229 |
"PG_JSONB": 3, |
| 230 |
"PG_OID": 4, |
| 231 |
} |
| 232 |
) |
| 233 |
|
| 234 |
func (x TypeAnnotationCode) Enum() *TypeAnnotationCode { |
| 235 |
p := new(TypeAnnotationCode) |
| 236 |
*p = x |
| 237 |
return p |
| 238 |
} |
| 239 |
|
| 240 |
func (x TypeAnnotationCode) String() string { |
| 241 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 242 |
} |
| 243 |
|
| 244 |
func (TypeAnnotationCode) Descriptor() protoreflect.EnumDescriptor { |
| 245 |
return file_google_spanner_v1_type_proto_enumTypes[1].Descriptor() |
| 246 |
} |
| 247 |
|
| 248 |
func (TypeAnnotationCode) Type() protoreflect.EnumType { |
| 249 |
return &file_google_spanner_v1_type_proto_enumTypes[1] |
| 250 |
} |
| 251 |
|
| 252 |
func (x TypeAnnotationCode) Number() protoreflect.EnumNumber { |
| 253 |
return protoreflect.EnumNumber(x) |
| 254 |
} |
| 255 |
|
| 256 |
// Deprecated: Use TypeAnnotationCode.Descriptor instead. |
| 257 |
func (TypeAnnotationCode) EnumDescriptor() ([]byte, []int) { |
| 258 |
return file_google_spanner_v1_type_proto_rawDescGZIP(), []int{1} |
| 259 |
} |
| 260 |
|
| 261 |
// `Type` indicates the type of a Cloud Spanner value, as might be stored in a |
| 262 |
// table cell or returned from an SQL query. |
| 263 |
type Type struct { |
| 264 |
state protoimpl.MessageState |
| 265 |
sizeCache protoimpl.SizeCache |
| 266 |
unknownFields protoimpl.UnknownFields |
| 267 |
|
| 268 |
// Required. The [TypeCode][google.spanner.v1.TypeCode] for this type. |
| 269 |
Code TypeCode `protobuf:"varint,1,opt,name=code,proto3,enum=google.spanner.v1.TypeCode" json:"code,omitempty"` |
| 270 |
// If [code][google.spanner.v1.Type.code] == |
| 271 |
// [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` is the |
| 272 |
// type of the array elements. |
| 273 |
ArrayElementType *Type `protobuf:"bytes,2,opt,name=array_element_type,json=arrayElementType,proto3" json:"array_element_type,omitempty"` |
| 274 |
// If [code][google.spanner.v1.Type.code] == |
| 275 |
// [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` provides |
| 276 |
// type information for the struct's fields. |
| 277 |
StructType *StructType `protobuf:"bytes,3,opt,name=struct_type,json=structType,proto3" json:"struct_type,omitempty"` |
| 278 |
// The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that |
| 279 |
// disambiguates SQL type that Spanner will use to represent values of this |
| 280 |
// type during query processing. This is necessary for some type codes because |
| 281 |
// a single [TypeCode][google.spanner.v1.TypeCode] can be mapped to different |
| 282 |
// SQL types depending on the SQL dialect. |
| 283 |
// [type_annotation][google.spanner.v1.Type.type_annotation] typically is not |
| 284 |
// needed to process the content of a value (it doesn't affect serialization) |
| 285 |
// and clients can ignore it on the read path. |
| 286 |
TypeAnnotation TypeAnnotationCode `protobuf:"varint,4,opt,name=type_annotation,json=typeAnnotation,proto3,enum=google.spanner.v1.TypeAnnotationCode" json:"type_annotation,omitempty"` |
| 287 |
// If [code][google.spanner.v1.Type.code] == |
| 288 |
// [PROTO][google.spanner.v1.TypeCode.PROTO] or |
| 289 |
// [code][google.spanner.v1.Type.code] == |
| 290 |
// [ENUM][google.spanner.v1.TypeCode.ENUM], then `proto_type_fqn` is the fully |
| 291 |
// qualified name of the proto type representing the proto/enum definition. |
| 292 |
ProtoTypeFqn string `protobuf:"bytes,5,opt,name=proto_type_fqn,json=protoTypeFqn,proto3" json:"proto_type_fqn,omitempty"` |
| 293 |
} |
| 294 |
|
| 295 |
func (x *Type) Reset() { |
| 296 |
*x = Type{} |
| 297 |
mi := &file_google_spanner_v1_type_proto_msgTypes[0] |
| 298 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 299 |
ms.StoreMessageInfo(mi) |
| 300 |
} |
| 301 |
|
| 302 |
func (x *Type) String() string { |
| 303 |
return protoimpl.X.MessageStringOf(x) |
| 304 |
} |
| 305 |
|
| 306 |
func (*Type) ProtoMessage() {} |
| 307 |
|
| 308 |
func (x *Type) ProtoReflect() protoreflect.Message { |
| 309 |
mi := &file_google_spanner_v1_type_proto_msgTypes[0] |
| 310 |
if x != nil { |
| 311 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 312 |
if ms.LoadMessageInfo() == nil { |
| 313 |
ms.StoreMessageInfo(mi) |
| 314 |
} |
| 315 |
return ms |
| 316 |
} |
| 317 |
return mi.MessageOf(x) |
| 318 |
} |
| 319 |
|
| 320 |
// Deprecated: Use Type.ProtoReflect.Descriptor instead. |
| 321 |
func (*Type) Descriptor() ([]byte, []int) { |
| 322 |
return file_google_spanner_v1_type_proto_rawDescGZIP(), []int{0} |
| 323 |
} |
| 324 |
|
| 325 |
func (x *Type) GetCode() TypeCode { |
| 326 |
if x != nil { |
| 327 |
return x.Code |
| 328 |
} |
| 329 |
return TypeCode_TYPE_CODE_UNSPECIFIED |
| 330 |
} |
| 331 |
|
| 332 |
func (x *Type) GetArrayElementType() *Type { |
| 333 |
if x != nil { |
| 334 |
return x.ArrayElementType |
| 335 |
} |
| 336 |
return nil |
| 337 |
} |
| 338 |
|
| 339 |
func (x *Type) GetStructType() *StructType { |
| 340 |
if x != nil { |
| 341 |
return x.StructType |
| 342 |
} |
| 343 |
return nil |
| 344 |
} |
| 345 |
|
| 346 |
func (x *Type) GetTypeAnnotation() TypeAnnotationCode { |
| 347 |
if x != nil { |
| 348 |
return x.TypeAnnotation |
| 349 |
} |
| 350 |
return TypeAnnotationCode_TYPE_ANNOTATION_CODE_UNSPECIFIED |
| 351 |
} |
| 352 |
|
| 353 |
func (x *Type) GetProtoTypeFqn() string { |
| 354 |
if x != nil { |
| 355 |
return x.ProtoTypeFqn |
| 356 |
} |
| 357 |
return "" |
| 358 |
} |
| 359 |
|
| 360 |
// `StructType` defines the fields of a |
| 361 |
// [STRUCT][google.spanner.v1.TypeCode.STRUCT] type. |
| 362 |
type StructType struct { |
| 363 |
state protoimpl.MessageState |
| 364 |
sizeCache protoimpl.SizeCache |
| 365 |
unknownFields protoimpl.UnknownFields |
| 366 |
|
| 367 |
// The list of fields that make up this struct. Order is |
| 368 |
// significant, because values of this struct type are represented as |
| 369 |
// lists, where the order of field values matches the order of |
| 370 |
// fields in the [StructType][google.spanner.v1.StructType]. In turn, the |
| 371 |
// order of fields matches the order of columns in a read request, or the |
| 372 |
// order of fields in the `SELECT` clause of a query. |
| 373 |
Fields []*StructType_Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` |
| 374 |
} |
| 375 |
|
| 376 |
func (x *StructType) Reset() { |
| 377 |
*x = StructType{} |
| 378 |
mi := &file_google_spanner_v1_type_proto_msgTypes[1] |
| 379 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 380 |
ms.StoreMessageInfo(mi) |
| 381 |
} |
| 382 |
|
| 383 |
func (x *StructType) String() string { |
| 384 |
return protoimpl.X.MessageStringOf(x) |
| 385 |
} |
| 386 |
|
| 387 |
func (*StructType) ProtoMessage() {} |
| 388 |
|
| 389 |
func (x *StructType) ProtoReflect() protoreflect.Message { |
| 390 |
mi := &file_google_spanner_v1_type_proto_msgTypes[1] |
| 391 |
if x != nil { |
| 392 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 393 |
if ms.LoadMessageInfo() == nil { |
| 394 |
ms.StoreMessageInfo(mi) |
| 395 |
} |
| 396 |
return ms |
| 397 |
} |
| 398 |
return mi.MessageOf(x) |
| 399 |
} |
| 400 |
|
| 401 |
// Deprecated: Use StructType.ProtoReflect.Descriptor instead. |
| 402 |
func (*StructType) Descriptor() ([]byte, []int) { |
| 403 |
return file_google_spanner_v1_type_proto_rawDescGZIP(), []int{1} |
| 404 |
} |
| 405 |
|
| 406 |
func (x *StructType) GetFields() []*StructType_Field { |
| 407 |
if x != nil { |
| 408 |
return x.Fields |
| 409 |
} |
| 410 |
return nil |
| 411 |
} |
| 412 |
|
| 413 |
// Message representing a single field of a struct. |
| 414 |
type StructType_Field struct { |
| 415 |
state protoimpl.MessageState |
| 416 |
sizeCache protoimpl.SizeCache |
| 417 |
unknownFields protoimpl.UnknownFields |
| 418 |
|
| 419 |
// The name of the field. For reads, this is the column name. For |
| 420 |
// SQL queries, it is the column alias (e.g., `"Word"` in the |
| 421 |
// query `"SELECT 'hello' AS Word"`), or the column name (e.g., |
| 422 |
// `"ColName"` in the query `"SELECT ColName FROM Table"`). Some |
| 423 |
// columns might have an empty name (e.g., `"SELECT |
| 424 |
// UPPER(ColName)"`). Note that a query result can contain |
| 425 |
// multiple fields with the same name. |
| 426 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 427 |
// The type of the field. |
| 428 |
Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` |
| 429 |
} |
| 430 |
|
| 431 |
func (x *StructType_Field) Reset() { |
| 432 |
*x = StructType_Field{} |
| 433 |
mi := &file_google_spanner_v1_type_proto_msgTypes[2] |
| 434 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 435 |
ms.StoreMessageInfo(mi) |
| 436 |
} |
| 437 |
|
| 438 |
func (x *StructType_Field) String() string { |
| 439 |
return protoimpl.X.MessageStringOf(x) |
| 440 |
} |
| 441 |
|
| 442 |
func (*StructType_Field) ProtoMessage() {} |
| 443 |
|
| 444 |
func (x *StructType_Field) ProtoReflect() protoreflect.Message { |
| 445 |
mi := &file_google_spanner_v1_type_proto_msgTypes[2] |
| 446 |
if x != nil { |
| 447 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 448 |
if ms.LoadMessageInfo() == nil { |
| 449 |
ms.StoreMessageInfo(mi) |
| 450 |
} |
| 451 |
return ms |
| 452 |
} |
| 453 |
return mi.MessageOf(x) |
| 454 |
} |
| 455 |
|
| 456 |
// Deprecated: Use StructType_Field.ProtoReflect.Descriptor instead. |
| 457 |
func (*StructType_Field) Descriptor() ([]byte, []int) { |
| 458 |
return file_google_spanner_v1_type_proto_rawDescGZIP(), []int{1, 0} |
| 459 |
} |
| 460 |
|
| 461 |
func (x *StructType_Field) GetName() string { |
| 462 |
if x != nil { |
| 463 |
return x.Name |
| 464 |
} |
| 465 |
return "" |
| 466 |
} |
| 467 |
|
| 468 |
func (x *StructType_Field) GetType() *Type { |
| 469 |
if x != nil { |
| 470 |
return x.Type |
| 471 |
} |
| 472 |
return nil |
| 473 |
} |
| 474 |
|
| 475 |
var File_google_spanner_v1_type_proto protoreflect.FileDescriptor |
| 476 |
|
| 477 |
var file_google_spanner_v1_type_proto_rawDesc = []byte{ |
| 478 |
0x0a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, |
| 479 |
0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, |
| 480 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, |
| 481 |
0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, |
| 482 |
0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, |
| 483 |
0x74, 0x6f, 0x22, 0xb9, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x63, |
| 484 |
0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 485 |
0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, |
| 486 |
0x70, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x63, 0x6f, 0x64, |
| 487 |
0x65, 0x12, 0x45, 0x0a, 0x12, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x65, 0x6c, 0x65, 0x6d, 0x65, |
| 488 |
0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, |
| 489 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, |
| 490 |
0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x61, 0x72, 0x72, 0x61, 0x79, 0x45, 0x6c, 0x65, |
| 491 |
0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x75, |
| 492 |
0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, |
| 493 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, |
| 494 |
0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x74, |
| 495 |
0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4e, 0x0a, 0x0f, 0x74, 0x79, 0x70, 0x65, |
| 496 |
0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 497 |
0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, |
| 498 |
0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, |
| 499 |
0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x0e, 0x74, 0x79, 0x70, 0x65, 0x41, 0x6e, |
| 500 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x74, |
| 501 |
0x6f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x66, 0x71, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, |
| 502 |
0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x46, 0x71, 0x6e, 0x22, 0x93, |
| 503 |
0x01, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, |
| 504 |
0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, |
| 505 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, |
| 506 |
0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x46, 0x69, 0x65, |
| 507 |
0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x48, 0x0a, 0x05, 0x46, 0x69, |
| 508 |
0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 509 |
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, |
| 510 |
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, |
| 511 |
0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, |
| 512 |
0x74, 0x79, 0x70, 0x65, 0x2a, 0xdf, 0x01, 0x0a, 0x08, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x64, |
| 513 |
0x65, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, |
| 514 |
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, |
| 515 |
0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, |
| 516 |
0x02, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x03, 0x12, 0x0b, |
| 517 |
0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x0f, 0x12, 0x0d, 0x0a, 0x09, 0x54, |
| 518 |
0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, |
| 519 |
0x54, 0x45, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x06, |
| 520 |
0x12, 0x09, 0x0a, 0x05, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x41, |
| 521 |
0x52, 0x52, 0x41, 0x59, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, |
| 522 |
0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x55, 0x4d, 0x45, 0x52, 0x49, 0x43, 0x10, 0x0a, 0x12, |
| 523 |
0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x0b, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x52, 0x4f, |
| 524 |
0x54, 0x4f, 0x10, 0x0d, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x0e, 0x12, 0x0c, |
| 525 |
0x0a, 0x08, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x10, 0x10, 0x12, 0x08, 0x0a, 0x04, |
| 526 |
0x55, 0x55, 0x49, 0x44, 0x10, 0x11, 0x2a, 0x64, 0x0a, 0x12, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6e, |
| 527 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x20, |
| 528 |
0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, |
| 529 |
0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, |
| 530 |
0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x47, 0x5f, 0x4e, 0x55, 0x4d, 0x45, 0x52, 0x49, 0x43, |
| 531 |
0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x47, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x10, 0x03, |
| 532 |
0x12, 0x0a, 0x0a, 0x06, 0x50, 0x47, 0x5f, 0x4f, 0x49, 0x44, 0x10, 0x04, 0x42, 0xac, 0x01, 0x0a, |
| 533 |
0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x70, 0x61, 0x6e, |
| 534 |
0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x74, |
| 535 |
0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 536 |
0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, |
| 537 |
0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x70, 0x62, |
| 538 |
0x3b, 0x73, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x17, 0x47, 0x6f, 0x6f, |
| 539 |
0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, |
| 540 |
0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, |
| 541 |
0x6f, 0x75, 0x64, 0x5c, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, |
| 542 |
0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, |
| 543 |
0x53, 0x70, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, |
| 544 |
0x74, 0x6f, 0x33, |
| 545 |
} |
| 546 |
|
| 547 |
var ( |
| 548 |
file_google_spanner_v1_type_proto_rawDescOnce sync.Once |
| 549 |
file_google_spanner_v1_type_proto_rawDescData = file_google_spanner_v1_type_proto_rawDesc |
| 550 |
) |
| 551 |
|
| 552 |
func file_google_spanner_v1_type_proto_rawDescGZIP() []byte { |
| 553 |
file_google_spanner_v1_type_proto_rawDescOnce.Do(func() { |
| 554 |
file_google_spanner_v1_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_spanner_v1_type_proto_rawDescData) |
| 555 |
}) |
| 556 |
return file_google_spanner_v1_type_proto_rawDescData |
| 557 |
} |
| 558 |
|
| 559 |
var file_google_spanner_v1_type_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 560 |
var file_google_spanner_v1_type_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 561 |
var file_google_spanner_v1_type_proto_goTypes = []any{ |
| 562 |
(TypeCode)(0), // 0: google.spanner.v1.TypeCode |
| 563 |
(TypeAnnotationCode)(0), // 1: google.spanner.v1.TypeAnnotationCode |
| 564 |
(*Type)(nil), // 2: google.spanner.v1.Type |
| 565 |
(*StructType)(nil), // 3: google.spanner.v1.StructType |
| 566 |
(*StructType_Field)(nil), // 4: google.spanner.v1.StructType.Field |
| 567 |
} |
| 568 |
var file_google_spanner_v1_type_proto_depIdxs = []int32{ |
| 569 |
0, // 0: google.spanner.v1.Type.code:type_name -> google.spanner.v1.TypeCode |
| 570 |
2, // 1: google.spanner.v1.Type.array_element_type:type_name -> google.spanner.v1.Type |
| 571 |
3, // 2: google.spanner.v1.Type.struct_type:type_name -> google.spanner.v1.StructType |
| 572 |
1, // 3: google.spanner.v1.Type.type_annotation:type_name -> google.spanner.v1.TypeAnnotationCode |
| 573 |
4, // 4: google.spanner.v1.StructType.fields:type_name -> google.spanner.v1.StructType.Field |
| 574 |
2, // 5: google.spanner.v1.StructType.Field.type:type_name -> google.spanner.v1.Type |
| 575 |
6, // [6:6] is the sub-list for method output_type |
| 576 |
6, // [6:6] is the sub-list for method input_type |
| 577 |
6, // [6:6] is the sub-list for extension type_name |
| 578 |
6, // [6:6] is the sub-list for extension extendee |
| 579 |
0, // [0:6] is the sub-list for field type_name |
| 580 |
} |
| 581 |
|
| 582 |
func init() { file_google_spanner_v1_type_proto_init() } |
| 583 |
func file_google_spanner_v1_type_proto_init() { |
| 584 |
if File_google_spanner_v1_type_proto != nil { |
| 585 |
return |
| 586 |
} |
| 587 |
type x struct{} |
| 588 |
out := protoimpl.TypeBuilder{ |
| 589 |
File: protoimpl.DescBuilder{ |
| 590 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 591 |
RawDescriptor: file_google_spanner_v1_type_proto_rawDesc, |
| 592 |
NumEnums: 2, |
| 593 |
NumMessages: 3, |
| 594 |
NumExtensions: 0, |
| 595 |
NumServices: 0, |
| 596 |
}, |
| 597 |
GoTypes: file_google_spanner_v1_type_proto_goTypes, |
| 598 |
DependencyIndexes: file_google_spanner_v1_type_proto_depIdxs, |
| 599 |
EnumInfos: file_google_spanner_v1_type_proto_enumTypes, |
| 600 |
MessageInfos: file_google_spanner_v1_type_proto_msgTypes, |
| 601 |
}.Build() |
| 602 |
File_google_spanner_v1_type_proto = out.File |
| 603 |
file_google_spanner_v1_type_proto_rawDesc = nil |
| 604 |
file_google_spanner_v1_type_proto_goTypes = nil |
| 605 |
file_google_spanner_v1_type_proto_depIdxs = nil |
| 606 |
} |