| 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/external_catalog_dataset_options.proto |
| 20 |
|
| 21 |
package bigquerypb |
| 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 |
// Options defining open source compatible datasets living in the BigQuery |
| 39 |
// catalog. Contains metadata of open source database, schema, |
| 40 |
// or namespace represented by the current dataset. |
| 41 |
type ExternalCatalogDatasetOptions struct { |
| 42 |
state protoimpl.MessageState |
| 43 |
sizeCache protoimpl.SizeCache |
| 44 |
unknownFields protoimpl.UnknownFields |
| 45 |
|
| 46 |
// Optional. A map of key value pairs defining the parameters and properties |
| 47 |
// of the open source schema. Maximum size of 2MiB. |
| 48 |
Parameters map[string]string `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 49 |
// Optional. The storage location URI for all tables in the dataset. |
| 50 |
// Equivalent to hive metastore's database locationUri. Maximum length of 1024 |
| 51 |
// characters. |
| 52 |
DefaultStorageLocationUri string `protobuf:"bytes,2,opt,name=default_storage_location_uri,json=defaultStorageLocationUri,proto3" json:"default_storage_location_uri,omitempty"` |
| 53 |
} |
| 54 |
|
| 55 |
func (x *ExternalCatalogDatasetOptions) Reset() { |
| 56 |
*x = ExternalCatalogDatasetOptions{} |
| 57 |
mi := &file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_msgTypes[0] |
| 58 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 59 |
ms.StoreMessageInfo(mi) |
| 60 |
} |
| 61 |
|
| 62 |
func (x *ExternalCatalogDatasetOptions) String() string { |
| 63 |
return protoimpl.X.MessageStringOf(x) |
| 64 |
} |
| 65 |
|
| 66 |
func (*ExternalCatalogDatasetOptions) ProtoMessage() {} |
| 67 |
|
| 68 |
func (x *ExternalCatalogDatasetOptions) ProtoReflect() protoreflect.Message { |
| 69 |
mi := &file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_msgTypes[0] |
| 70 |
if x != nil { |
| 71 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 72 |
if ms.LoadMessageInfo() == nil { |
| 73 |
ms.StoreMessageInfo(mi) |
| 74 |
} |
| 75 |
return ms |
| 76 |
} |
| 77 |
return mi.MessageOf(x) |
| 78 |
} |
| 79 |
|
| 80 |
// Deprecated: Use ExternalCatalogDatasetOptions.ProtoReflect.Descriptor instead. |
| 81 |
func (*ExternalCatalogDatasetOptions) Descriptor() ([]byte, []int) { |
| 82 |
return file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescGZIP(), []int{0} |
| 83 |
} |
| 84 |
|
| 85 |
func (x *ExternalCatalogDatasetOptions) GetParameters() map[string]string { |
| 86 |
if x != nil { |
| 87 |
return x.Parameters |
| 88 |
} |
| 89 |
return nil |
| 90 |
} |
| 91 |
|
| 92 |
func (x *ExternalCatalogDatasetOptions) GetDefaultStorageLocationUri() string { |
| 93 |
if x != nil { |
| 94 |
return x.DefaultStorageLocationUri |
| 95 |
} |
| 96 |
return "" |
| 97 |
} |
| 98 |
|
| 99 |
var File_google_cloud_bigquery_v2_external_catalog_dataset_options_proto protoreflect.FileDescriptor |
| 100 |
|
| 101 |
var file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDesc = []byte{ |
| 102 |
0x0a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, |
| 103 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, |
| 104 |
0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x64, 0x61, 0x74, 0x61, |
| 105 |
0x73, 0x65, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 106 |
0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 107 |
0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, |
| 108 |
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, |
| 109 |
0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x02, 0x0a, |
| 110 |
0x1d, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, |
| 111 |
0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x6c, |
| 112 |
0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, |
| 113 |
0x28, 0x0b, 0x32, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 114 |
0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, |
| 115 |
0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x44, 0x61, 0x74, |
| 116 |
0x61, 0x73, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x61, |
| 117 |
0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, |
| 118 |
0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x44, 0x0a, 0x1c, |
| 119 |
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, |
| 120 |
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, |
| 121 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, |
| 122 |
0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, |
| 123 |
0x72, 0x69, 0x1a, 0x3d, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, |
| 124 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 125 |
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 126 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 127 |
0x01, 0x42, 0x81, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 128 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, |
| 129 |
0x76, 0x32, 0x42, 0x22, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x61, 0x74, 0x61, |
| 130 |
0x6c, 0x6f, 0x67, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, |
| 131 |
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 132 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, |
| 133 |
0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, |
| 134 |
0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, |
| 135 |
0x65, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 136 |
} |
| 137 |
|
| 138 |
var ( |
| 139 |
file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescOnce sync.Once |
| 140 |
file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescData = file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDesc |
| 141 |
) |
| 142 |
|
| 143 |
func file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescGZIP() []byte { |
| 144 |
file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescOnce.Do(func() { |
| 145 |
file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescData) |
| 146 |
}) |
| 147 |
return file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDescData |
| 148 |
} |
| 149 |
|
| 150 |
var file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 151 |
var file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_goTypes = []any{ |
| 152 |
(*ExternalCatalogDatasetOptions)(nil), // 0: google.cloud.bigquery.v2.ExternalCatalogDatasetOptions |
| 153 |
nil, // 1: google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.ParametersEntry |
| 154 |
} |
| 155 |
var file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_depIdxs = []int32{ |
| 156 |
1, // 0: google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.parameters:type_name -> google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.ParametersEntry |
| 157 |
1, // [1:1] is the sub-list for method output_type |
| 158 |
1, // [1:1] is the sub-list for method input_type |
| 159 |
1, // [1:1] is the sub-list for extension type_name |
| 160 |
1, // [1:1] is the sub-list for extension extendee |
| 161 |
0, // [0:1] is the sub-list for field type_name |
| 162 |
} |
| 163 |
|
| 164 |
func init() { file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_init() } |
| 165 |
func file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_init() { |
| 166 |
if File_google_cloud_bigquery_v2_external_catalog_dataset_options_proto != nil { |
| 167 |
return |
| 168 |
} |
| 169 |
type x struct{} |
| 170 |
out := protoimpl.TypeBuilder{ |
| 171 |
File: protoimpl.DescBuilder{ |
| 172 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 173 |
RawDescriptor: file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDesc, |
| 174 |
NumEnums: 0, |
| 175 |
NumMessages: 2, |
| 176 |
NumExtensions: 0, |
| 177 |
NumServices: 0, |
| 178 |
}, |
| 179 |
GoTypes: file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_goTypes, |
| 180 |
DependencyIndexes: file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_depIdxs, |
| 181 |
MessageInfos: file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_msgTypes, |
| 182 |
}.Build() |
| 183 |
File_google_cloud_bigquery_v2_external_catalog_dataset_options_proto = out.File |
| 184 |
file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_rawDesc = nil |
| 185 |
file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_goTypes = nil |
| 186 |
file_google_cloud_bigquery_v2_external_catalog_dataset_options_proto_depIdxs = nil |
| 187 |
} |