| 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/cloud/bigquery/v2/json_extension.proto |
| 20 |
|
| 21 |
package bigquerypb |
| 22 |
|
| 23 |
import ( |
| 24 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 25 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 26 |
reflect "reflect" |
| 27 |
sync "sync" |
| 28 |
) |
| 29 |
|
| 30 |
const ( |
| 31 |
// Verify that this generated code is sufficiently up-to-date. |
| 32 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 33 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 35 |
) |
| 36 |
|
| 37 |
// Used to indicate that a JSON variant, rather than normal JSON, is being used |
| 38 |
// as the source_format. This should only be used in combination with the |
| 39 |
// JSON source format. |
| 40 |
type JsonExtension int32 |
| 41 |
|
| 42 |
const ( |
| 43 |
// The default if provided value is not one included in the enum, or the value |
| 44 |
// is not specified. The source format is parsed without any modification. |
| 45 |
JsonExtension_JSON_EXTENSION_UNSPECIFIED JsonExtension = 0 |
| 46 |
// Use GeoJSON variant of JSON. See https://tools.ietf.org/html/rfc7946. |
| 47 |
JsonExtension_GEOJSON JsonExtension = 1 |
| 48 |
) |
| 49 |
|
| 50 |
// Enum value maps for JsonExtension. |
| 51 |
var ( |
| 52 |
JsonExtension_name = map[int32]string{ |
| 53 |
0: "JSON_EXTENSION_UNSPECIFIED", |
| 54 |
1: "GEOJSON", |
| 55 |
} |
| 56 |
JsonExtension_value = map[string]int32{ |
| 57 |
"JSON_EXTENSION_UNSPECIFIED": 0, |
| 58 |
"GEOJSON": 1, |
| 59 |
} |
| 60 |
) |
| 61 |
|
| 62 |
func (x JsonExtension) Enum() *JsonExtension { |
| 63 |
p := new(JsonExtension) |
| 64 |
*p = x |
| 65 |
return p |
| 66 |
} |
| 67 |
|
| 68 |
func (x JsonExtension) String() string { |
| 69 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 70 |
} |
| 71 |
|
| 72 |
func (JsonExtension) Descriptor() protoreflect.EnumDescriptor { |
| 73 |
return file_google_cloud_bigquery_v2_json_extension_proto_enumTypes[0].Descriptor() |
| 74 |
} |
| 75 |
|
| 76 |
func (JsonExtension) Type() protoreflect.EnumType { |
| 77 |
return &file_google_cloud_bigquery_v2_json_extension_proto_enumTypes[0] |
| 78 |
} |
| 79 |
|
| 80 |
func (x JsonExtension) Number() protoreflect.EnumNumber { |
| 81 |
return protoreflect.EnumNumber(x) |
| 82 |
} |
| 83 |
|
| 84 |
// Deprecated: Use JsonExtension.Descriptor instead. |
| 85 |
func (JsonExtension) EnumDescriptor() ([]byte, []int) { |
| 86 |
return file_google_cloud_bigquery_v2_json_extension_proto_rawDescGZIP(), []int{0} |
| 87 |
} |
| 88 |
|
| 89 |
var File_google_cloud_bigquery_v2_json_extension_proto protoreflect.FileDescriptor |
| 90 |
|
| 91 |
var file_google_cloud_bigquery_v2_json_extension_proto_rawDesc = []byte{ |
| 92 |
0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, |
| 93 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, |
| 94 |
0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, |
| 95 |
0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, |
| 96 |
0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2a, 0x3c, 0x0a, 0x0d, 0x4a, 0x73, 0x6f, |
| 97 |
0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x4a, 0x53, |
| 98 |
0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, |
| 99 |
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, |
| 100 |
0x4f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x42, 0x71, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, |
| 101 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, |
| 102 |
0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x12, 0x4a, 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x74, |
| 103 |
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, |
| 104 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 105 |
0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, |
| 106 |
0x70, 0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, |
| 107 |
0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 108 |
0x6f, 0x33, |
| 109 |
} |
| 110 |
|
| 111 |
var ( |
| 112 |
file_google_cloud_bigquery_v2_json_extension_proto_rawDescOnce sync.Once |
| 113 |
file_google_cloud_bigquery_v2_json_extension_proto_rawDescData = file_google_cloud_bigquery_v2_json_extension_proto_rawDesc |
| 114 |
) |
| 115 |
|
| 116 |
func file_google_cloud_bigquery_v2_json_extension_proto_rawDescGZIP() []byte { |
| 117 |
file_google_cloud_bigquery_v2_json_extension_proto_rawDescOnce.Do(func() { |
| 118 |
file_google_cloud_bigquery_v2_json_extension_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_json_extension_proto_rawDescData) |
| 119 |
}) |
| 120 |
return file_google_cloud_bigquery_v2_json_extension_proto_rawDescData |
| 121 |
} |
| 122 |
|
| 123 |
var file_google_cloud_bigquery_v2_json_extension_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 124 |
var file_google_cloud_bigquery_v2_json_extension_proto_goTypes = []any{ |
| 125 |
(JsonExtension)(0), // 0: google.cloud.bigquery.v2.JsonExtension |
| 126 |
} |
| 127 |
var file_google_cloud_bigquery_v2_json_extension_proto_depIdxs = []int32{ |
| 128 |
0, // [0:0] is the sub-list for method output_type |
| 129 |
0, // [0:0] is the sub-list for method input_type |
| 130 |
0, // [0:0] is the sub-list for extension type_name |
| 131 |
0, // [0:0] is the sub-list for extension extendee |
| 132 |
0, // [0:0] is the sub-list for field type_name |
| 133 |
} |
| 134 |
|
| 135 |
func init() { file_google_cloud_bigquery_v2_json_extension_proto_init() } |
| 136 |
func file_google_cloud_bigquery_v2_json_extension_proto_init() { |
| 137 |
if File_google_cloud_bigquery_v2_json_extension_proto != nil { |
| 138 |
return |
| 139 |
} |
| 140 |
type x struct{} |
| 141 |
out := protoimpl.TypeBuilder{ |
| 142 |
File: protoimpl.DescBuilder{ |
| 143 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 144 |
RawDescriptor: file_google_cloud_bigquery_v2_json_extension_proto_rawDesc, |
| 145 |
NumEnums: 1, |
| 146 |
NumMessages: 0, |
| 147 |
NumExtensions: 0, |
| 148 |
NumServices: 0, |
| 149 |
}, |
| 150 |
GoTypes: file_google_cloud_bigquery_v2_json_extension_proto_goTypes, |
| 151 |
DependencyIndexes: file_google_cloud_bigquery_v2_json_extension_proto_depIdxs, |
| 152 |
EnumInfos: file_google_cloud_bigquery_v2_json_extension_proto_enumTypes, |
| 153 |
}.Build() |
| 154 |
File_google_cloud_bigquery_v2_json_extension_proto = out.File |
| 155 |
file_google_cloud_bigquery_v2_json_extension_proto_rawDesc = nil |
| 156 |
file_google_cloud_bigquery_v2_json_extension_proto_goTypes = nil |
| 157 |
file_google_cloud_bigquery_v2_json_extension_proto_depIdxs = nil |
| 158 |
} |