Debian Codegraph @

automl/apiv1beta1/automlpb/table_spec.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/automl/v1beta1/table_spec.proto
20
21 package automlpb
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 // A specification of a relational table.
39 // The table's schema is represented via its child column specs. It is
40 // pre-populated as part of ImportData by schema inference algorithm, the
41 // version of which is a required parameter of ImportData InputConfig.
42 // Note: While working with a table, at times the schema may be
43 // inconsistent with the data in the table (e.g. string in a FLOAT64 column).
44 // The consistency validation is done upon creation of a model.
45 // Used by:
46 // - Tables
47 type TableSpec struct {
48 state protoimpl.MessageState
49 sizeCache protoimpl.SizeCache
50 unknownFields protoimpl.UnknownFields
51
52 // Output only. The resource name of the table spec.
53 // Form:
54 //
55 // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
56 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
57 // column_spec_id of the time column. Only used if the parent dataset's
58 // ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
59 // and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
60 // those in between to VALIDATE.
61 // Required type: TIMESTAMP.
62 // If both this column and ml_use_column are not set, then ML use of all rows
63 // will be assigned by AutoML. NOTE: Updates of this field will instantly
64 // affect any other users concurrently working with the dataset.
65 TimeColumnSpecId string `protobuf:"bytes,2,opt,name=time_column_spec_id,json=timeColumnSpecId,proto3" json:"time_column_spec_id,omitempty"`
66 // Output only. The number of rows (i.e. examples) in the table.
67 RowCount int64 `protobuf:"varint,3,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
68 // Output only. The number of valid rows (i.e. without values that don't match
69 // DataType-s of their columns).
70 ValidRowCount int64 `protobuf:"varint,4,opt,name=valid_row_count,json=validRowCount,proto3" json:"valid_row_count,omitempty"`
71 // Output only. The number of columns of the table. That is, the number of
72 // child ColumnSpec-s.
73 ColumnCount int64 `protobuf:"varint,7,opt,name=column_count,json=columnCount,proto3" json:"column_count,omitempty"`
74 // Output only. Input configs via which data currently residing in the table
75 // had been imported.
76 InputConfigs []*InputConfig `protobuf:"bytes,5,rep,name=input_configs,json=inputConfigs,proto3" json:"input_configs,omitempty"`
77 // Used to perform consistent read-modify-write updates. If not set, a blind
78 // "overwrite" update happens.
79 Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"`
80 }
81
82 func (x *TableSpec) Reset() {
83 *x = TableSpec{}
84 mi := &file_google_cloud_automl_v1beta1_table_spec_proto_msgTypes[0]
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 ms.StoreMessageInfo(mi)
87 }
88
89 func (x *TableSpec) String() string {
90 return protoimpl.X.MessageStringOf(x)
91 }
92
93 func (*TableSpec) ProtoMessage() {}
94
95 func (x *TableSpec) ProtoReflect() protoreflect.Message {
96 mi := &file_google_cloud_automl_v1beta1_table_spec_proto_msgTypes[0]
97 if x != nil {
98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
99 if ms.LoadMessageInfo() == nil {
100 ms.StoreMessageInfo(mi)
101 }
102 return ms
103 }
104 return mi.MessageOf(x)
105 }
106
107 // Deprecated: Use TableSpec.ProtoReflect.Descriptor instead.
108 func (*TableSpec) Descriptor() ([]byte, []int) {
109 return file_google_cloud_automl_v1beta1_table_spec_proto_rawDescGZIP(), []int{0}
110 }
111
112 func (x *TableSpec) GetName() string {
113 if x != nil {
114 return x.Name
115 }
116 return ""
117 }
118
119 func (x *TableSpec) GetTimeColumnSpecId() string {
120 if x != nil {
121 return x.TimeColumnSpecId
122 }
123 return ""
124 }
125
126 func (x *TableSpec) GetRowCount() int64 {
127 if x != nil {
128 return x.RowCount
129 }
130 return 0
131 }
132
133 func (x *TableSpec) GetValidRowCount() int64 {
134 if x != nil {
135 return x.ValidRowCount
136 }
137 return 0
138 }
139
140 func (x *TableSpec) GetColumnCount() int64 {
141 if x != nil {
142 return x.ColumnCount
143 }
144 return 0
145 }
146
147 func (x *TableSpec) GetInputConfigs() []*InputConfig {
148 if x != nil {
149 return x.InputConfigs
150 }
151 return nil
152 }
153
154 func (x *TableSpec) GetEtag() string {
155 if x != nil {
156 return x.Etag
157 }
158 return ""
159 }
160
161 var File_google_cloud_automl_v1beta1_table_spec_proto protoreflect.FileDescriptor
162
163 var file_google_cloud_automl_v1beta1_table_spec_proto_rawDesc = []byte{
164 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
165 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x61,
166 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b,
167 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74,
168 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
169 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
170 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63,
171 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65,
172 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x03, 0x0a,
173 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
174 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d,
175 0x0a, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x73, 0x70,
176 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x69, 0x6d,
177 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, 0x12, 0x1b, 0x0a,
178 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
179 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x76, 0x61,
180 0x6c, 0x69, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20,
181 0x01, 0x28, 0x03, 0x52, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x6f, 0x77, 0x43, 0x6f, 0x75,
182 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x63, 0x6f, 0x75,
183 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
184 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4d, 0x0a, 0x0d, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x63,
185 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67,
186 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f,
187 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74,
188 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e,
189 0x66, 0x69, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01,
190 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x3a, 0x78, 0xea, 0x41, 0x75, 0x0a, 0x1f, 0x61,
191 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
192 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x52,
193 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
194 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f,
195 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73,
196 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x7d, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65,
197 0x53, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x65,
198 0x63, 0x7d, 0x42, 0x9b, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
199 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76,
200 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
201 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x75,
202 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
203 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70,
204 0x62, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
205 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea,
206 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,
207 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
208 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
209 }
210
211 var (
212 file_google_cloud_automl_v1beta1_table_spec_proto_rawDescOnce sync.Once
213 file_google_cloud_automl_v1beta1_table_spec_proto_rawDescData = file_google_cloud_automl_v1beta1_table_spec_proto_rawDesc
214 )
215
216 func file_google_cloud_automl_v1beta1_table_spec_proto_rawDescGZIP() []byte {
217 file_google_cloud_automl_v1beta1_table_spec_proto_rawDescOnce.Do(func() {
218 file_google_cloud_automl_v1beta1_table_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1beta1_table_spec_proto_rawDescData)
219 })
220 return file_google_cloud_automl_v1beta1_table_spec_proto_rawDescData
221 }
222
223 var file_google_cloud_automl_v1beta1_table_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
224 var file_google_cloud_automl_v1beta1_table_spec_proto_goTypes = []any{
225 (*TableSpec)(nil), // 0: google.cloud.automl.v1beta1.TableSpec
226 (*InputConfig)(nil), // 1: google.cloud.automl.v1beta1.InputConfig
227 }
228 var file_google_cloud_automl_v1beta1_table_spec_proto_depIdxs = []int32{
229 1, // 0: google.cloud.automl.v1beta1.TableSpec.input_configs:type_name -> google.cloud.automl.v1beta1.InputConfig
230 1, // [1:1] is the sub-list for method output_type
231 1, // [1:1] is the sub-list for method input_type
232 1, // [1:1] is the sub-list for extension type_name
233 1, // [1:1] is the sub-list for extension extendee
234 0, // [0:1] is the sub-list for field type_name
235 }
236
237 func init() { file_google_cloud_automl_v1beta1_table_spec_proto_init() }
238 func file_google_cloud_automl_v1beta1_table_spec_proto_init() {
239 if File_google_cloud_automl_v1beta1_table_spec_proto != nil {
240 return
241 }
242 file_google_cloud_automl_v1beta1_io_proto_init()
243 type x struct{}
244 out := protoimpl.TypeBuilder{
245 File: protoimpl.DescBuilder{
246 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
247 RawDescriptor: file_google_cloud_automl_v1beta1_table_spec_proto_rawDesc,
248 NumEnums: 0,
249 NumMessages: 1,
250 NumExtensions: 0,
251 NumServices: 0,
252 },
253 GoTypes: file_google_cloud_automl_v1beta1_table_spec_proto_goTypes,
254 DependencyIndexes: file_google_cloud_automl_v1beta1_table_spec_proto_depIdxs,
255 MessageInfos: file_google_cloud_automl_v1beta1_table_spec_proto_msgTypes,
256 }.Build()
257 File_google_cloud_automl_v1beta1_table_spec_proto = out.File
258 file_google_cloud_automl_v1beta1_table_spec_proto_rawDesc = nil
259 file_google_cloud_automl_v1beta1_table_spec_proto_goTypes = nil
260 file_google_cloud_automl_v1beta1_table_spec_proto_depIdxs = nil
261 }