io.proto 4.1 KB

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