| 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/io.proto |
| 20 | |
| 21 | package automlpb |
| 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 | // Input configuration for ImportData Action. |
| 38 | // |
| 39 | // The format of input depends on dataset_metadata the Dataset into which |
| 40 | // the import is happening has. As input source the |
| 41 | // [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] |
| 42 | // is expected, unless specified otherwise. Additionally any input .CSV file |
| 43 | // by itself must be 100MB or smaller, unless specified otherwise. |
| 44 | // If an "example" file (that is, image, video etc.) with identical content |
| 45 | // (even if it had different GCS_FILE_PATH) is mentioned multiple times, then |
| 46 | // its label, bounding boxes etc. are appended. The same file should be always |
| 47 | // provided with the same ML_USE and GCS_FILE_PATH, if it is not, then |
| 48 | // these values are nondeterministically selected from the given ones. |
| 49 | // |
| 50 | // The formats are represented in EBNF with commas being literal and with |
| 51 | // non-terminal symbols defined near the end of this comment. The formats are: |
| 52 | // |
| 53 | // - For Image Classification: |
| 54 | // CSV file(s) with each line in format: |
| 55 | // ML_USE,GCS_FILE_PATH,LABEL,LABEL,... |
| 56 | // GCS_FILE_PATH leads to image of up to 30MB in size. Supported |
| 57 | // extensions: .JPEG, .GIF, .PNG, .WEBP, .BMP, .TIFF, .ICO |
| 58 | // For MULTICLASS classification type, at most one LABEL is allowed |
| 59 | // per image. If an image has not yet been labeled, then it should be |
| 60 | // mentioned just once with no LABEL. |
| 61 | // Some sample rows: |
| 62 | // TRAIN,gs://folder/image1.jpg,daisy |
| 63 | // TEST,gs://folder/image2.jpg,dandelion,tulip,rose |
| 64 | // UNASSIGNED,gs://folder/image3.jpg,daisy |
| 65 | // UNASSIGNED,gs://folder/image4.jpg |
| 66 | // |
| 67 | // - For Image Object Detection: |
| 68 | // CSV file(s) with each line in format: |
| 69 | // ML_USE,GCS_FILE_PATH,(LABEL,BOUNDING_BOX | ,,,,,,,) |
| 70 | // GCS_FILE_PATH leads to image of up to 30MB in size. Supported |
| 71 | // extensions: .JPEG, .GIF, .PNG. |
| 72 | // Each image is assumed to be exhaustively labeled. The minimum |
| 73 | // allowed BOUNDING_BOX edge length is 0.01, and no more than 500 |
| 74 | // BOUNDING_BOX-es per image are allowed (one BOUNDING_BOX is defined |
| 75 | // per line). If an image has not yet been labeled, then it should be |
| 76 | // mentioned just once with no LABEL and the ",,,,,,," in place of the |
| 77 | // BOUNDING_BOX. For images which are known to not contain any |
| 78 | // bounding boxes, they should be labelled explictly as |
| 79 | // "NEGATIVE_IMAGE", followed by ",,,,,,," in place of the |
| 80 | // BOUNDING_BOX. |
| 81 | // Sample rows: |
| 82 | // TRAIN,gs://folder/image1.png,car,0.1,0.1,,,0.3,0.3,, |
| 83 | // TRAIN,gs://folder/image1.png,bike,.7,.6,,,.8,.9,, |
| 84 | // UNASSIGNED,gs://folder/im2.png,car,0.1,0.1,0.2,0.1,0.2,0.3,0.1,0.3 |
| 85 | // TEST,gs://folder/im3.png,,,,,,,,, |
| 86 | // TRAIN,gs://folder/im4.png,NEGATIVE_IMAGE,,,,,,,,, |
| 87 | // |
| 88 | // - For Video Classification: |
| 89 | // CSV file(s) with each line in format: |
| 90 | // ML_USE,GCS_FILE_PATH |
| 91 | // where ML_USE VALIDATE value should not be used. The GCS_FILE_PATH |
| 92 | // should lead to another .csv file which describes examples that have |
| 93 | // given ML_USE, using the following row format: |
| 94 | // GCS_FILE_PATH,(LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END | ,,) |
| 95 | // Here GCS_FILE_PATH leads to a video of up to 50GB in size and up |
| 96 | // to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. |
| 97 | // TIME_SEGMENT_START and TIME_SEGMENT_END must be within the |
| 98 | // length of the video, and end has to be after the start. Any segment |
| 99 | // of a video which has one or more labels on it, is considered a |
| 100 | // hard negative for all other labels. Any segment with no labels on |
| 101 | // it is considered to be unknown. If a whole video is unknown, then |
| 102 | // it shuold be mentioned just once with ",," in place of LABEL, |
| 103 | // TIME_SEGMENT_START,TIME_SEGMENT_END. |
| 104 | // Sample top level CSV file: |
| 105 | // TRAIN,gs://folder/train_videos.csv |
| 106 | // TEST,gs://folder/test_videos.csv |
| 107 | // UNASSIGNED,gs://folder/other_videos.csv |
| 108 | // Sample rows of a CSV file for a particular ML_USE: |
| 109 | // gs://folder/video1.avi,car,120,180.000021 |
| 110 | // gs://folder/video1.avi,bike,150,180.000021 |
| 111 | // gs://folder/vid2.avi,car,0,60.5 |
| 112 | // gs://folder/vid3.avi,,, |
| 113 | // |
| 114 | // - For Video Object Tracking: |
| 115 | // CSV file(s) with each line in format: |
| 116 | // ML_USE,GCS_FILE_PATH |
| 117 | // where ML_USE VALIDATE value should not be used. The GCS_FILE_PATH |
| 118 | // should lead to another .csv file which describes examples that have |
| 119 | // given ML_USE, using one of the following row format: |
| 120 | // GCS_FILE_PATH,LABEL,[INSTANCE_ID],TIMESTAMP,BOUNDING_BOX |
| 121 | // or |
| 122 | // GCS_FILE_PATH,,,,,,,,,, |
| 123 | // Here GCS_FILE_PATH leads to a video of up to 50GB in size and up |
| 124 | // to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. |
| 125 | // Providing INSTANCE_IDs can help to obtain a better model. When |
| 126 | // a specific labeled entity leaves the video frame, and shows up |
| 127 | // afterwards it is not required, albeit preferable, that the same |
| 128 | // INSTANCE_ID is given to it. |
| 129 | // TIMESTAMP must be within the length of the video, the |
| 130 | // BOUNDING_BOX is assumed to be drawn on the closest video's frame |
| 131 | // to the TIMESTAMP. Any mentioned by the TIMESTAMP frame is expected |
| 132 | // to be exhaustively labeled and no more than 500 BOUNDING_BOX-es per |
| 133 | // frame are allowed. If a whole video is unknown, then it should be |
| 134 | // mentioned just once with ",,,,,,,,,," in place of LABEL, |
| 135 | // [INSTANCE_ID],TIMESTAMP,BOUNDING_BOX. |
| 136 | // Sample top level CSV file: |
| 137 | // TRAIN,gs://folder/train_videos.csv |
| 138 | // TEST,gs://folder/test_videos.csv |
| 139 | // UNASSIGNED,gs://folder/other_videos.csv |
| 140 | // Seven sample rows of a CSV file for a particular ML_USE: |
| 141 | // gs://folder/video1.avi,car,1,12.10,0.8,0.8,0.9,0.8,0.9,0.9,0.8,0.9 |
| 142 | // gs://folder/video1.avi,car,1,12.90,0.4,0.8,0.5,0.8,0.5,0.9,0.4,0.9 |
| 143 | // gs://folder/video1.avi,car,2,12.10,.4,.2,.5,.2,.5,.3,.4,.3 |
| 144 | // gs://folder/video1.avi,car,2,12.90,.8,.2,,,.9,.3,, |
| 145 | // gs://folder/video1.avi,bike,,12.50,.45,.45,,,.55,.55,, |
| 146 | // gs://folder/video2.avi,car,1,0,.1,.9,,,.9,.1,, |
| 147 | // gs://folder/video2.avi,,,,,,,,,,, |
| 148 | // |
| 149 | // - For Text Extraction: |
| 150 | // CSV file(s) with each line in format: |
| 151 | // ML_USE,GCS_FILE_PATH |
| 152 | // GCS_FILE_PATH leads to a .JSONL (that is, JSON Lines) file which |
| 153 | // either imports text in-line or as documents. Any given |
| 154 | // .JSONL file must be 100MB or smaller. |
| 155 | // The in-line .JSONL file contains, per line, a proto that wraps a |
| 156 | // TextSnippet proto (in json representation) followed by one or more |
| 157 | // AnnotationPayload protos (called annotations), which have |
| 158 | // display_name and text_extraction detail populated. The given text |
| 159 | // is expected to be annotated exhaustively, for example, if you look |
| 160 | // for animals and text contains "dolphin" that is not labeled, then |
| 161 | // "dolphin" is assumed to not be an animal. Any given text snippet |
| 162 | // content must be 10KB or smaller, and also be UTF-8 NFC encoded |
| 163 | // (ASCII already is). |
| 164 | // The document .JSONL file contains, per line, a proto that wraps a |
| 165 | // Document proto. The Document proto must have either document_text |
| 166 | // or input_config set. In document_text case, the Document proto may |
| 167 | // also contain the spatial information of the document, including |
| 168 | // layout, document dimension and page number. In input_config case, |
| 169 | // only PDF documents are supported now, and each document may be up |
| 170 | // to 2MB large. Currently, annotations on documents cannot be |
| 171 | // specified at import. |
| 172 | // Three sample CSV rows: |
| 173 | // TRAIN,gs://folder/file1.jsonl |
| 174 | // VALIDATE,gs://folder/file2.jsonl |
| 175 | // TEST,gs://folder/file3.jsonl |
| 176 | // Sample in-line JSON Lines file for entity extraction (presented here |
| 177 | // with artificial line breaks, but the only actual line break is |
| 178 | // denoted by \n).: |
| 179 | // { |
| 180 | // "document": { |
| 181 | // "document_text": {"content": "dog cat"} |
| 182 | // "layout": [ |
| 183 | // { |
| 184 | // "text_segment": { |
| 185 | // "start_offset": 0, |
| 186 | // "end_offset": 3, |
| 187 | // }, |
| 188 | // "page_number": 1, |
| 189 | // "bounding_poly": { |
| 190 | // "normalized_vertices": [ |
| 191 | // {"x": 0.1, "y": 0.1}, |
| 192 | // {"x": 0.1, "y": 0.3}, |
| 193 | // {"x": 0.3, "y": 0.3}, |
| 194 | // {"x": 0.3, "y": 0.1}, |
| 195 | // ], |
| 196 | // }, |
| 197 | // "text_segment_type": TOKEN, |
| 198 | // }, |
| 199 | // { |
| 200 | // "text_segment": { |
| 201 | // "start_offset": 4, |
| 202 | // "end_offset": 7, |
| 203 | // }, |
| 204 | // "page_number": 1, |
| 205 | // "bounding_poly": { |
| 206 | // "normalized_vertices": [ |
| 207 | // {"x": 0.4, "y": 0.1}, |
| 208 | // {"x": 0.4, "y": 0.3}, |
| 209 | // {"x": 0.8, "y": 0.3}, |
| 210 | // {"x": 0.8, "y": 0.1}, |
| 211 | // ], |
| 212 | // }, |
| 213 | // "text_segment_type": TOKEN, |
| 214 | // } |
| 215 | // |
| 216 | // ], |
| 217 | // "document_dimensions": { |
| 218 | // "width": 8.27, |
| 219 | // "height": 11.69, |
| 220 | // "unit": INCH, |
| 221 | // } |
| 222 | // "page_count": 1, |
| 223 | // }, |
| 224 | // "annotations": [ |
| 225 | // { |
| 226 | // "display_name": "animal", |
| 227 | // "text_extraction": {"text_segment": {"start_offset": 0, |
| 228 | // "end_offset": 3}} |
| 229 | // }, |
| 230 | // { |
| 231 | // "display_name": "animal", |
| 232 | // "text_extraction": {"text_segment": {"start_offset": 4, |
| 233 | // "end_offset": 7}} |
| 234 | // } |
| 235 | // ], |
| 236 | // }\n |
| 237 | // { |
| 238 | // "text_snippet": { |
| 239 | // "content": "This dog is good." |
| 240 | // }, |
| 241 | // "annotations": [ |
| 242 | // { |
| 243 | // "display_name": "animal", |
| 244 | // "text_extraction": { |
| 245 | // "text_segment": {"start_offset": 5, "end_offset": 8} |
| 246 | // } |
| 247 | // } |
| 248 | // ] |
| 249 | // } |
| 250 | // Sample document JSON Lines file (presented here with artificial line |
| 251 | // breaks, but the only actual line break is denoted by \n).: |
| 252 | // { |
| 253 | // "document": { |
| 254 | // "input_config": { |
| 255 | // "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ] |
| 256 | // } |
| 257 | // } |
| 258 | // } |
| 259 | // }\n |
| 260 | // { |
| 261 | // "document": { |
| 262 | // "input_config": { |
| 263 | // "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ] |
| 264 | // } |
| 265 | // } |
| 266 | // } |
| 267 | // } |
| 268 | // |
| 269 | // - For Text Classification: |
| 270 | // CSV file(s) with each line in format: |
| 271 | // ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),LABEL,LABEL,... |
| 272 | // TEXT_SNIPPET and GCS_FILE_PATH are distinguished by a pattern. If |
| 273 | // the column content is a valid gcs file path, i.e. prefixed by |
| 274 | // "gs://", it will be treated as a GCS_FILE_PATH, else if the content |
| 275 | // is enclosed within double quotes (""), it is |
| 276 | // treated as a TEXT_SNIPPET. In the GCS_FILE_PATH case, the path |
| 277 | // must lead to a .txt file with UTF-8 encoding, for example, |
| 278 | // "gs://folder/content.txt", and the content in it is extracted |
| 279 | // as a text snippet. In TEXT_SNIPPET case, the column content |
| 280 | // excluding quotes is treated as to be imported text snippet. In |
| 281 | // both cases, the text snippet/file size must be within 128kB. |
| 282 | // Maximum 100 unique labels are allowed per CSV row. |
| 283 | // Sample rows: |
| 284 | // TRAIN,"They have bad food and very rude",RudeService,BadFood |
| 285 | // TRAIN,gs://folder/content.txt,SlowService |
| 286 | // TEST,"Typically always bad service there.",RudeService |
| 287 | // VALIDATE,"Stomach ache to go.",BadFood |
| 288 | // |
| 289 | // - For Text Sentiment: |
| 290 | // CSV file(s) with each line in format: |
| 291 | // ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),SENTIMENT |
| 292 | // TEXT_SNIPPET and GCS_FILE_PATH are distinguished by a pattern. If |
| 293 | // the column content is a valid gcs file path, that is, prefixed by |
| 294 | // "gs://", it is treated as a GCS_FILE_PATH, otherwise it is treated |
| 295 | // as a TEXT_SNIPPET. In the GCS_FILE_PATH case, the path |
| 296 | // must lead to a .txt file with UTF-8 encoding, for example, |
| 297 | // "gs://folder/content.txt", and the content in it is extracted |
| 298 | // as a text snippet. In TEXT_SNIPPET case, the column content itself |
| 299 | // is treated as to be imported text snippet. In both cases, the |
| 300 | // text snippet must be up to 500 characters long. |
| 301 | // Sample rows: |
| 302 | // TRAIN,"@freewrytin this is way too good for your product",2 |
| 303 | // TRAIN,"I need this product so bad",3 |
| 304 | // TEST,"Thank you for this product.",4 |
| 305 | // VALIDATE,gs://folder/content.txt,2 |
| 306 | // |
| 307 | // - For Tables: |
| 308 | // Either |
| 309 | // [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or |
| 310 | // |
| 311 | // [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source] |
| 312 | // |
| 313 | // can be used. All inputs is concatenated into a single |
| 314 | // |
| 315 | // [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_name] |
| 316 | // |
| 317 | // For gcs_source: |
| 318 | // CSV file(s), where the first row of the first file is the header, |
| 319 | // containing unique column names. If the first row of a subsequent |
| 320 | // file is the same as the header, then it is also treated as a |
| 321 | // header. All other rows contain values for the corresponding |
| 322 | // columns. |
| 323 | // Each .CSV file by itself must be 10GB or smaller, and their total |
| 324 | // size must be 100GB or smaller. |
| 325 | // First three sample rows of a CSV file: |
| 326 | // "Id","First Name","Last Name","Dob","Addresses" |
| 327 | // |
| 328 | // "1","John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]" |
| 329 | // |
| 330 | // "2","Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]} |
| 331 | // |
| 332 | // For bigquery_source: |
| 333 | // An URI of a BigQuery table. The user data size of the BigQuery |
| 334 | // table must be 100GB or smaller. |
| 335 | // An imported table must have between 2 and 1,000 columns, inclusive, |
| 336 | // and between 1000 and 100,000,000 rows, inclusive. There are at most 5 |
| 337 | // import data running in parallel. |
| 338 | // Definitions: |
| 339 | // ML_USE = "TRAIN" | "VALIDATE" | "TEST" | "UNASSIGNED" |
| 340 | // Describes how the given example (file) should be used for model |
| 341 | // training. "UNASSIGNED" can be used when user has no preference. |
| 342 | // GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/image1.png". |
| 343 | // LABEL = A display name of an object on an image, video etc., e.g. "dog". |
| 344 | // Must be up to 32 characters long and can consist only of ASCII |
| 345 | // Latin letters A-Z and a-z, underscores(_), and ASCII digits 0-9. |
| 346 | // For each label an AnnotationSpec is created which display_name |
| 347 | // becomes the label; AnnotationSpecs are given back in predictions. |
| 348 | // INSTANCE_ID = A positive integer that identifies a specific instance of a |
| 349 | // labeled entity on an example. Used e.g. to track two cars on |
| 350 | // a video while being able to tell apart which one is which. |
| 351 | // BOUNDING_BOX = VERTEX,VERTEX,VERTEX,VERTEX | VERTEX,,,VERTEX,, |
| 352 | // A rectangle parallel to the frame of the example (image, |
| 353 | // video). If 4 vertices are given they are connected by edges |
| 354 | // in the order provided, if 2 are given they are recognized |
| 355 | // as diagonally opposite vertices of the rectangle. |
| 356 | // VERTEX = COORDINATE,COORDINATE |
| 357 | // First coordinate is horizontal (x), the second is vertical (y). |
| 358 | // COORDINATE = A float in 0 to 1 range, relative to total length of |
| 359 | // image or video in given dimension. For fractions the |
| 360 | // leading non-decimal 0 can be omitted (i.e. 0.3 = .3). |
| 361 | // Point 0,0 is in top left. |
| 362 | // TIME_SEGMENT_START = TIME_OFFSET |
| 363 | // Expresses a beginning, inclusive, of a time segment |
| 364 | // within an example that has a time dimension |
| 365 | // (e.g. video). |
| 366 | // TIME_SEGMENT_END = TIME_OFFSET |
| 367 | // Expresses an end, exclusive, of a time segment within |
| 368 | // an example that has a time dimension (e.g. video). |
| 369 | // TIME_OFFSET = A number of seconds as measured from the start of an |
| 370 | // example (e.g. video). Fractions are allowed, up to a |
| 371 | // microsecond precision. "inf" is allowed, and it means the end |
| 372 | // of the example. |
| 373 | // TEXT_SNIPPET = A content of a text snippet, UTF-8 encoded, enclosed within |
| 374 | // double quotes (""). |
| 375 | // SENTIMENT = An integer between 0 and |
| 376 | // Dataset.text_sentiment_dataset_metadata.sentiment_max |
| 377 | // (inclusive). Describes the ordinal of the sentiment - higher |
| 378 | // value means a more positive sentiment. All the values are |
| 379 | // completely relative, i.e. neither 0 needs to mean a negative or |
| 380 | // neutral sentiment nor sentiment_max needs to mean a positive one |
| 381 | // - it is just required that 0 is the least positive sentiment |
| 382 | // in the data, and sentiment_max is the most positive one. |
| 383 | // The SENTIMENT shouldn't be confused with "score" or "magnitude" |
| 384 | // from the previous Natural Language Sentiment Analysis API. |
| 385 | // All SENTIMENT values between 0 and sentiment_max must be |
| 386 | // represented in the imported data. On prediction the same 0 to |
| 387 | // sentiment_max range will be used. The difference between |
| 388 | // neighboring sentiment values needs not to be uniform, e.g. 1 and |
| 389 | // 2 may be similar whereas the difference between 2 and 3 may be |
| 390 | // huge. |
| 391 | // |
| 392 | // Errors: |
| 393 | // If any of the provided CSV files can't be parsed or if more than certain |
| 394 | // percent of CSV rows cannot be processed then the operation fails and |
| 395 | // nothing is imported. Regardless of overall success or failure the per-row |
| 396 | // failures, up to a certain count cap, is listed in |
| 397 | // Operation.metadata.partial_failures. |
| 398 | type InputConfig struct { |
| 399 | state protoimpl.MessageState |
| 400 | sizeCache protoimpl.SizeCache |
| 401 | unknownFields protoimpl.UnknownFields |
| 402 | |
| 403 | // The source of the input. |
| 404 | // |
| 405 | // Types that are assignable to Source: |
| 406 | // |
| 407 | // *InputConfig_GcsSource |
| 408 | // *InputConfig_BigquerySource |
| 409 | Source isInputConfig_Source `protobuf_oneof:"source"` |
| 410 | // Additional domain-specific parameters describing the semantic of the |
| 411 | // imported data, any string must be up to 25000 |
| 412 | // characters long. |
| 413 | // |
| 414 | // - For Tables: |
| 415 | // `schema_inference_version` - (integer) Required. The version of the |
| 416 | // algorithm that should be used for the initial inference of the |
| 417 | // schema (columns' DataTypes) of the table the data is being imported |
| 418 | // into. Allowed values: "1". |
| 419 | Params map[string]string `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 420 | } |
| 421 | |
| 422 | func (x *InputConfig) Reset() { |
| 423 | *x = InputConfig{} |
| 424 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[0] |
| 425 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 426 | ms.StoreMessageInfo(mi) |
| 427 | } |
| 428 | |
| 429 | func (x *InputConfig) String() string { |
| 430 | return protoimpl.X.MessageStringOf(x) |
| 431 | } |
| 432 | |
| 433 | func (*InputConfig) ProtoMessage() {} |
| 434 | |
| 435 | func (x *InputConfig) ProtoReflect() protoreflect.Message { |
| 436 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[0] |
| 437 | if x != nil { |
| 438 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 439 | if ms.LoadMessageInfo() == nil { |
| 440 | ms.StoreMessageInfo(mi) |
| 441 | } |
| 442 | return ms |
| 443 | } |
| 444 | return mi.MessageOf(x) |
| 445 | } |
| 446 | |
| 447 | // Deprecated: Use InputConfig.ProtoReflect.Descriptor instead. |
| 448 | func (*InputConfig) Descriptor() ([]byte, []int) { |
| 449 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{0} |
| 450 | } |
| 451 | |
| 452 | func (m *InputConfig) GetSource() isInputConfig_Source { |
| 453 | if m != nil { |
| 454 | return m.Source |
| 455 | } |
| 456 | return nil |
| 457 | } |
| 458 | |
| 459 | func (x *InputConfig) GetGcsSource() *GcsSource { |
| 460 | if x, ok := x.GetSource().(*InputConfig_GcsSource); ok { |
| 461 | return x.GcsSource |
| 462 | } |
| 463 | return nil |
| 464 | } |
| 465 | |
| 466 | func (x *InputConfig) GetBigquerySource() *BigQuerySource { |
| 467 | if x, ok := x.GetSource().(*InputConfig_BigquerySource); ok { |
| 468 | return x.BigquerySource |
| 469 | } |
| 470 | return nil |
| 471 | } |
| 472 | |
| 473 | func (x *InputConfig) GetParams() map[string]string { |
| 474 | if x != nil { |
| 475 | return x.Params |
| 476 | } |
| 477 | return nil |
| 478 | } |
| 479 | |
| 480 | type isInputConfig_Source interface { |
| 481 | isInputConfig_Source() |
| 482 | } |
| 483 | |
| 484 | type InputConfig_GcsSource struct { |
| 485 | // The Google Cloud Storage location for the input content. |
| 486 | // In ImportData, the gcs_source points to a csv with structure described in |
| 487 | // the comment. |
| 488 | GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"` |
| 489 | } |
| 490 | |
| 491 | type InputConfig_BigquerySource struct { |
| 492 | // The BigQuery location for the input content. |
| 493 | BigquerySource *BigQuerySource `protobuf:"bytes,3,opt,name=bigquery_source,json=bigquerySource,proto3,oneof"` |
| 494 | } |
| 495 | |
| 496 | func (*InputConfig_GcsSource) isInputConfig_Source() {} |
| 497 | |
| 498 | func (*InputConfig_BigquerySource) isInputConfig_Source() {} |
| 499 | |
| 500 | // Input configuration for BatchPredict Action. |
| 501 | // |
| 502 | // The format of input depends on the ML problem of the model used for |
| 503 | // prediction. As input source the |
| 504 | // [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] |
| 505 | // is expected, unless specified otherwise. |
| 506 | // |
| 507 | // The formats are represented in EBNF with commas being literal and with |
| 508 | // non-terminal symbols defined near the end of this comment. The formats |
| 509 | // are: |
| 510 | // |
| 511 | // - For Image Classification: |
| 512 | // CSV file(s) with each line having just a single column: |
| 513 | // GCS_FILE_PATH |
| 514 | // which leads to image of up to 30MB in size. Supported |
| 515 | // extensions: .JPEG, .GIF, .PNG. This path is treated as the ID in |
| 516 | // the Batch predict output. |
| 517 | // Three sample rows: |
| 518 | // gs://folder/image1.jpeg |
| 519 | // gs://folder/image2.gif |
| 520 | // gs://folder/image3.png |
| 521 | // |
| 522 | // - For Image Object Detection: |
| 523 | // CSV file(s) with each line having just a single column: |
| 524 | // GCS_FILE_PATH |
| 525 | // which leads to image of up to 30MB in size. Supported |
| 526 | // extensions: .JPEG, .GIF, .PNG. This path is treated as the ID in |
| 527 | // the Batch predict output. |
| 528 | // Three sample rows: |
| 529 | // gs://folder/image1.jpeg |
| 530 | // gs://folder/image2.gif |
| 531 | // gs://folder/image3.png |
| 532 | // |
| 533 | // - For Video Classification: |
| 534 | // CSV file(s) with each line in format: |
| 535 | // GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END |
| 536 | // GCS_FILE_PATH leads to video of up to 50GB in size and up to 3h |
| 537 | // duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. |
| 538 | // TIME_SEGMENT_START and TIME_SEGMENT_END must be within the |
| 539 | // length of the video, and end has to be after the start. |
| 540 | // Three sample rows: |
| 541 | // gs://folder/video1.mp4,10,40 |
| 542 | // gs://folder/video1.mp4,20,60 |
| 543 | // gs://folder/vid2.mov,0,inf |
| 544 | // |
| 545 | // - For Video Object Tracking: |
| 546 | // CSV file(s) with each line in format: |
| 547 | // GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END |
| 548 | // GCS_FILE_PATH leads to video of up to 50GB in size and up to 3h |
| 549 | // duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. |
| 550 | // TIME_SEGMENT_START and TIME_SEGMENT_END must be within the |
| 551 | // length of the video, and end has to be after the start. |
| 552 | // Three sample rows: |
| 553 | // gs://folder/video1.mp4,10,240 |
| 554 | // gs://folder/video1.mp4,300,360 |
| 555 | // gs://folder/vid2.mov,0,inf |
| 556 | // |
| 557 | // - For Text Classification: |
| 558 | // CSV file(s) with each line having just a single column: |
| 559 | // GCS_FILE_PATH | TEXT_SNIPPET |
| 560 | // Any given text file can have size upto 128kB. |
| 561 | // Any given text snippet content must have 60,000 characters or less. |
| 562 | // Three sample rows: |
| 563 | // gs://folder/text1.txt |
| 564 | // "Some text content to predict" |
| 565 | // gs://folder/text3.pdf |
| 566 | // Supported file extensions: .txt, .pdf |
| 567 | // |
| 568 | // - For Text Sentiment: |
| 569 | // CSV file(s) with each line having just a single column: |
| 570 | // GCS_FILE_PATH | TEXT_SNIPPET |
| 571 | // Any given text file can have size upto 128kB. |
| 572 | // Any given text snippet content must have 500 characters or less. |
| 573 | // Three sample rows: |
| 574 | // gs://folder/text1.txt |
| 575 | // "Some text content to predict" |
| 576 | // gs://folder/text3.pdf |
| 577 | // Supported file extensions: .txt, .pdf |
| 578 | // |
| 579 | // - For Text Extraction |
| 580 | // .JSONL (i.e. JSON Lines) file(s) which either provide text in-line or |
| 581 | // as documents (for a single BatchPredict call only one of the these |
| 582 | // formats may be used). |
| 583 | // The in-line .JSONL file(s) contain per line a proto that |
| 584 | // wraps a temporary user-assigned TextSnippet ID (string up to 2000 |
| 585 | // characters long) called "id", a TextSnippet proto (in |
| 586 | // json representation) and zero or more TextFeature protos. Any given |
| 587 | // text snippet content must have 30,000 characters or less, and also |
| 588 | // be UTF-8 NFC encoded (ASCII already is). The IDs provided should be |
| 589 | // unique. |
| 590 | // The document .JSONL file(s) contain, per line, a proto that wraps a |
| 591 | // Document proto with input_config set. Only PDF documents are |
| 592 | // supported now, and each document must be up to 2MB large. |
| 593 | // Any given .JSONL file must be 100MB or smaller, and no more than 20 |
| 594 | // files may be given. |
| 595 | // Sample in-line JSON Lines file (presented here with artificial line |
| 596 | // breaks, but the only actual line break is denoted by \n): |
| 597 | // { |
| 598 | // "id": "my_first_id", |
| 599 | // "text_snippet": { "content": "dog car cat"}, |
| 600 | // "text_features": [ |
| 601 | // { |
| 602 | // "text_segment": {"start_offset": 4, "end_offset": 6}, |
| 603 | // "structural_type": PARAGRAPH, |
| 604 | // "bounding_poly": { |
| 605 | // "normalized_vertices": [ |
| 606 | // {"x": 0.1, "y": 0.1}, |
| 607 | // {"x": 0.1, "y": 0.3}, |
| 608 | // {"x": 0.3, "y": 0.3}, |
| 609 | // {"x": 0.3, "y": 0.1}, |
| 610 | // ] |
| 611 | // }, |
| 612 | // } |
| 613 | // ], |
| 614 | // }\n |
| 615 | // { |
| 616 | // "id": "2", |
| 617 | // "text_snippet": { |
| 618 | // "content": "An elaborate content", |
| 619 | // "mime_type": "text/plain" |
| 620 | // } |
| 621 | // } |
| 622 | // Sample document JSON Lines file (presented here with artificial line |
| 623 | // breaks, but the only actual line break is denoted by \n).: |
| 624 | // { |
| 625 | // "document": { |
| 626 | // "input_config": { |
| 627 | // "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ] |
| 628 | // } |
| 629 | // } |
| 630 | // } |
| 631 | // }\n |
| 632 | // { |
| 633 | // "document": { |
| 634 | // "input_config": { |
| 635 | // "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ] |
| 636 | // } |
| 637 | // } |
| 638 | // } |
| 639 | // } |
| 640 | // |
| 641 | // - For Tables: |
| 642 | // Either |
| 643 | // [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or |
| 644 | // |
| 645 | // [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source]. |
| 646 | // |
| 647 | // GCS case: |
| 648 | // CSV file(s), each by itself 10GB or smaller and total size must be |
| 649 | // 100GB or smaller, where first file must have a header containing |
| 650 | // column names. If the first row of a subsequent file is the same as |
| 651 | // the header, then it is also treated as a header. All other rows |
| 652 | // contain values for the corresponding columns. |
| 653 | // The column names must contain the model's |
| 654 | // |
| 655 | // [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] |
| 656 | // |
| 657 | // [display_name-s][google.cloud.automl.v1beta1.ColumnSpec.display_name] |
| 658 | // |
| 659 | // (order doesn't matter). The columns corresponding to the model's |
| 660 | // input feature column specs must contain values compatible with the |
| 661 | // column spec's data types. Prediction on all the rows, i.e. the CSV |
| 662 | // lines, will be attempted. For FORECASTING |
| 663 | // |
| 664 | // [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]: |
| 665 | // |
| 666 | // all columns having |
| 667 | // |
| 668 | // [TIME_SERIES_AVAILABLE_PAST_ONLY][google.cloud.automl.v1beta1.ColumnSpec.ForecastingMetadata.ColumnType] |
| 669 | // |
| 670 | // type will be ignored. |
| 671 | // First three sample rows of a CSV file: |
| 672 | // "First Name","Last Name","Dob","Addresses" |
| 673 | // |
| 674 | // "John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]" |
| 675 | // |
| 676 | // "Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]} |
| 677 | // |
| 678 | // BigQuery case: |
| 679 | // An URI of a BigQuery table. The user data size of the BigQuery |
| 680 | // table must be 100GB or smaller. |
| 681 | // The column names must contain the model's |
| 682 | // |
| 683 | // [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] |
| 684 | // |
| 685 | // [display_name-s][google.cloud.automl.v1beta1.ColumnSpec.display_name] |
| 686 | // |
| 687 | // (order doesn't matter). The columns corresponding to the model's |
| 688 | // input feature column specs must contain values compatible with the |
| 689 | // column spec's data types. Prediction on all the rows of the table |
| 690 | // will be attempted. For FORECASTING |
| 691 | // |
| 692 | // [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]: |
| 693 | // |
| 694 | // all columns having |
| 695 | // |
| 696 | // [TIME_SERIES_AVAILABLE_PAST_ONLY][google.cloud.automl.v1beta1.ColumnSpec.ForecastingMetadata.ColumnType] |
| 697 | // |
| 698 | // type will be ignored. |
| 699 | // |
| 700 | // Definitions: |
| 701 | // GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/video.avi". |
| 702 | // TEXT_SNIPPET = A content of a text snippet, UTF-8 encoded, enclosed within |
| 703 | // double quotes ("") |
| 704 | // TIME_SEGMENT_START = TIME_OFFSET |
| 705 | // Expresses a beginning, inclusive, of a time segment |
| 706 | // within an |
| 707 | // example that has a time dimension (e.g. video). |
| 708 | // TIME_SEGMENT_END = TIME_OFFSET |
| 709 | // Expresses an end, exclusive, of a time segment within |
| 710 | // an example that has a time dimension (e.g. video). |
| 711 | // TIME_OFFSET = A number of seconds as measured from the start of an |
| 712 | // example (e.g. video). Fractions are allowed, up to a |
| 713 | // microsecond precision. "inf" is allowed and it means the end |
| 714 | // of the example. |
| 715 | // |
| 716 | // Errors: |
| 717 | // If any of the provided CSV files can't be parsed or if more than certain |
| 718 | // percent of CSV rows cannot be processed then the operation fails and |
| 719 | // prediction does not happen. Regardless of overall success or failure the |
| 720 | // per-row failures, up to a certain count cap, will be listed in |
| 721 | // Operation.metadata.partial_failures. |
| 722 | type BatchPredictInputConfig struct { |
| 723 | state protoimpl.MessageState |
| 724 | sizeCache protoimpl.SizeCache |
| 725 | unknownFields protoimpl.UnknownFields |
| 726 | |
| 727 | // Required. The source of the input. |
| 728 | // |
| 729 | // Types that are assignable to Source: |
| 730 | // |
| 731 | // *BatchPredictInputConfig_GcsSource |
| 732 | // *BatchPredictInputConfig_BigquerySource |
| 733 | Source isBatchPredictInputConfig_Source `protobuf_oneof:"source"` |
| 734 | } |
| 735 | |
| 736 | func (x *BatchPredictInputConfig) Reset() { |
| 737 | *x = BatchPredictInputConfig{} |
| 738 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[1] |
| 739 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 740 | ms.StoreMessageInfo(mi) |
| 741 | } |
| 742 | |
| 743 | func (x *BatchPredictInputConfig) String() string { |
| 744 | return protoimpl.X.MessageStringOf(x) |
| 745 | } |
| 746 | |
| 747 | func (*BatchPredictInputConfig) ProtoMessage() {} |
| 748 | |
| 749 | func (x *BatchPredictInputConfig) ProtoReflect() protoreflect.Message { |
| 750 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[1] |
| 751 | if x != nil { |
| 752 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 753 | if ms.LoadMessageInfo() == nil { |
| 754 | ms.StoreMessageInfo(mi) |
| 755 | } |
| 756 | return ms |
| 757 | } |
| 758 | return mi.MessageOf(x) |
| 759 | } |
| 760 | |
| 761 | // Deprecated: Use BatchPredictInputConfig.ProtoReflect.Descriptor instead. |
| 762 | func (*BatchPredictInputConfig) Descriptor() ([]byte, []int) { |
| 763 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{1} |
| 764 | } |
| 765 | |
| 766 | func (m *BatchPredictInputConfig) GetSource() isBatchPredictInputConfig_Source { |
| 767 | if m != nil { |
| 768 | return m.Source |
| 769 | } |
| 770 | return nil |
| 771 | } |
| 772 | |
| 773 | func (x *BatchPredictInputConfig) GetGcsSource() *GcsSource { |
| 774 | if x, ok := x.GetSource().(*BatchPredictInputConfig_GcsSource); ok { |
| 775 | return x.GcsSource |
| 776 | } |
| 777 | return nil |
| 778 | } |
| 779 | |
| 780 | func (x *BatchPredictInputConfig) GetBigquerySource() *BigQuerySource { |
| 781 | if x, ok := x.GetSource().(*BatchPredictInputConfig_BigquerySource); ok { |
| 782 | return x.BigquerySource |
| 783 | } |
| 784 | return nil |
| 785 | } |
| 786 | |
| 787 | type isBatchPredictInputConfig_Source interface { |
| 788 | isBatchPredictInputConfig_Source() |
| 789 | } |
| 790 | |
| 791 | type BatchPredictInputConfig_GcsSource struct { |
| 792 | // The Google Cloud Storage location for the input content. |
| 793 | GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"` |
| 794 | } |
| 795 | |
| 796 | type BatchPredictInputConfig_BigquerySource struct { |
| 797 | // The BigQuery location for the input content. |
| 798 | BigquerySource *BigQuerySource `protobuf:"bytes,2,opt,name=bigquery_source,json=bigquerySource,proto3,oneof"` |
| 799 | } |
| 800 | |
| 801 | func (*BatchPredictInputConfig_GcsSource) isBatchPredictInputConfig_Source() {} |
| 802 | |
| 803 | func (*BatchPredictInputConfig_BigquerySource) isBatchPredictInputConfig_Source() {} |
| 804 | |
| 805 | // Input configuration of a [Document][google.cloud.automl.v1beta1.Document]. |
| 806 | type DocumentInputConfig struct { |
| 807 | state protoimpl.MessageState |
| 808 | sizeCache protoimpl.SizeCache |
| 809 | unknownFields protoimpl.UnknownFields |
| 810 | |
| 811 | // The Google Cloud Storage location of the document file. Only a single path |
| 812 | // should be given. |
| 813 | // Max supported size: 512MB. |
| 814 | // Supported extensions: .PDF. |
| 815 | GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3" json:"gcs_source,omitempty"` |
| 816 | } |
| 817 | |
| 818 | func (x *DocumentInputConfig) Reset() { |
| 819 | *x = DocumentInputConfig{} |
| 820 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[2] |
| 821 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 822 | ms.StoreMessageInfo(mi) |
| 823 | } |
| 824 | |
| 825 | func (x *DocumentInputConfig) String() string { |
| 826 | return protoimpl.X.MessageStringOf(x) |
| 827 | } |
| 828 | |
| 829 | func (*DocumentInputConfig) ProtoMessage() {} |
| 830 | |
| 831 | func (x *DocumentInputConfig) ProtoReflect() protoreflect.Message { |
| 832 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[2] |
| 833 | if x != nil { |
| 834 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 835 | if ms.LoadMessageInfo() == nil { |
| 836 | ms.StoreMessageInfo(mi) |
| 837 | } |
| 838 | return ms |
| 839 | } |
| 840 | return mi.MessageOf(x) |
| 841 | } |
| 842 | |
| 843 | // Deprecated: Use DocumentInputConfig.ProtoReflect.Descriptor instead. |
| 844 | func (*DocumentInputConfig) Descriptor() ([]byte, []int) { |
| 845 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{2} |
| 846 | } |
| 847 | |
| 848 | func (x *DocumentInputConfig) GetGcsSource() *GcsSource { |
| 849 | if x != nil { |
| 850 | return x.GcsSource |
| 851 | } |
| 852 | return nil |
| 853 | } |
| 854 | |
| 855 | // - For Translation: |
| 856 | // CSV file `translation.csv`, with each line in format: |
| 857 | // ML_USE,GCS_FILE_PATH |
| 858 | // GCS_FILE_PATH leads to a .TSV file which describes examples that have |
| 859 | // given ML_USE, using the following row format per line: |
| 860 | // TEXT_SNIPPET (in source language) \t TEXT_SNIPPET (in target |
| 861 | // language) |
| 862 | // |
| 863 | // - For Tables: |
| 864 | // Output depends on whether the dataset was imported from GCS or |
| 865 | // BigQuery. |
| 866 | // GCS case: |
| 867 | // |
| 868 | // [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination] |
| 869 | // |
| 870 | // must be set. Exported are CSV file(s) `tables_1.csv`, |
| 871 | // `tables_2.csv`,...,`tables_N.csv` with each having as header line |
| 872 | // the table's column names, and all other lines contain values for |
| 873 | // the header columns. |
| 874 | // BigQuery case: |
| 875 | // |
| 876 | // [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] |
| 877 | // |
| 878 | // pointing to a BigQuery project must be set. In the given project a |
| 879 | // new dataset will be created with name |
| 880 | // |
| 881 | // `export_data_<automl-dataset-display-name>_<timestamp-of-export-call>` |
| 882 | // |
| 883 | // where <automl-dataset-display-name> will be made |
| 884 | // BigQuery-dataset-name compatible (e.g. most special characters will |
| 885 | // become underscores), and timestamp will be in |
| 886 | // YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that |
| 887 | // dataset a new table called `primary_table` will be created, and |
| 888 | // filled with precisely the same data as this obtained on import. |
| 889 | type OutputConfig struct { |
| 890 | state protoimpl.MessageState |
| 891 | sizeCache protoimpl.SizeCache |
| 892 | unknownFields protoimpl.UnknownFields |
| 893 | |
| 894 | // Required. The destination of the output. |
| 895 | // |
| 896 | // Types that are assignable to Destination: |
| 897 | // |
| 898 | // *OutputConfig_GcsDestination |
| 899 | // *OutputConfig_BigqueryDestination |
| 900 | Destination isOutputConfig_Destination `protobuf_oneof:"destination"` |
| 901 | } |
| 902 | |
| 903 | func (x *OutputConfig) Reset() { |
| 904 | *x = OutputConfig{} |
| 905 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[3] |
| 906 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 907 | ms.StoreMessageInfo(mi) |
| 908 | } |
| 909 | |
| 910 | func (x *OutputConfig) String() string { |
| 911 | return protoimpl.X.MessageStringOf(x) |
| 912 | } |
| 913 | |
| 914 | func (*OutputConfig) ProtoMessage() {} |
| 915 | |
| 916 | func (x *OutputConfig) ProtoReflect() protoreflect.Message { |
| 917 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[3] |
| 918 | if x != nil { |
| 919 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 920 | if ms.LoadMessageInfo() == nil { |
| 921 | ms.StoreMessageInfo(mi) |
| 922 | } |
| 923 | return ms |
| 924 | } |
| 925 | return mi.MessageOf(x) |
| 926 | } |
| 927 | |
| 928 | // Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead. |
| 929 | func (*OutputConfig) Descriptor() ([]byte, []int) { |
| 930 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{3} |
| 931 | } |
| 932 | |
| 933 | func (m *OutputConfig) GetDestination() isOutputConfig_Destination { |
| 934 | if m != nil { |
| 935 | return m.Destination |
| 936 | } |
| 937 | return nil |
| 938 | } |
| 939 | |
| 940 | func (x *OutputConfig) GetGcsDestination() *GcsDestination { |
| 941 | if x, ok := x.GetDestination().(*OutputConfig_GcsDestination); ok { |
| 942 | return x.GcsDestination |
| 943 | } |
| 944 | return nil |
| 945 | } |
| 946 | |
| 947 | func (x *OutputConfig) GetBigqueryDestination() *BigQueryDestination { |
| 948 | if x, ok := x.GetDestination().(*OutputConfig_BigqueryDestination); ok { |
| 949 | return x.BigqueryDestination |
| 950 | } |
| 951 | return nil |
| 952 | } |
| 953 | |
| 954 | type isOutputConfig_Destination interface { |
| 955 | isOutputConfig_Destination() |
| 956 | } |
| 957 | |
| 958 | type OutputConfig_GcsDestination struct { |
| 959 | // The Google Cloud Storage location where the output is to be written to. |
| 960 | // For Image Object Detection, Text Extraction, Video Classification and |
| 961 | // Tables, in the given directory a new directory will be created with name: |
| 962 | // export_data-<dataset-display-name>-<timestamp-of-export-call> where |
| 963 | // timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export |
| 964 | // output will be written into that directory. |
| 965 | GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"` |
| 966 | } |
| 967 | |
| 968 | type OutputConfig_BigqueryDestination struct { |
| 969 | // The BigQuery location where the output is to be written to. |
| 970 | BigqueryDestination *BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"` |
| 971 | } |
| 972 | |
| 973 | func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {} |
| 974 | |
| 975 | func (*OutputConfig_BigqueryDestination) isOutputConfig_Destination() {} |
| 976 | |
| 977 | // Output configuration for BatchPredict Action. |
| 978 | // |
| 979 | // # As destination the |
| 980 | // |
| 981 | // [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination] |
| 982 | // must be set unless specified otherwise for a domain. If gcs_destination is |
| 983 | // set then in the given directory a new directory is created. Its name |
| 984 | // will be |
| 985 | // "prediction-<model-display-name>-<timestamp-of-prediction-call>", |
| 986 | // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. The contents |
| 987 | // of it depends on the ML problem the predictions are made for. |
| 988 | // |
| 989 | // - For Image Classification: |
| 990 | // In the created directory files `image_classification_1.jsonl`, |
| 991 | // `image_classification_2.jsonl`,...,`image_classification_N.jsonl` |
| 992 | // will be created, where N may be 1, and depends on the |
| 993 | // total number of the successfully predicted images and annotations. |
| 994 | // A single image will be listed only once with all its annotations, |
| 995 | // and its annotations will never be split across files. |
| 996 | // Each .JSONL file will contain, per line, a JSON representation of a |
| 997 | // proto that wraps image's "ID" : "<id_value>" followed by a list of |
| 998 | // zero or more AnnotationPayload protos (called annotations), which |
| 999 | // have classification detail populated. |
| 1000 | // If prediction for any image failed (partially or completely), then an |
| 1001 | // additional `errors_1.jsonl`, `errors_2.jsonl`,..., `errors_N.jsonl` |
| 1002 | // files will be created (N depends on total number of failed |
| 1003 | // predictions). These files will have a JSON representation of a proto |
| 1004 | // that wraps the same "ID" : "<id_value>" but here followed by |
| 1005 | // exactly one |
| 1006 | // |
| 1007 | // [`google.rpc.Status`](https: |
| 1008 | // //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) |
| 1009 | // |
| 1010 | // containing only `code` and `message`fields. |
| 1011 | // |
| 1012 | // * For Image Object Detection: |
| 1013 | // In the created directory files `image_object_detection_1.jsonl`, |
| 1014 | // `image_object_detection_2.jsonl`,...,`image_object_detection_N.jsonl` |
| 1015 | // will be created, where N may be 1, and depends on the |
| 1016 | // total number of the successfully predicted images and annotations. |
| 1017 | // Each .JSONL file will contain, per line, a JSON representation of a |
| 1018 | // proto that wraps image's "ID" : "<id_value>" followed by a list of |
| 1019 | // zero or more AnnotationPayload protos (called annotations), which |
| 1020 | // have image_object_detection detail populated. A single image will |
| 1021 | // be listed only once with all its annotations, and its annotations |
| 1022 | // will never be split across files. |
| 1023 | // If prediction for any image failed (partially or completely), then |
| 1024 | // additional `errors_1.jsonl`, `errors_2.jsonl`,..., `errors_N.jsonl` |
| 1025 | // files will be created (N depends on total number of failed |
| 1026 | // predictions). These files will have a JSON representation of a proto |
| 1027 | // that wraps the same "ID" : "<id_value>" but here followed by |
| 1028 | // exactly one |
| 1029 | // |
| 1030 | // [`google.rpc.Status`](https: |
| 1031 | // //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) |
| 1032 | // |
| 1033 | // containing only `code` and `message`fields. |
| 1034 | // * For Video Classification: |
| 1035 | // In the created directory a video_classification.csv file, and a .JSON |
| 1036 | // file per each video classification requested in the input (i.e. each |
| 1037 | // line in given CSV(s)), will be created. |
| 1038 | // |
| 1039 | // The format of video_classification.csv is: |
| 1040 | // |
| 1041 | // GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS |
| 1042 | // |
| 1043 | // where: |
| 1044 | // GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1 |
| 1045 | // the prediction input lines (i.e. video_classification.csv has |
| 1046 | // precisely the same number of lines as the prediction input had.) |
| 1047 | // JSON_FILE_NAME = Name of .JSON file in the output directory, which |
| 1048 | // contains prediction responses for the video time segment. |
| 1049 | // STATUS = "OK" if prediction completed successfully, or an error code |
| 1050 | // with message otherwise. If STATUS is not "OK" then the .JSON file |
| 1051 | // for that line may not exist or be empty. |
| 1052 | // |
| 1053 | // Each .JSON file, assuming STATUS is "OK", will contain a list of |
| 1054 | // AnnotationPayload protos in JSON format, which are the predictions |
| 1055 | // for the video time segment the file is assigned to in the |
| 1056 | // video_classification.csv. All AnnotationPayload protos will have |
| 1057 | // video_classification field set, and will be sorted by |
| 1058 | // video_classification.type field (note that the returned types are |
| 1059 | // governed by `classifaction_types` parameter in |
| 1060 | // [PredictService.BatchPredictRequest.params][]). |
| 1061 | // |
| 1062 | // * For Video Object Tracking: |
| 1063 | // In the created directory a video_object_tracking.csv file will be |
| 1064 | // created, and multiple files video_object_trackinng_1.json, |
| 1065 | // video_object_trackinng_2.json,..., video_object_trackinng_N.json, |
| 1066 | // where N is the number of requests in the input (i.e. the number of |
| 1067 | // lines in given CSV(s)). |
| 1068 | // |
| 1069 | // The format of video_object_tracking.csv is: |
| 1070 | // |
| 1071 | // GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS |
| 1072 | // |
| 1073 | // where: |
| 1074 | // GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1 |
| 1075 | // the prediction input lines (i.e. video_object_tracking.csv has |
| 1076 | // precisely the same number of lines as the prediction input had.) |
| 1077 | // JSON_FILE_NAME = Name of .JSON file in the output directory, which |
| 1078 | // contains prediction responses for the video time segment. |
| 1079 | // STATUS = "OK" if prediction completed successfully, or an error |
| 1080 | // code with message otherwise. If STATUS is not "OK" then the .JSON |
| 1081 | // file for that line may not exist or be empty. |
| 1082 | // |
| 1083 | // Each .JSON file, assuming STATUS is "OK", will contain a list of |
| 1084 | // AnnotationPayload protos in JSON format, which are the predictions |
| 1085 | // for each frame of the video time segment the file is assigned to in |
| 1086 | // video_object_tracking.csv. All AnnotationPayload protos will have |
| 1087 | // video_object_tracking field set. |
| 1088 | // * For Text Classification: |
| 1089 | // In the created directory files `text_classification_1.jsonl`, |
| 1090 | // `text_classification_2.jsonl`,...,`text_classification_N.jsonl` |
| 1091 | // will be created, where N may be 1, and depends on the |
| 1092 | // total number of inputs and annotations found. |
| 1093 | // |
| 1094 | // Each .JSONL file will contain, per line, a JSON representation of a |
| 1095 | // proto that wraps input text snippet or input text file and a list of |
| 1096 | // zero or more AnnotationPayload protos (called annotations), which |
| 1097 | // have classification detail populated. A single text snippet or file |
| 1098 | // will be listed only once with all its annotations, and its |
| 1099 | // annotations will never be split across files. |
| 1100 | // |
| 1101 | // If prediction for any text snippet or file failed (partially or |
| 1102 | // completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,..., |
| 1103 | // `errors_N.jsonl` files will be created (N depends on total number of |
| 1104 | // failed predictions). These files will have a JSON representation of a |
| 1105 | // proto that wraps input text snippet or input text file followed by |
| 1106 | // exactly one |
| 1107 | // |
| 1108 | // [`google.rpc.Status`](https: |
| 1109 | // //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) |
| 1110 | // |
| 1111 | // containing only `code` and `message`. |
| 1112 | // |
| 1113 | // * For Text Sentiment: |
| 1114 | // In the created directory files `text_sentiment_1.jsonl`, |
| 1115 | // `text_sentiment_2.jsonl`,...,`text_sentiment_N.jsonl` |
| 1116 | // will be created, where N may be 1, and depends on the |
| 1117 | // total number of inputs and annotations found. |
| 1118 | // |
| 1119 | // Each .JSONL file will contain, per line, a JSON representation of a |
| 1120 | // proto that wraps input text snippet or input text file and a list of |
| 1121 | // zero or more AnnotationPayload protos (called annotations), which |
| 1122 | // have text_sentiment detail populated. A single text snippet or file |
| 1123 | // will be listed only once with all its annotations, and its |
| 1124 | // annotations will never be split across files. |
| 1125 | // |
| 1126 | // If prediction for any text snippet or file failed (partially or |
| 1127 | // completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,..., |
| 1128 | // `errors_N.jsonl` files will be created (N depends on total number of |
| 1129 | // failed predictions). These files will have a JSON representation of a |
| 1130 | // proto that wraps input text snippet or input text file followed by |
| 1131 | // exactly one |
| 1132 | // |
| 1133 | // [`google.rpc.Status`](https: |
| 1134 | // //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) |
| 1135 | // |
| 1136 | // containing only `code` and `message`. |
| 1137 | // |
| 1138 | // * For Text Extraction: |
| 1139 | // In the created directory files `text_extraction_1.jsonl`, |
| 1140 | // `text_extraction_2.jsonl`,...,`text_extraction_N.jsonl` |
| 1141 | // will be created, where N may be 1, and depends on the |
| 1142 | // total number of inputs and annotations found. |
| 1143 | // The contents of these .JSONL file(s) depend on whether the input |
| 1144 | // used inline text, or documents. |
| 1145 | // If input was inline, then each .JSONL file will contain, per line, |
| 1146 | // a JSON representation of a proto that wraps given in request text |
| 1147 | // snippet's "id" (if specified), followed by input text snippet, |
| 1148 | // and a list of zero or more |
| 1149 | // AnnotationPayload protos (called annotations), which have |
| 1150 | // text_extraction detail populated. A single text snippet will be |
| 1151 | // listed only once with all its annotations, and its annotations will |
| 1152 | // never be split across files. |
| 1153 | // If input used documents, then each .JSONL file will contain, per |
| 1154 | // line, a JSON representation of a proto that wraps given in request |
| 1155 | // document proto, followed by its OCR-ed representation in the form |
| 1156 | // of a text snippet, finally followed by a list of zero or more |
| 1157 | // AnnotationPayload protos (called annotations), which have |
| 1158 | // text_extraction detail populated and refer, via their indices, to |
| 1159 | // the OCR-ed text snippet. A single document (and its text snippet) |
| 1160 | // will be listed only once with all its annotations, and its |
| 1161 | // annotations will never be split across files. |
| 1162 | // If prediction for any text snippet failed (partially or completely), |
| 1163 | // then additional `errors_1.jsonl`, `errors_2.jsonl`,..., |
| 1164 | // `errors_N.jsonl` files will be created (N depends on total number of |
| 1165 | // failed predictions). These files will have a JSON representation of a |
| 1166 | // proto that wraps either the "id" : "<id_value>" (in case of inline) |
| 1167 | // or the document proto (in case of document) but here followed by |
| 1168 | // exactly one |
| 1169 | // |
| 1170 | // [`google.rpc.Status`](https: |
| 1171 | // //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) |
| 1172 | // |
| 1173 | // containing only `code` and `message`. |
| 1174 | // |
| 1175 | // * For Tables: |
| 1176 | // Output depends on whether |
| 1177 | // |
| 1178 | // [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination] |
| 1179 | // |
| 1180 | // or |
| 1181 | // |
| 1182 | // [bigquery_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.bigquery_destination] |
| 1183 | // |
| 1184 | // is set (either is allowed). |
| 1185 | // GCS case: |
| 1186 | // In the created directory files `tables_1.csv`, `tables_2.csv`,..., |
| 1187 | // `tables_N.csv` will be created, where N may be 1, and depends on |
| 1188 | // the total number of the successfully predicted rows. |
| 1189 | // For all CLASSIFICATION |
| 1190 | // |
| 1191 | // [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]: |
| 1192 | // |
| 1193 | // Each .csv file will contain a header, listing all columns' |
| 1194 | // |
| 1195 | // [display_name-s][google.cloud.automl.v1beta1.ColumnSpec.display_name] |
| 1196 | // |
| 1197 | // given on input followed by M target column names in the format of |
| 1198 | // |
| 1199 | // "<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] |
| 1200 | // |
| 1201 | // [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>_<target |
| 1202 | // |
| 1203 | // value>_score" where M is the number of distinct target values, |
| 1204 | // i.e. number of distinct values in the target column of the table |
| 1205 | // used to train the model. Subsequent lines will contain the |
| 1206 | // respective values of successfully predicted rows, with the last, |
| 1207 | // i.e. the target, columns having the corresponding prediction |
| 1208 | // [scores][google.cloud.automl.v1beta1.TablesAnnotation.score]. |
| 1209 | // For REGRESSION and FORECASTING |
| 1210 | // |
| 1211 | // [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]: |
| 1212 | // |
| 1213 | // Each .csv file will contain a header, listing all columns' |
| 1214 | // [display_name-s][google.cloud.automl.v1beta1.display_name] given |
| 1215 | // on input followed by the predicted target column with name in the |
| 1216 | // format of |
| 1217 | // |
| 1218 | // "predicted_<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] |
| 1219 | // |
| 1220 | // [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>" |
| 1221 | // |
| 1222 | // Subsequent lines will contain the respective values of |
| 1223 | // successfully predicted rows, with the last, i.e. the target, |
| 1224 | // column having the predicted target value. |
| 1225 | // If prediction for any rows failed, then an additional |
| 1226 | // `errors_1.csv`, `errors_2.csv`,..., `errors_N.csv` will be |
| 1227 | // created (N depends on total number of failed rows). These files |
| 1228 | // will have analogous format as `tables_*.csv`, but always with a |
| 1229 | // single target column having |
| 1230 | // |
| 1231 | // [`google.rpc.Status`](https: |
| 1232 | // //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) |
| 1233 | // |
| 1234 | // represented as a JSON string, and containing only `code` and |
| 1235 | // `message`. |
| 1236 | // BigQuery case: |
| 1237 | // |
| 1238 | // [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] |
| 1239 | // |
| 1240 | // pointing to a BigQuery project must be set. In the given project a |
| 1241 | // new dataset will be created with name |
| 1242 | // `prediction_<model-display-name>_<timestamp-of-prediction-call>` |
| 1243 | // where <model-display-name> will be made |
| 1244 | // BigQuery-dataset-name compatible (e.g. most special characters will |
| 1245 | // become underscores), and timestamp will be in |
| 1246 | // YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset |
| 1247 | // two tables will be created, `predictions`, and `errors`. |
| 1248 | // The `predictions` table's column names will be the input columns' |
| 1249 | // |
| 1250 | // [display_name-s][google.cloud.automl.v1beta1.ColumnSpec.display_name] |
| 1251 | // |
| 1252 | // followed by the target column with name in the format of |
| 1253 | // |
| 1254 | // "predicted_<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] |
| 1255 | // |
| 1256 | // [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>" |
| 1257 | // |
| 1258 | // The input feature columns will contain the respective values of |
| 1259 | // successfully predicted rows, with the target column having an |
| 1260 | // ARRAY of |
| 1261 | // |
| 1262 | // [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload], |
| 1263 | // |
| 1264 | // represented as STRUCT-s, containing |
| 1265 | // [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation]. |
| 1266 | // The `errors` table contains rows for which the prediction has |
| 1267 | // failed, it has analogous input columns while the target column name |
| 1268 | // is in the format of |
| 1269 | // |
| 1270 | // "errors_<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] |
| 1271 | // |
| 1272 | // [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>", |
| 1273 | // |
| 1274 | // and as a value has |
| 1275 | // |
| 1276 | // [`google.rpc.Status`](https: |
| 1277 | // //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) |
| 1278 | // |
| 1279 | // represented as a STRUCT, and containing only `code` and `message`. |
| 1280 | type BatchPredictOutputConfig struct { |
| 1281 | state protoimpl.MessageState |
| 1282 | sizeCache protoimpl.SizeCache |
| 1283 | unknownFields protoimpl.UnknownFields |
| 1284 | |
| 1285 | // Required. The destination of the output. |
| 1286 | // |
| 1287 | // Types that are assignable to Destination: |
| 1288 | // |
| 1289 | // *BatchPredictOutputConfig_GcsDestination |
| 1290 | // *BatchPredictOutputConfig_BigqueryDestination |
| 1291 | Destination isBatchPredictOutputConfig_Destination `protobuf_oneof:"destination"` |
| 1292 | } |
| 1293 | |
| 1294 | func (x *BatchPredictOutputConfig) Reset() { |
| 1295 | *x = BatchPredictOutputConfig{} |
| 1296 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[4] |
| 1297 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1298 | ms.StoreMessageInfo(mi) |
| 1299 | } |
| 1300 | |
| 1301 | func (x *BatchPredictOutputConfig) String() string { |
| 1302 | return protoimpl.X.MessageStringOf(x) |
| 1303 | } |
| 1304 | |
| 1305 | func (*BatchPredictOutputConfig) ProtoMessage() {} |
| 1306 | |
| 1307 | func (x *BatchPredictOutputConfig) ProtoReflect() protoreflect.Message { |
| 1308 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[4] |
| 1309 | if x != nil { |
| 1310 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1311 | if ms.LoadMessageInfo() == nil { |
| 1312 | ms.StoreMessageInfo(mi) |
| 1313 | } |
| 1314 | return ms |
| 1315 | } |
| 1316 | return mi.MessageOf(x) |
| 1317 | } |
| 1318 | |
| 1319 | // Deprecated: Use BatchPredictOutputConfig.ProtoReflect.Descriptor instead. |
| 1320 | func (*BatchPredictOutputConfig) Descriptor() ([]byte, []int) { |
| 1321 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{4} |
| 1322 | } |
| 1323 | |
| 1324 | func (m *BatchPredictOutputConfig) GetDestination() isBatchPredictOutputConfig_Destination { |
| 1325 | if m != nil { |
| 1326 | return m.Destination |
| 1327 | } |
| 1328 | return nil |
| 1329 | } |
| 1330 | |
| 1331 | func (x *BatchPredictOutputConfig) GetGcsDestination() *GcsDestination { |
| 1332 | if x, ok := x.GetDestination().(*BatchPredictOutputConfig_GcsDestination); ok { |
| 1333 | return x.GcsDestination |
| 1334 | } |
| 1335 | return nil |
| 1336 | } |
| 1337 | |
| 1338 | func (x *BatchPredictOutputConfig) GetBigqueryDestination() *BigQueryDestination { |
| 1339 | if x, ok := x.GetDestination().(*BatchPredictOutputConfig_BigqueryDestination); ok { |
| 1340 | return x.BigqueryDestination |
| 1341 | } |
| 1342 | return nil |
| 1343 | } |
| 1344 | |
| 1345 | type isBatchPredictOutputConfig_Destination interface { |
| 1346 | isBatchPredictOutputConfig_Destination() |
| 1347 | } |
| 1348 | |
| 1349 | type BatchPredictOutputConfig_GcsDestination struct { |
| 1350 | // The Google Cloud Storage location of the directory where the output is to |
| 1351 | // be written to. |
| 1352 | GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"` |
| 1353 | } |
| 1354 | |
| 1355 | type BatchPredictOutputConfig_BigqueryDestination struct { |
| 1356 | // The BigQuery location where the output is to be written to. |
| 1357 | BigqueryDestination *BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"` |
| 1358 | } |
| 1359 | |
| 1360 | func (*BatchPredictOutputConfig_GcsDestination) isBatchPredictOutputConfig_Destination() {} |
| 1361 | |
| 1362 | func (*BatchPredictOutputConfig_BigqueryDestination) isBatchPredictOutputConfig_Destination() {} |
| 1363 | |
| 1364 | // Output configuration for ModelExport Action. |
| 1365 | type ModelExportOutputConfig struct { |
| 1366 | state protoimpl.MessageState |
| 1367 | sizeCache protoimpl.SizeCache |
| 1368 | unknownFields protoimpl.UnknownFields |
| 1369 | |
| 1370 | // Required. The destination of the output. |
| 1371 | // |
| 1372 | // Types that are assignable to Destination: |
| 1373 | // |
| 1374 | // *ModelExportOutputConfig_GcsDestination |
| 1375 | // *ModelExportOutputConfig_GcrDestination |
| 1376 | Destination isModelExportOutputConfig_Destination `protobuf_oneof:"destination"` |
| 1377 | // The format in which the model must be exported. The available, and default, |
| 1378 | // formats depend on the problem and model type (if given problem and type |
| 1379 | // combination doesn't have a format listed, it means its models are not |
| 1380 | // exportable): |
| 1381 | // |
| 1382 | // - For Image Classification mobile-low-latency-1, mobile-versatile-1, |
| 1383 | // mobile-high-accuracy-1: |
| 1384 | // "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", |
| 1385 | // "docker". |
| 1386 | // |
| 1387 | // - For Image Classification mobile-core-ml-low-latency-1, |
| 1388 | // mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: |
| 1389 | // "core_ml" (default). |
| 1390 | // |
| 1391 | // - For Image Object Detection mobile-low-latency-1, mobile-versatile-1, |
| 1392 | // mobile-high-accuracy-1: |
| 1393 | // "tflite", "tf_saved_model", "tf_js". |
| 1394 | // |
| 1395 | // - For Video Classification cloud, |
| 1396 | // "tf_saved_model". |
| 1397 | // |
| 1398 | // - For Video Object Tracking cloud, |
| 1399 | // "tf_saved_model". |
| 1400 | // |
| 1401 | // - For Video Object Tracking mobile-versatile-1: |
| 1402 | // "tflite", "edgetpu_tflite", "tf_saved_model", "docker". |
| 1403 | // |
| 1404 | // - For Video Object Tracking mobile-coral-versatile-1: |
| 1405 | // "tflite", "edgetpu_tflite", "docker". |
| 1406 | // |
| 1407 | // - For Video Object Tracking mobile-coral-low-latency-1: |
| 1408 | // "tflite", "edgetpu_tflite", "docker". |
| 1409 | // |
| 1410 | // - For Video Object Tracking mobile-jetson-versatile-1: |
| 1411 | // "tf_saved_model", "docker". |
| 1412 | // |
| 1413 | // - For Tables: |
| 1414 | // "docker". |
| 1415 | // |
| 1416 | // Formats description: |
| 1417 | // |
| 1418 | // - tflite - Used for Android mobile devices. |
| 1419 | // - edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/) |
| 1420 | // devices. |
| 1421 | // - tf_saved_model - A tensorflow model in SavedModel format. |
| 1422 | // - tf_js - A [TensorFlow.js](https://www.tensorflow.org/js) model that can |
| 1423 | // be used in the browser and in Node.js using JavaScript. |
| 1424 | // - docker - Used for Docker containers. Use the params field to customize |
| 1425 | // the container. The container is verified to work correctly on |
| 1426 | // ubuntu 16.04 operating system. See more at |
| 1427 | // [containers |
| 1428 | // |
| 1429 | // quickstart](https: |
| 1430 | // //cloud.google.com/vision/automl/docs/containers-gcs-quickstart) |
| 1431 | // * core_ml - Used for iOS mobile devices. |
| 1432 | ModelFormat string `protobuf:"bytes,4,opt,name=model_format,json=modelFormat,proto3" json:"model_format,omitempty"` |
| 1433 | // Additional model-type and format specific parameters describing the |
| 1434 | // requirements for the to be exported model files, any string must be up to |
| 1435 | // 25000 characters long. |
| 1436 | // |
| 1437 | // - For `docker` format: |
| 1438 | // `cpu_architecture` - (string) "x86_64" (default). |
| 1439 | // `gpu_architecture` - (string) "none" (default), "nvidia". |
| 1440 | Params map[string]string `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 1441 | } |
| 1442 | |
| 1443 | func (x *ModelExportOutputConfig) Reset() { |
| 1444 | *x = ModelExportOutputConfig{} |
| 1445 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[5] |
| 1446 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1447 | ms.StoreMessageInfo(mi) |
| 1448 | } |
| 1449 | |
| 1450 | func (x *ModelExportOutputConfig) String() string { |
| 1451 | return protoimpl.X.MessageStringOf(x) |
| 1452 | } |
| 1453 | |
| 1454 | func (*ModelExportOutputConfig) ProtoMessage() {} |
| 1455 | |
| 1456 | func (x *ModelExportOutputConfig) ProtoReflect() protoreflect.Message { |
| 1457 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[5] |
| 1458 | if x != nil { |
| 1459 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1460 | if ms.LoadMessageInfo() == nil { |
| 1461 | ms.StoreMessageInfo(mi) |
| 1462 | } |
| 1463 | return ms |
| 1464 | } |
| 1465 | return mi.MessageOf(x) |
| 1466 | } |
| 1467 | |
| 1468 | // Deprecated: Use ModelExportOutputConfig.ProtoReflect.Descriptor instead. |
| 1469 | func (*ModelExportOutputConfig) Descriptor() ([]byte, []int) { |
| 1470 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{5} |
| 1471 | } |
| 1472 | |
| 1473 | func (m *ModelExportOutputConfig) GetDestination() isModelExportOutputConfig_Destination { |
| 1474 | if m != nil { |
| 1475 | return m.Destination |
| 1476 | } |
| 1477 | return nil |
| 1478 | } |
| 1479 | |
| 1480 | func (x *ModelExportOutputConfig) GetGcsDestination() *GcsDestination { |
| 1481 | if x, ok := x.GetDestination().(*ModelExportOutputConfig_GcsDestination); ok { |
| 1482 | return x.GcsDestination |
| 1483 | } |
| 1484 | return nil |
| 1485 | } |
| 1486 | |
| 1487 | func (x *ModelExportOutputConfig) GetGcrDestination() *GcrDestination { |
| 1488 | if x, ok := x.GetDestination().(*ModelExportOutputConfig_GcrDestination); ok { |
| 1489 | return x.GcrDestination |
| 1490 | } |
| 1491 | return nil |
| 1492 | } |
| 1493 | |
| 1494 | func (x *ModelExportOutputConfig) GetModelFormat() string { |
| 1495 | if x != nil { |
| 1496 | return x.ModelFormat |
| 1497 | } |
| 1498 | return "" |
| 1499 | } |
| 1500 | |
| 1501 | func (x *ModelExportOutputConfig) GetParams() map[string]string { |
| 1502 | if x != nil { |
| 1503 | return x.Params |
| 1504 | } |
| 1505 | return nil |
| 1506 | } |
| 1507 | |
| 1508 | type isModelExportOutputConfig_Destination interface { |
| 1509 | isModelExportOutputConfig_Destination() |
| 1510 | } |
| 1511 | |
| 1512 | type ModelExportOutputConfig_GcsDestination struct { |
| 1513 | // The Google Cloud Storage location where the model is to be written to. |
| 1514 | // This location may only be set for the following model formats: |
| 1515 | // |
| 1516 | // "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml". |
| 1517 | // |
| 1518 | // Under the directory given as the destination a new one with name |
| 1519 | // "model-export-<model-display-name>-<timestamp-of-export-call>", |
| 1520 | // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, |
| 1521 | // will be created. Inside the model and any of its supporting files |
| 1522 | // will be written. |
| 1523 | GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"` |
| 1524 | } |
| 1525 | |
| 1526 | type ModelExportOutputConfig_GcrDestination struct { |
| 1527 | // The GCR location where model image is to be pushed to. This location |
| 1528 | // may only be set for the following model formats: |
| 1529 | // |
| 1530 | // "docker". |
| 1531 | // |
| 1532 | // The model image will be created under the given URI. |
| 1533 | GcrDestination *GcrDestination `protobuf:"bytes,3,opt,name=gcr_destination,json=gcrDestination,proto3,oneof"` |
| 1534 | } |
| 1535 | |
| 1536 | func (*ModelExportOutputConfig_GcsDestination) isModelExportOutputConfig_Destination() {} |
| 1537 | |
| 1538 | func (*ModelExportOutputConfig_GcrDestination) isModelExportOutputConfig_Destination() {} |
| 1539 | |
| 1540 | // Output configuration for ExportEvaluatedExamples Action. Note that this call |
| 1541 | // is available only for 30 days since the moment the model was evaluated. |
| 1542 | // The output depends on the domain, as follows (note that only examples from |
| 1543 | // the TEST set are exported): |
| 1544 | // |
| 1545 | // - For Tables: |
| 1546 | // |
| 1547 | // [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] |
| 1548 | // |
| 1549 | // pointing to a BigQuery project must be set. In the given project a |
| 1550 | // new dataset will be created with name |
| 1551 | // |
| 1552 | // `export_evaluated_examples_<model-display-name>_<timestamp-of-export-call>` |
| 1553 | // |
| 1554 | // where <model-display-name> will be made BigQuery-dataset-name |
| 1555 | // compatible (e.g. most special characters will become underscores), |
| 1556 | // and timestamp will be in YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" |
| 1557 | // format. In the dataset an `evaluated_examples` table will be |
| 1558 | // created. It will have all the same columns as the |
| 1559 | // |
| 1560 | // [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id] |
| 1561 | // |
| 1562 | // of the |
| 1563 | // [dataset][google.cloud.automl.v1beta1.Model.dataset_id] from which |
| 1564 | // the model was created, as they were at the moment of model's |
| 1565 | // evaluation (this includes the target column with its ground |
| 1566 | // truth), followed by a column called "predicted_<target_column>". That |
| 1567 | // last column will contain the model's prediction result for each |
| 1568 | // respective row, given as ARRAY of |
| 1569 | // [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload], |
| 1570 | // represented as STRUCT-s, containing |
| 1571 | // [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation]. |
| 1572 | type ExportEvaluatedExamplesOutputConfig struct { |
| 1573 | state protoimpl.MessageState |
| 1574 | sizeCache protoimpl.SizeCache |
| 1575 | unknownFields protoimpl.UnknownFields |
| 1576 | |
| 1577 | // Required. The destination of the output. |
| 1578 | // |
| 1579 | // Types that are assignable to Destination: |
| 1580 | // |
| 1581 | // *ExportEvaluatedExamplesOutputConfig_BigqueryDestination |
| 1582 | Destination isExportEvaluatedExamplesOutputConfig_Destination `protobuf_oneof:"destination"` |
| 1583 | } |
| 1584 | |
| 1585 | func (x *ExportEvaluatedExamplesOutputConfig) Reset() { |
| 1586 | *x = ExportEvaluatedExamplesOutputConfig{} |
| 1587 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[6] |
| 1588 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1589 | ms.StoreMessageInfo(mi) |
| 1590 | } |
| 1591 | |
| 1592 | func (x *ExportEvaluatedExamplesOutputConfig) String() string { |
| 1593 | return protoimpl.X.MessageStringOf(x) |
| 1594 | } |
| 1595 | |
| 1596 | func (*ExportEvaluatedExamplesOutputConfig) ProtoMessage() {} |
| 1597 | |
| 1598 | func (x *ExportEvaluatedExamplesOutputConfig) ProtoReflect() protoreflect.Message { |
| 1599 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[6] |
| 1600 | if x != nil { |
| 1601 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1602 | if ms.LoadMessageInfo() == nil { |
| 1603 | ms.StoreMessageInfo(mi) |
| 1604 | } |
| 1605 | return ms |
| 1606 | } |
| 1607 | return mi.MessageOf(x) |
| 1608 | } |
| 1609 | |
| 1610 | // Deprecated: Use ExportEvaluatedExamplesOutputConfig.ProtoReflect.Descriptor instead. |
| 1611 | func (*ExportEvaluatedExamplesOutputConfig) Descriptor() ([]byte, []int) { |
| 1612 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{6} |
| 1613 | } |
| 1614 | |
| 1615 | func (m *ExportEvaluatedExamplesOutputConfig) GetDestination() isExportEvaluatedExamplesOutputConfig_Destination { |
| 1616 | if m != nil { |
| 1617 | return m.Destination |
| 1618 | } |
| 1619 | return nil |
| 1620 | } |
| 1621 | |
| 1622 | func (x *ExportEvaluatedExamplesOutputConfig) GetBigqueryDestination() *BigQueryDestination { |
| 1623 | if x, ok := x.GetDestination().(*ExportEvaluatedExamplesOutputConfig_BigqueryDestination); ok { |
| 1624 | return x.BigqueryDestination |
| 1625 | } |
| 1626 | return nil |
| 1627 | } |
| 1628 | |
| 1629 | type isExportEvaluatedExamplesOutputConfig_Destination interface { |
| 1630 | isExportEvaluatedExamplesOutputConfig_Destination() |
| 1631 | } |
| 1632 | |
| 1633 | type ExportEvaluatedExamplesOutputConfig_BigqueryDestination struct { |
| 1634 | // The BigQuery location where the output is to be written to. |
| 1635 | BigqueryDestination *BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"` |
| 1636 | } |
| 1637 | |
| 1638 | func (*ExportEvaluatedExamplesOutputConfig_BigqueryDestination) isExportEvaluatedExamplesOutputConfig_Destination() { |
| 1639 | } |
| 1640 | |
| 1641 | // The Google Cloud Storage location for the input content. |
| 1642 | type GcsSource struct { |
| 1643 | state protoimpl.MessageState |
| 1644 | sizeCache protoimpl.SizeCache |
| 1645 | unknownFields protoimpl.UnknownFields |
| 1646 | |
| 1647 | // Required. Google Cloud Storage URIs to input files, up to 2000 characters |
| 1648 | // long. Accepted forms: |
| 1649 | // * Full object path, e.g. gs://bucket/directory/object.csv |
| 1650 | InputUris []string `protobuf:"bytes,1,rep,name=input_uris,json=inputUris,proto3" json:"input_uris,omitempty"` |
| 1651 | } |
| 1652 | |
| 1653 | func (x *GcsSource) Reset() { |
| 1654 | *x = GcsSource{} |
| 1655 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[7] |
| 1656 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1657 | ms.StoreMessageInfo(mi) |
| 1658 | } |
| 1659 | |
| 1660 | func (x *GcsSource) String() string { |
| 1661 | return protoimpl.X.MessageStringOf(x) |
| 1662 | } |
| 1663 | |
| 1664 | func (*GcsSource) ProtoMessage() {} |
| 1665 | |
| 1666 | func (x *GcsSource) ProtoReflect() protoreflect.Message { |
| 1667 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[7] |
| 1668 | if x != nil { |
| 1669 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1670 | if ms.LoadMessageInfo() == nil { |
| 1671 | ms.StoreMessageInfo(mi) |
| 1672 | } |
| 1673 | return ms |
| 1674 | } |
| 1675 | return mi.MessageOf(x) |
| 1676 | } |
| 1677 | |
| 1678 | // Deprecated: Use GcsSource.ProtoReflect.Descriptor instead. |
| 1679 | func (*GcsSource) Descriptor() ([]byte, []int) { |
| 1680 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{7} |
| 1681 | } |
| 1682 | |
| 1683 | func (x *GcsSource) GetInputUris() []string { |
| 1684 | if x != nil { |
| 1685 | return x.InputUris |
| 1686 | } |
| 1687 | return nil |
| 1688 | } |
| 1689 | |
| 1690 | // The BigQuery location for the input content. |
| 1691 | type BigQuerySource struct { |
| 1692 | state protoimpl.MessageState |
| 1693 | sizeCache protoimpl.SizeCache |
| 1694 | unknownFields protoimpl.UnknownFields |
| 1695 | |
| 1696 | // Required. BigQuery URI to a table, up to 2000 characters long. |
| 1697 | // Accepted forms: |
| 1698 | // * BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId |
| 1699 | InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` |
| 1700 | } |
| 1701 | |
| 1702 | func (x *BigQuerySource) Reset() { |
| 1703 | *x = BigQuerySource{} |
| 1704 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[8] |
| 1705 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1706 | ms.StoreMessageInfo(mi) |
| 1707 | } |
| 1708 | |
| 1709 | func (x *BigQuerySource) String() string { |
| 1710 | return protoimpl.X.MessageStringOf(x) |
| 1711 | } |
| 1712 | |
| 1713 | func (*BigQuerySource) ProtoMessage() {} |
| 1714 | |
| 1715 | func (x *BigQuerySource) ProtoReflect() protoreflect.Message { |
| 1716 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[8] |
| 1717 | if x != nil { |
| 1718 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1719 | if ms.LoadMessageInfo() == nil { |
| 1720 | ms.StoreMessageInfo(mi) |
| 1721 | } |
| 1722 | return ms |
| 1723 | } |
| 1724 | return mi.MessageOf(x) |
| 1725 | } |
| 1726 | |
| 1727 | // Deprecated: Use BigQuerySource.ProtoReflect.Descriptor instead. |
| 1728 | func (*BigQuerySource) Descriptor() ([]byte, []int) { |
| 1729 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{8} |
| 1730 | } |
| 1731 | |
| 1732 | func (x *BigQuerySource) GetInputUri() string { |
| 1733 | if x != nil { |
| 1734 | return x.InputUri |
| 1735 | } |
| 1736 | return "" |
| 1737 | } |
| 1738 | |
| 1739 | // The Google Cloud Storage location where the output is to be written to. |
| 1740 | type GcsDestination struct { |
| 1741 | state protoimpl.MessageState |
| 1742 | sizeCache protoimpl.SizeCache |
| 1743 | unknownFields protoimpl.UnknownFields |
| 1744 | |
| 1745 | // Required. Google Cloud Storage URI to output directory, up to 2000 |
| 1746 | // characters long. |
| 1747 | // Accepted forms: |
| 1748 | // * Prefix path: gs://bucket/directory |
| 1749 | // The requesting user must have write permission to the bucket. |
| 1750 | // The directory is created if it doesn't exist. |
| 1751 | OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` |
| 1752 | } |
| 1753 | |
| 1754 | func (x *GcsDestination) Reset() { |
| 1755 | *x = GcsDestination{} |
| 1756 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[9] |
| 1757 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1758 | ms.StoreMessageInfo(mi) |
| 1759 | } |
| 1760 | |
| 1761 | func (x *GcsDestination) String() string { |
| 1762 | return protoimpl.X.MessageStringOf(x) |
| 1763 | } |
| 1764 | |
| 1765 | func (*GcsDestination) ProtoMessage() {} |
| 1766 | |
| 1767 | func (x *GcsDestination) ProtoReflect() protoreflect.Message { |
| 1768 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[9] |
| 1769 | if x != nil { |
| 1770 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1771 | if ms.LoadMessageInfo() == nil { |
| 1772 | ms.StoreMessageInfo(mi) |
| 1773 | } |
| 1774 | return ms |
| 1775 | } |
| 1776 | return mi.MessageOf(x) |
| 1777 | } |
| 1778 | |
| 1779 | // Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead. |
| 1780 | func (*GcsDestination) Descriptor() ([]byte, []int) { |
| 1781 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{9} |
| 1782 | } |
| 1783 | |
| 1784 | func (x *GcsDestination) GetOutputUriPrefix() string { |
| 1785 | if x != nil { |
| 1786 | return x.OutputUriPrefix |
| 1787 | } |
| 1788 | return "" |
| 1789 | } |
| 1790 | |
| 1791 | // The BigQuery location for the output content. |
| 1792 | type BigQueryDestination struct { |
| 1793 | state protoimpl.MessageState |
| 1794 | sizeCache protoimpl.SizeCache |
| 1795 | unknownFields protoimpl.UnknownFields |
| 1796 | |
| 1797 | // Required. BigQuery URI to a project, up to 2000 characters long. |
| 1798 | // Accepted forms: |
| 1799 | // * BigQuery path e.g. bq://projectId |
| 1800 | OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"` |
| 1801 | } |
| 1802 | |
| 1803 | func (x *BigQueryDestination) Reset() { |
| 1804 | *x = BigQueryDestination{} |
| 1805 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[10] |
| 1806 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1807 | ms.StoreMessageInfo(mi) |
| 1808 | } |
| 1809 | |
| 1810 | func (x *BigQueryDestination) String() string { |
| 1811 | return protoimpl.X.MessageStringOf(x) |
| 1812 | } |
| 1813 | |
| 1814 | func (*BigQueryDestination) ProtoMessage() {} |
| 1815 | |
| 1816 | func (x *BigQueryDestination) ProtoReflect() protoreflect.Message { |
| 1817 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[10] |
| 1818 | if x != nil { |
| 1819 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1820 | if ms.LoadMessageInfo() == nil { |
| 1821 | ms.StoreMessageInfo(mi) |
| 1822 | } |
| 1823 | return ms |
| 1824 | } |
| 1825 | return mi.MessageOf(x) |
| 1826 | } |
| 1827 | |
| 1828 | // Deprecated: Use BigQueryDestination.ProtoReflect.Descriptor instead. |
| 1829 | func (*BigQueryDestination) Descriptor() ([]byte, []int) { |
| 1830 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{10} |
| 1831 | } |
| 1832 | |
| 1833 | func (x *BigQueryDestination) GetOutputUri() string { |
| 1834 | if x != nil { |
| 1835 | return x.OutputUri |
| 1836 | } |
| 1837 | return "" |
| 1838 | } |
| 1839 | |
| 1840 | // The GCR location where the image must be pushed to. |
| 1841 | type GcrDestination struct { |
| 1842 | state protoimpl.MessageState |
| 1843 | sizeCache protoimpl.SizeCache |
| 1844 | unknownFields protoimpl.UnknownFields |
| 1845 | |
| 1846 | // Required. Google Contained Registry URI of the new image, up to 2000 |
| 1847 | // characters long. See |
| 1848 | // |
| 1849 | // https: |
| 1850 | // //cloud.google.com/container-registry/do |
| 1851 | // // cs/pushing-and-pulling#pushing_an_image_to_a_registry |
| 1852 | // Accepted forms: |
| 1853 | // * [HOSTNAME]/[PROJECT-ID]/[IMAGE] |
| 1854 | // * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG] |
| 1855 | // |
| 1856 | // The requesting user must have permission to push images the project. |
| 1857 | OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"` |
| 1858 | } |
| 1859 | |
| 1860 | func (x *GcrDestination) Reset() { |
| 1861 | *x = GcrDestination{} |
| 1862 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[11] |
| 1863 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1864 | ms.StoreMessageInfo(mi) |
| 1865 | } |
| 1866 | |
| 1867 | func (x *GcrDestination) String() string { |
| 1868 | return protoimpl.X.MessageStringOf(x) |
| 1869 | } |
| 1870 | |
| 1871 | func (*GcrDestination) ProtoMessage() {} |
| 1872 | |
| 1873 | func (x *GcrDestination) ProtoReflect() protoreflect.Message { |
| 1874 | mi := &file_google_cloud_automl_v1beta1_io_proto_msgTypes[11] |
| 1875 | if x != nil { |
| 1876 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1877 | if ms.LoadMessageInfo() == nil { |
| 1878 | ms.StoreMessageInfo(mi) |
| 1879 | } |
| 1880 | return ms |
| 1881 | } |
| 1882 | return mi.MessageOf(x) |
| 1883 | } |
| 1884 | |
| 1885 | // Deprecated: Use GcrDestination.ProtoReflect.Descriptor instead. |
| 1886 | func (*GcrDestination) Descriptor() ([]byte, []int) { |
| 1887 | return file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP(), []int{11} |
| 1888 | } |
| 1889 | |
| 1890 | func (x *GcrDestination) GetOutputUri() string { |
| 1891 | if x != nil { |
| 1892 | return x.OutputUri |
| 1893 | } |
| 1894 | return "" |
| 1895 | } |
| 1896 | |
| 1897 | var File_google_cloud_automl_v1beta1_io_proto protoreflect.FileDescriptor |
| 1898 | |
| 1899 | var file_google_cloud_automl_v1beta1_io_proto_rawDesc = []byte{ |
| 1900 | 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, |
| 1901 | 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6f, |
| 1902 | 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1903 | 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 1904 | 0x74, 0x61, 0x31, 0x22, 0xc1, 0x02, 0x0a, 0x0b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, |
| 1905 | 0x66, 0x69, 0x67, 0x12, 0x47, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, |
| 1906 | 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1907 | 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, |
| 1908 | 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, |
| 1909 | 0x00, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x0f, |
| 1910 | 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, |
| 1911 | 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1912 | 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 1913 | 0x74, 0x61, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, |
| 1914 | 0x63, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6f, |
| 1915 | 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, |
| 1916 | 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 1917 | 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 1918 | 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, |
| 1919 | 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, |
| 1920 | 0x6d, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, |
| 1921 | 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, |
| 1922 | 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 1923 | 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, |
| 1924 | 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x17, 0x42, 0x61, 0x74, 0x63, |
| 1925 | 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, |
| 1926 | 0x66, 0x69, 0x67, 0x12, 0x47, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, |
| 1927 | 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1928 | 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, |
| 1929 | 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, |
| 1930 | 0x00, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x0f, |
| 1931 | 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, |
| 1932 | 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1933 | 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 1934 | 0x74, 0x61, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, |
| 1935 | 0x63, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6f, |
| 1936 | 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x5c, |
| 1937 | 0x0a, 0x13, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, |
| 1938 | 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, |
| 1939 | 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1940 | 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, |
| 1941 | 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, |
| 1942 | 0x65, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xdc, 0x01, 0x0a, |
| 1943 | 0x0c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x56, 0x0a, |
| 1944 | 0x0f, 0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1945 | 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1946 | 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, |
| 1947 | 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, |
| 1948 | 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, |
| 1949 | 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x65, 0x0a, 0x14, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, |
| 1950 | 0x79, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, |
| 1951 | 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 1952 | 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 1953 | 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, |
| 1954 | 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x13, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, |
| 1955 | 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, |
| 1956 | 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe8, 0x01, 0x0a, 0x18, |
| 1957 | 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, |
| 1958 | 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x56, 0x0a, 0x0f, 0x67, 0x63, 0x73, 0x5f, |
| 1959 | 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 1960 | 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1961 | 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, |
| 1962 | 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, |
| 1963 | 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1964 | 0x12, 0x65, 0x0a, 0x14, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x65, 0x73, |
| 1965 | 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, |
| 1966 | 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, |
| 1967 | 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x69, 0x67, |
| 1968 | 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1969 | 0x48, 0x00, 0x52, 0x13, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, |
| 1970 | 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, |
| 1971 | 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x90, 0x03, 0x0a, 0x17, 0x4d, 0x6f, 0x64, 0x65, 0x6c, |
| 1972 | 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, |
| 1973 | 0x69, 0x67, 0x12, 0x56, 0x0a, 0x0f, 0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, |
| 1974 | 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, |
| 1975 | 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, |
| 1976 | 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, |
| 1977 | 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, |
| 1978 | 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x0f, 0x67, 0x63, |
| 1979 | 0x72, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, |
| 1980 | 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 1981 | 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 1982 | 0x31, 0x2e, 0x47, 0x63, 0x72, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1983 | 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x72, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, |
| 1984 | 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, |
| 1985 | 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x46, |
| 1986 | 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x58, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, |
| 1987 | 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1988 | 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 1989 | 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, |
| 1990 | 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x61, |
| 1991 | 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, |
| 1992 | 0x39, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, |
| 1993 | 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, |
| 1994 | 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 1995 | 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, |
| 1996 | 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x23, 0x45, 0x78, |
| 1997 | 0x70, 0x6f, 0x72, 0x74, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x64, 0x45, 0x78, 0x61, |
| 1998 | 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 1999 | 0x67, 0x12, 0x65, 0x0a, 0x14, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x65, |
| 2000 | 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 2001 | 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, |
| 2002 | 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x69, |
| 2003 | 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, |
| 2004 | 0x6e, 0x48, 0x00, 0x52, 0x13, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, |
| 2005 | 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, |
| 2006 | 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2a, 0x0a, 0x09, 0x47, 0x63, 0x73, 0x53, 0x6f, |
| 2007 | 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, |
| 2008 | 0x69, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, |
| 2009 | 0x72, 0x69, 0x73, 0x22, 0x2d, 0x0a, 0x0e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, |
| 2010 | 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, |
| 2011 | 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, |
| 2012 | 0x72, 0x69, 0x22, 0x3c, 0x0a, 0x0e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, |
| 2013 | 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, |
| 2014 | 0x72, 0x69, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 2015 | 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, |
| 2016 | 0x22, 0x34, 0x0a, 0x13, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, |
| 2017 | 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, |
| 2018 | 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x75, 0x74, |
| 2019 | 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x22, 0x2f, 0x0a, 0x0e, 0x47, 0x63, 0x72, 0x44, 0x65, 0x73, |
| 2020 | 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x70, |
| 2021 | 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x75, |
| 2022 | 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x42, 0x9b, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, |
| 2023 | 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, |
| 2024 | 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x37, 0x63, |
| 2025 | 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 2026 | 0x67, 0x6f, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, |
| 2027 | 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0x3b, 0x61, 0x75, |
| 2028 | 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, |
| 2029 | 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56, 0x31, 0x62, |
| 2030 | 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, |
| 2031 | 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31, |
| 2032 | 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 2033 | } |
| 2034 | |
| 2035 | var ( |
| 2036 | file_google_cloud_automl_v1beta1_io_proto_rawDescOnce sync.Once |
| 2037 | file_google_cloud_automl_v1beta1_io_proto_rawDescData = file_google_cloud_automl_v1beta1_io_proto_rawDesc |
| 2038 | ) |
| 2039 | |
| 2040 | func file_google_cloud_automl_v1beta1_io_proto_rawDescGZIP() []byte { |
| 2041 | file_google_cloud_automl_v1beta1_io_proto_rawDescOnce.Do(func() { |
| 2042 | file_google_cloud_automl_v1beta1_io_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1beta1_io_proto_rawDescData) |
| 2043 | }) |
| 2044 | return file_google_cloud_automl_v1beta1_io_proto_rawDescData |
| 2045 | } |
| 2046 | |
| 2047 | var file_google_cloud_automl_v1beta1_io_proto_msgTypes = make([]protoimpl.MessageInfo, 14) |
| 2048 | var file_google_cloud_automl_v1beta1_io_proto_goTypes = []any{ |
| 2049 | (*InputConfig)(nil), // 0: google.cloud.automl.v1beta1.InputConfig |
| 2050 | (*BatchPredictInputConfig)(nil), // 1: google.cloud.automl.v1beta1.BatchPredictInputConfig |
| 2051 | (*DocumentInputConfig)(nil), // 2: google.cloud.automl.v1beta1.DocumentInputConfig |
| 2052 | (*OutputConfig)(nil), // 3: google.cloud.automl.v1beta1.OutputConfig |
| 2053 | (*BatchPredictOutputConfig)(nil), // 4: google.cloud.automl.v1beta1.BatchPredictOutputConfig |
| 2054 | (*ModelExportOutputConfig)(nil), // 5: google.cloud.automl.v1beta1.ModelExportOutputConfig |
| 2055 | (*ExportEvaluatedExamplesOutputConfig)(nil), // 6: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig |
| 2056 | (*GcsSource)(nil), // 7: google.cloud.automl.v1beta1.GcsSource |
| 2057 | (*BigQuerySource)(nil), // 8: google.cloud.automl.v1beta1.BigQuerySource |
| 2058 | (*GcsDestination)(nil), // 9: google.cloud.automl.v1beta1.GcsDestination |
| 2059 | (*BigQueryDestination)(nil), // 10: google.cloud.automl.v1beta1.BigQueryDestination |
| 2060 | (*GcrDestination)(nil), // 11: google.cloud.automl.v1beta1.GcrDestination |
| 2061 | nil, // 12: google.cloud.automl.v1beta1.InputConfig.ParamsEntry |
| 2062 | nil, // 13: google.cloud.automl.v1beta1.ModelExportOutputConfig.ParamsEntry |
| 2063 | } |
| 2064 | var file_google_cloud_automl_v1beta1_io_proto_depIdxs = []int32{ |
| 2065 | 7, // 0: google.cloud.automl.v1beta1.InputConfig.gcs_source:type_name -> google.cloud.automl.v1beta1.GcsSource |
| 2066 | 8, // 1: google.cloud.automl.v1beta1.InputConfig.bigquery_source:type_name -> google.cloud.automl.v1beta1.BigQuerySource |
| 2067 | 12, // 2: google.cloud.automl.v1beta1.InputConfig.params:type_name -> google.cloud.automl.v1beta1.InputConfig.ParamsEntry |
| 2068 | 7, // 3: google.cloud.automl.v1beta1.BatchPredictInputConfig.gcs_source:type_name -> google.cloud.automl.v1beta1.GcsSource |
| 2069 | 8, // 4: google.cloud.automl.v1beta1.BatchPredictInputConfig.bigquery_source:type_name -> google.cloud.automl.v1beta1.BigQuerySource |
| 2070 | 7, // 5: google.cloud.automl.v1beta1.DocumentInputConfig.gcs_source:type_name -> google.cloud.automl.v1beta1.GcsSource |
| 2071 | 9, // 6: google.cloud.automl.v1beta1.OutputConfig.gcs_destination:type_name -> google.cloud.automl.v1beta1.GcsDestination |
| 2072 | 10, // 7: google.cloud.automl.v1beta1.OutputConfig.bigquery_destination:type_name -> google.cloud.automl.v1beta1.BigQueryDestination |
| 2073 | 9, // 8: google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination:type_name -> google.cloud.automl.v1beta1.GcsDestination |
| 2074 | 10, // 9: google.cloud.automl.v1beta1.BatchPredictOutputConfig.bigquery_destination:type_name -> google.cloud.automl.v1beta1.BigQueryDestination |
| 2075 | 9, // 10: google.cloud.automl.v1beta1.ModelExportOutputConfig.gcs_destination:type_name -> google.cloud.automl.v1beta1.GcsDestination |
| 2076 | 11, // 11: google.cloud.automl.v1beta1.ModelExportOutputConfig.gcr_destination:type_name -> google.cloud.automl.v1beta1.GcrDestination |
| 2077 | 13, // 12: google.cloud.automl.v1beta1.ModelExportOutputConfig.params:type_name -> google.cloud.automl.v1beta1.ModelExportOutputConfig.ParamsEntry |
| 2078 | 10, // 13: google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.bigquery_destination:type_name -> google.cloud.automl.v1beta1.BigQueryDestination |
| 2079 | 14, // [14:14] is the sub-list for method output_type |
| 2080 | 14, // [14:14] is the sub-list for method input_type |
| 2081 | 14, // [14:14] is the sub-list for extension type_name |
| 2082 | 14, // [14:14] is the sub-list for extension extendee |
| 2083 | 0, // [0:14] is the sub-list for field type_name |
| 2084 | } |
| 2085 | |
| 2086 | func init() { file_google_cloud_automl_v1beta1_io_proto_init() } |
| 2087 | func file_google_cloud_automl_v1beta1_io_proto_init() { |
| 2088 | if File_google_cloud_automl_v1beta1_io_proto != nil { |
| 2089 | return |
| 2090 | } |
| 2091 | file_google_cloud_automl_v1beta1_io_proto_msgTypes[0].OneofWrappers = []any{ |
| 2092 | (*InputConfig_GcsSource)(nil), |
| 2093 | (*InputConfig_BigquerySource)(nil), |
| 2094 | } |
| 2095 | file_google_cloud_automl_v1beta1_io_proto_msgTypes[1].OneofWrappers = []any{ |
| 2096 | (*BatchPredictInputConfig_GcsSource)(nil), |
| 2097 | (*BatchPredictInputConfig_BigquerySource)(nil), |
| 2098 | } |
| 2099 | file_google_cloud_automl_v1beta1_io_proto_msgTypes[3].OneofWrappers = []any{ |
| 2100 | (*OutputConfig_GcsDestination)(nil), |
| 2101 | (*OutputConfig_BigqueryDestination)(nil), |
| 2102 | } |
| 2103 | file_google_cloud_automl_v1beta1_io_proto_msgTypes[4].OneofWrappers = []any{ |
| 2104 | (*BatchPredictOutputConfig_GcsDestination)(nil), |
| 2105 | (*BatchPredictOutputConfig_BigqueryDestination)(nil), |
| 2106 | } |
| 2107 | file_google_cloud_automl_v1beta1_io_proto_msgTypes[5].OneofWrappers = []any{ |
| 2108 | (*ModelExportOutputConfig_GcsDestination)(nil), |
| 2109 | (*ModelExportOutputConfig_GcrDestination)(nil), |
| 2110 | } |
| 2111 | file_google_cloud_automl_v1beta1_io_proto_msgTypes[6].OneofWrappers = []any{ |
| 2112 | (*ExportEvaluatedExamplesOutputConfig_BigqueryDestination)(nil), |
| 2113 | } |
| 2114 | type x struct{} |
| 2115 | out := protoimpl.TypeBuilder{ |
| 2116 | File: protoimpl.DescBuilder{ |
| 2117 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 2118 | RawDescriptor: file_google_cloud_automl_v1beta1_io_proto_rawDesc, |
| 2119 | NumEnums: 0, |
| 2120 | NumMessages: 14, |
| 2121 | NumExtensions: 0, |
| 2122 | NumServices: 0, |
| 2123 | }, |
| 2124 | GoTypes: file_google_cloud_automl_v1beta1_io_proto_goTypes, |
| 2125 | DependencyIndexes: file_google_cloud_automl_v1beta1_io_proto_depIdxs, |
| 2126 | MessageInfos: file_google_cloud_automl_v1beta1_io_proto_msgTypes, |
| 2127 | }.Build() |
| 2128 | File_google_cloud_automl_v1beta1_io_proto = out.File |
| 2129 | file_google_cloud_automl_v1beta1_io_proto_rawDesc = nil |
| 2130 | file_google_cloud_automl_v1beta1_io_proto_goTypes = nil |
| 2131 | file_google_cloud_automl_v1beta1_io_proto_depIdxs = nil |
| 2132 | } |