column_spec.proto 2.9 KB

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