Debian Codegraph @

bigquery/v2/apiv2/bigquerypb/udf_resource.pb.go

raw
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/udf_resource.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 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
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 // This is used for defining User Defined Function (UDF) resources only when
39 // using legacy SQL. Users of GoogleSQL should leverage either DDL (e.g.
40 // CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF
41 // resources.
42 //
43 // For additional information on migrating, see:
44 // https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
45 type UserDefinedFunctionResource struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // [Pick one] A code resource to load from a Google Cloud Storage URI
51 // (gs://bucket/path).
52 ResourceUri *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
53 // [Pick one] An inline resource that contains code for a user-defined
54 // function (UDF). Providing a inline code resource is equivalent to providing
55 // a URI for a file containing the same code.
56 InlineCode *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=inline_code,json=inlineCode,proto3" json:"inline_code,omitempty"`
57 }
58
59 func (x *UserDefinedFunctionResource) Reset() {
60 *x = UserDefinedFunctionResource{}
61 mi := &file_google_cloud_bigquery_v2_udf_resource_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65
66 func (x *UserDefinedFunctionResource) String() string {
67 return protoimpl.X.MessageStringOf(x)
68 }
69
70 func (*UserDefinedFunctionResource) ProtoMessage() {}
71
72 func (x *UserDefinedFunctionResource) ProtoReflect() protoreflect.Message {
73 mi := &file_google_cloud_bigquery_v2_udf_resource_proto_msgTypes[0]
74 if x != nil {
75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76 if ms.LoadMessageInfo() == nil {
77 ms.StoreMessageInfo(mi)
78 }
79 return ms
80 }
81 return mi.MessageOf(x)
82 }
83
84 // Deprecated: Use UserDefinedFunctionResource.ProtoReflect.Descriptor instead.
85 func (*UserDefinedFunctionResource) Descriptor() ([]byte, []int) {
86 return file_google_cloud_bigquery_v2_udf_resource_proto_rawDescGZIP(), []int{0}
87 }
88
89 func (x *UserDefinedFunctionResource) GetResourceUri() *wrapperspb.StringValue {
90 if x != nil {
91 return x.ResourceUri
92 }
93 return nil
94 }
95
96 func (x *UserDefinedFunctionResource) GetInlineCode() *wrapperspb.StringValue {
97 if x != nil {
98 return x.InlineCode
99 }
100 return nil
101 }
102
103 var File_google_cloud_bigquery_v2_udf_resource_proto protoreflect.FileDescriptor
104
105 var file_google_cloud_bigquery_v2_udf_resource_proto_rawDesc = []byte{
106 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
107 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x64, 0x66, 0x5f, 0x72,
108 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67,
109 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71,
110 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
111 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72,
112 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x1b, 0x55, 0x73, 0x65, 0x72,
113 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
114 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
115 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
116 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
117 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x73,
118 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x69, 0x12, 0x3d, 0x0a, 0x0b, 0x69, 0x6e, 0x6c, 0x69,
119 0x6e, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
120 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
121 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x6c,
122 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x65, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
123 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71,
124 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x08, 0x55, 0x64, 0x66, 0x50, 0x72, 0x6f, 0x74,
125 0x6f, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
126 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f,
127 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72,
128 0x79, 0x70, 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06,
129 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
130 }
131
132 var (
133 file_google_cloud_bigquery_v2_udf_resource_proto_rawDescOnce sync.Once
134 file_google_cloud_bigquery_v2_udf_resource_proto_rawDescData = file_google_cloud_bigquery_v2_udf_resource_proto_rawDesc
135 )
136
137 func file_google_cloud_bigquery_v2_udf_resource_proto_rawDescGZIP() []byte {
138 file_google_cloud_bigquery_v2_udf_resource_proto_rawDescOnce.Do(func() {
139 file_google_cloud_bigquery_v2_udf_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_udf_resource_proto_rawDescData)
140 })
141 return file_google_cloud_bigquery_v2_udf_resource_proto_rawDescData
142 }
143
144 var file_google_cloud_bigquery_v2_udf_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
145 var file_google_cloud_bigquery_v2_udf_resource_proto_goTypes = []any{
146 (*UserDefinedFunctionResource)(nil), // 0: google.cloud.bigquery.v2.UserDefinedFunctionResource
147 (*wrapperspb.StringValue)(nil), // 1: google.protobuf.StringValue
148 }
149 var file_google_cloud_bigquery_v2_udf_resource_proto_depIdxs = []int32{
150 1, // 0: google.cloud.bigquery.v2.UserDefinedFunctionResource.resource_uri:type_name -> google.protobuf.StringValue
151 1, // 1: google.cloud.bigquery.v2.UserDefinedFunctionResource.inline_code:type_name -> google.protobuf.StringValue
152 2, // [2:2] is the sub-list for method output_type
153 2, // [2:2] is the sub-list for method input_type
154 2, // [2:2] is the sub-list for extension type_name
155 2, // [2:2] is the sub-list for extension extendee
156 0, // [0:2] is the sub-list for field type_name
157 }
158
159 func init() { file_google_cloud_bigquery_v2_udf_resource_proto_init() }
160 func file_google_cloud_bigquery_v2_udf_resource_proto_init() {
161 if File_google_cloud_bigquery_v2_udf_resource_proto != nil {
162 return
163 }
164 type x struct{}
165 out := protoimpl.TypeBuilder{
166 File: protoimpl.DescBuilder{
167 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
168 RawDescriptor: file_google_cloud_bigquery_v2_udf_resource_proto_rawDesc,
169 NumEnums: 0,
170 NumMessages: 1,
171 NumExtensions: 0,
172 NumServices: 0,
173 },
174 GoTypes: file_google_cloud_bigquery_v2_udf_resource_proto_goTypes,
175 DependencyIndexes: file_google_cloud_bigquery_v2_udf_resource_proto_depIdxs,
176 MessageInfos: file_google_cloud_bigquery_v2_udf_resource_proto_msgTypes,
177 }.Build()
178 File_google_cloud_bigquery_v2_udf_resource_proto = out.File
179 file_google_cloud_bigquery_v2_udf_resource_proto_rawDesc = nil
180 file_google_cloud_bigquery_v2_udf_resource_proto_goTypes = nil
181 file_google_cloud_bigquery_v2_udf_resource_proto_depIdxs = nil
182 }