Debian Codegraph @

bigquery/v2/apiv2/bigquerypb/job_creation_reason.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/job_creation_reason.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 // Indicates the high level reason why a job was created.
39 type JobCreationReason_Code int32
40
41 const (
42 // Reason is not specified.
43 JobCreationReason_CODE_UNSPECIFIED JobCreationReason_Code = 0
44 // Job creation was requested.
45 JobCreationReason_REQUESTED JobCreationReason_Code = 1
46 // The query request ran beyond a system defined timeout specified by the
47 // [timeoutMs field in the
48 // QueryRequest](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest).
49 // As a result it was considered a long running operation for which a job
50 // was created.
51 JobCreationReason_LONG_RUNNING JobCreationReason_Code = 2
52 // The results from the query cannot fit in the response.
53 JobCreationReason_LARGE_RESULTS JobCreationReason_Code = 3
54 // BigQuery has determined that the query needs to be executed as a Job.
55 JobCreationReason_OTHER JobCreationReason_Code = 4
56 )
57
58 // Enum value maps for JobCreationReason_Code.
59 var (
60 JobCreationReason_Code_name = map[int32]string{
61 0: "CODE_UNSPECIFIED",
62 1: "REQUESTED",
63 2: "LONG_RUNNING",
64 3: "LARGE_RESULTS",
65 4: "OTHER",
66 }
67 JobCreationReason_Code_value = map[string]int32{
68 "CODE_UNSPECIFIED": 0,
69 "REQUESTED": 1,
70 "LONG_RUNNING": 2,
71 "LARGE_RESULTS": 3,
72 "OTHER": 4,
73 }
74 )
75
76 func (x JobCreationReason_Code) Enum() *JobCreationReason_Code {
77 p := new(JobCreationReason_Code)
78 *p = x
79 return p
80 }
81
82 func (x JobCreationReason_Code) String() string {
83 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
84 }
85
86 func (JobCreationReason_Code) Descriptor() protoreflect.EnumDescriptor {
87 return file_google_cloud_bigquery_v2_job_creation_reason_proto_enumTypes[0].Descriptor()
88 }
89
90 func (JobCreationReason_Code) Type() protoreflect.EnumType {
91 return &file_google_cloud_bigquery_v2_job_creation_reason_proto_enumTypes[0]
92 }
93
94 func (x JobCreationReason_Code) Number() protoreflect.EnumNumber {
95 return protoreflect.EnumNumber(x)
96 }
97
98 // Deprecated: Use JobCreationReason_Code.Descriptor instead.
99 func (JobCreationReason_Code) EnumDescriptor() ([]byte, []int) {
100 return file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescGZIP(), []int{0, 0}
101 }
102
103 // Reason about why a Job was created from a
104 // [`jobs.query`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query)
105 // method when used with `JOB_CREATION_OPTIONAL` Job creation mode.
106 //
107 // For
108 // [`jobs.insert`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/insert)
109 // method calls it will always be `REQUESTED`.
110 type JobCreationReason struct {
111 state protoimpl.MessageState
112 sizeCache protoimpl.SizeCache
113 unknownFields protoimpl.UnknownFields
114
115 // Output only. Specifies the high level reason why a Job was created.
116 Code JobCreationReason_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.bigquery.v2.JobCreationReason_Code" json:"code,omitempty"`
117 }
118
119 func (x *JobCreationReason) Reset() {
120 *x = JobCreationReason{}
121 mi := &file_google_cloud_bigquery_v2_job_creation_reason_proto_msgTypes[0]
122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123 ms.StoreMessageInfo(mi)
124 }
125
126 func (x *JobCreationReason) String() string {
127 return protoimpl.X.MessageStringOf(x)
128 }
129
130 func (*JobCreationReason) ProtoMessage() {}
131
132 func (x *JobCreationReason) ProtoReflect() protoreflect.Message {
133 mi := &file_google_cloud_bigquery_v2_job_creation_reason_proto_msgTypes[0]
134 if x != nil {
135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
136 if ms.LoadMessageInfo() == nil {
137 ms.StoreMessageInfo(mi)
138 }
139 return ms
140 }
141 return mi.MessageOf(x)
142 }
143
144 // Deprecated: Use JobCreationReason.ProtoReflect.Descriptor instead.
145 func (*JobCreationReason) Descriptor() ([]byte, []int) {
146 return file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescGZIP(), []int{0}
147 }
148
149 func (x *JobCreationReason) GetCode() JobCreationReason_Code {
150 if x != nil {
151 return x.Code
152 }
153 return JobCreationReason_CODE_UNSPECIFIED
154 }
155
156 var File_google_cloud_bigquery_v2_job_creation_reason_proto protoreflect.FileDescriptor
157
158 var file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDesc = []byte{
159 0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
160 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x6a, 0x6f, 0x62, 0x5f, 0x63,
161 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x2e, 0x70,
162 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
163 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f,
164 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,
165 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
166 0xbb, 0x01, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
167 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
168 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
169 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x4a,
170 0x6f, 0x62, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e,
171 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
172 0x22, 0x5b, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45,
173 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d,
174 0x0a, 0x09, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a,
175 0x0c, 0x4c, 0x4f, 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12,
176 0x11, 0x0a, 0x0d, 0x4c, 0x41, 0x52, 0x47, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53,
177 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x04, 0x42, 0x75, 0x0a,
178 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
179 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x16, 0x4a,
180 0x6f, 0x62, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e,
181 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
182 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67,
183 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x62,
184 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65,
185 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
186 }
187
188 var (
189 file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescOnce sync.Once
190 file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescData = file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDesc
191 )
192
193 func file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescGZIP() []byte {
194 file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescOnce.Do(func() {
195 file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescData)
196 })
197 return file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDescData
198 }
199
200 var file_google_cloud_bigquery_v2_job_creation_reason_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
201 var file_google_cloud_bigquery_v2_job_creation_reason_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
202 var file_google_cloud_bigquery_v2_job_creation_reason_proto_goTypes = []any{
203 (JobCreationReason_Code)(0), // 0: google.cloud.bigquery.v2.JobCreationReason.Code
204 (*JobCreationReason)(nil), // 1: google.cloud.bigquery.v2.JobCreationReason
205 }
206 var file_google_cloud_bigquery_v2_job_creation_reason_proto_depIdxs = []int32{
207 0, // 0: google.cloud.bigquery.v2.JobCreationReason.code:type_name -> google.cloud.bigquery.v2.JobCreationReason.Code
208 1, // [1:1] is the sub-list for method output_type
209 1, // [1:1] is the sub-list for method input_type
210 1, // [1:1] is the sub-list for extension type_name
211 1, // [1:1] is the sub-list for extension extendee
212 0, // [0:1] is the sub-list for field type_name
213 }
214
215 func init() { file_google_cloud_bigquery_v2_job_creation_reason_proto_init() }
216 func file_google_cloud_bigquery_v2_job_creation_reason_proto_init() {
217 if File_google_cloud_bigquery_v2_job_creation_reason_proto != nil {
218 return
219 }
220 type x struct{}
221 out := protoimpl.TypeBuilder{
222 File: protoimpl.DescBuilder{
223 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
224 RawDescriptor: file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDesc,
225 NumEnums: 1,
226 NumMessages: 1,
227 NumExtensions: 0,
228 NumServices: 0,
229 },
230 GoTypes: file_google_cloud_bigquery_v2_job_creation_reason_proto_goTypes,
231 DependencyIndexes: file_google_cloud_bigquery_v2_job_creation_reason_proto_depIdxs,
232 EnumInfos: file_google_cloud_bigquery_v2_job_creation_reason_proto_enumTypes,
233 MessageInfos: file_google_cloud_bigquery_v2_job_creation_reason_proto_msgTypes,
234 }.Build()
235 File_google_cloud_bigquery_v2_job_creation_reason_proto = out.File
236 file_google_cloud_bigquery_v2_job_creation_reason_proto_rawDesc = nil
237 file_google_cloud_bigquery_v2_job_creation_reason_proto_goTypes = nil
238 file_google_cloud_bigquery_v2_job_creation_reason_proto_depIdxs = nil
239 }