column_spec.proto 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Copyright 2020 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.automl.v1beta1;
  16. import "google/api/resource.proto";
  17. import "google/cloud/automl/v1beta1/data_stats.proto";
  18. import "google/cloud/automl/v1beta1/data_types.proto";
  19. import "google/api/annotations.proto";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
  21. option java_multiple_files = true;
  22. option java_package = "com.google.cloud.automl.v1beta1";
  23. option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
  24. option ruby_package = "Google::Cloud::AutoML::V1beta1";
  25. // A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were
  26. // given on import .
  27. // Used by:
  28. // * Tables
  29. message ColumnSpec {
  30. option (google.api.resource) = {
  31. type: "automl.googleapis.com/ColumnSpec"
  32. pattern: "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}/columnSpecs/{column_spec}"
  33. };
  34. // Identifies the table's column, and its correlation with the column this
  35. // ColumnSpec describes.
  36. message CorrelatedColumn {
  37. // The column_spec_id of the correlated column, which belongs to the same
  38. // table as the in-context column.
  39. string column_spec_id = 1;
  40. // Correlation between this and the in-context column.
  41. CorrelationStats correlation_stats = 2;
  42. }
  43. // Output only. The resource name of the column specs.
  44. // Form:
  45. //
  46. // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
  47. string name = 1;
  48. // The data type of elements stored in the column.
  49. DataType data_type = 2;
  50. // Output only. The name of the column to show in the interface. The name can
  51. // be up to 100 characters long and can consist only of ASCII Latin letters
  52. // A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
  53. // must start with a letter or a digit.
  54. string display_name = 3;
  55. // Output only. Stats of the series of values in the column.
  56. // This field may be stale, see the ancestor's
  57. // Dataset.tables_dataset_metadata.stats_update_time field
  58. // for the timestamp at which these stats were last updated.
  59. DataStats data_stats = 4;
  60. // Deprecated.
  61. repeated CorrelatedColumn top_correlated_columns = 5;
  62. // Used to perform consistent read-modify-write updates. If not set, a blind
  63. // "overwrite" update happens.
  64. string etag = 6;
  65. }