io.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.cloud.aiplatform.v1;
  16. import "google/api/field_behavior.proto";
  17. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "IoProto";
  21. option java_package = "com.google.cloud.aiplatform.v1";
  22. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  23. option ruby_package = "Google::Cloud::AIPlatform::V1";
  24. // The storage details for Avro input content.
  25. message AvroSource {
  26. // Required. Google Cloud Storage location.
  27. GcsSource gcs_source = 1 [(google.api.field_behavior) = REQUIRED];
  28. }
  29. // The storage details for CSV input content.
  30. message CsvSource {
  31. // Required. Google Cloud Storage location.
  32. GcsSource gcs_source = 1 [(google.api.field_behavior) = REQUIRED];
  33. }
  34. // The Google Cloud Storage location for the input content.
  35. message GcsSource {
  36. // Required. Google Cloud Storage URI(-s) to the input file(s). May contain
  37. // wildcards. For more information on wildcards, see
  38. // https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
  39. repeated string uris = 1 [(google.api.field_behavior) = REQUIRED];
  40. }
  41. // The Google Cloud Storage location where the output is to be written to.
  42. message GcsDestination {
  43. // Required. Google Cloud Storage URI to output directory. If the uri doesn't end with
  44. // '/', a '/' will be automatically appended. The directory is created if it
  45. // doesn't exist.
  46. string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED];
  47. }
  48. // The BigQuery location for the input content.
  49. message BigQuerySource {
  50. // Required. BigQuery URI to a table, up to 2000 characters long.
  51. // Accepted forms:
  52. //
  53. // * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`.
  54. string input_uri = 1 [(google.api.field_behavior) = REQUIRED];
  55. }
  56. // The BigQuery location for the output content.
  57. message BigQueryDestination {
  58. // Required. BigQuery URI to a project or table, up to 2000 characters long.
  59. //
  60. // When only the project is specified, the Dataset and Table is created.
  61. // When the full table reference is specified, the Dataset must exist and
  62. // table must not exist.
  63. //
  64. // Accepted forms:
  65. //
  66. // * BigQuery path. For example:
  67. // `bq://projectId` or `bq://projectId.bqDatasetId` or
  68. // `bq://projectId.bqDatasetId.bqTableId`.
  69. string output_uri = 1 [(google.api.field_behavior) = REQUIRED];
  70. }
  71. // The storage details for CSV output content.
  72. message CsvDestination {
  73. // Required. Google Cloud Storage location.
  74. GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED];
  75. }
  76. // The storage details for TFRecord output content.
  77. message TFRecordDestination {
  78. // Required. Google Cloud Storage location.
  79. GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED];
  80. }
  81. // The Container Registry location for the container image.
  82. message ContainerRegistryDestination {
  83. // Required. Container Registry URI of a container image.
  84. // Only Google Container Registry and Artifact Registry are supported now.
  85. // Accepted forms:
  86. //
  87. // * Google Container Registry path. For example:
  88. // `gcr.io/projectId/imageName:tag`.
  89. //
  90. // * Artifact Registry path. For example:
  91. // `us-central1-docker.pkg.dev/projectId/repoName/imageName:tag`.
  92. //
  93. // If a tag is not specified, "latest" will be used as the default tag.
  94. string output_uri = 1 [(google.api.field_behavior) = REQUIRED];
  95. }