Skip to content
Permalink
Browse files
feat: add order field to TagField and TagTemplateField message …
…in tags.proto (#166)

fix: broken document links & polish comments
feat: add csharp/ruby/PHP namespaces
chore: update copyright for proto files

PiperOrigin-RevId: 307068250

Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri Apr 17 10:26:08 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: b5e9b0b09cc15c263f07da92fa64db31b2e4dd07
Source-Link: googleapis/googleapis@b5e9b0b
  • Loading branch information
yoshi-automation committed Apr 20, 2020
1 parent 7d5dd43 commit ed46c976307dca364155e4e380a22db85f1cdb42
Showing with 1,206 additions and 987 deletions.
  1. +110 −120 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java
  2. +6 −0 ...e-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java
  3. +156 −152 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java
  4. +7 −4 ...o-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java
  5. +14 −14 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java
  6. +4 −4 ...catalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java
  7. +7 −14 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java
  8. +2 −4 ...a1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java
  9. +7 −14 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java
  10. +2 −4 ...v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java
  11. +7 −4 ...gle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java
  12. +64 −64 proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java
  13. +12 −24 ...ogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java
  14. +3 −6 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java
  15. +16 −16 ...-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java
  16. +6 −4 ...oogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java
  17. +7 −4 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java
  18. +36 −36 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java
  19. +10 −10 ...g-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java
  20. +14 −14 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java
  21. +4 −4 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java
  22. +7 −7 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java
  23. +2 −2 ...talog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java
  24. +5 −3 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java
  25. +4 −2 ...1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationProto.java
  26. +7 −14 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java
  27. +2 −4 ...a1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java
  28. +7 −4 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java
  29. +7 −4 ...o-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java
  30. +152 −185 ...-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java
  31. +22 −13 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java
  32. +7 −4 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java
  33. +6 −4 proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java
  34. +104 −0 ...google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java
  35. +17 −0 ...oud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java
  36. +12 −8 ...gle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java
  37. +100 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java
  38. +16 −0 ...catalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java
  39. +38 −34 proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java
  40. +7 −4 ...ogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java
  41. +4 −2 proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto
  42. +127 −150 ...oogle-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto
  43. +4 −2 ...-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto
  44. +4 −2 ...-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto
  45. +4 −2 ...talog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto
  46. +4 −2 proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/schema.proto
  47. +4 −2 proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto
  48. +4 −2 ...google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/table_spec.proto
  49. +26 −8 proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto
  50. +4 −2 ...google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/timestamps.proto
  51. +5 −5 synth.metadata

Large diffs are not rendered by default.

@@ -905,11 +905,13 @@ public void createTagTemplateFieldTest() {
String name = "name3373707";
String displayName = "displayName1615086568";
boolean isRequired = true;
int order = 106006350;
TagTemplateField expectedResponse =
TagTemplateField.newBuilder()
.setName(name)
.setDisplayName(displayName)
.setIsRequired(isRequired)
.setOrder(order)
.build();
mockDataCatalog.addResponse(expectedResponse);

@@ -961,11 +963,13 @@ public void updateTagTemplateFieldTest() {
String name2 = "name2-1052831874";
String displayName = "displayName1615086568";
boolean isRequired = true;
int order = 106006350;
TagTemplateField expectedResponse =
TagTemplateField.newBuilder()
.setName(name2)
.setDisplayName(displayName)
.setIsRequired(isRequired)
.setOrder(order)
.build();
mockDataCatalog.addResponse(expectedResponse);

@@ -1017,11 +1021,13 @@ public void renameTagTemplateFieldTest() {
String name2 = "name2-1052831874";
String displayName = "displayName1615086568";
boolean isRequired = true;
int order = 106006350;
TagTemplateField expectedResponse =
TagTemplateField.newBuilder()
.setName(name2)
.setDisplayName(displayName)
.setIsRequired(isRequired)
.setOrder(order)
.build();
mockDataCatalog.addResponse(expectedResponse);

Large diffs are not rendered by default.

@@ -39,10 +39,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "n.proto\022 google.cloud.datacatalog.v1beta"
+ "1*U\n\020IntegratedSystem\022!\n\035INTEGRATED_SYST"
+ "EM_UNSPECIFIED\020\000\022\014\n\010BIGQUERY\020\001\022\020\n\014CLOUD_"
+ "PUBSUB\020\002Bx\n$com.google.cloud.datacatalog"
+ ".v1beta1P\001ZKgoogle.golang.org/genproto/g"
+ "oogleapis/cloud/datacatalog/v1beta1;data"
+ "catalog\370\001\001b\006proto3"
+ "PUBSUB\020\002B\344\001\n$com.google.cloud.datacatalo"
+ "g.v1beta1P\001ZKgoogle.golang.org/genproto/"
+ "googleapis/cloud/datacatalog/v1beta1;dat"
+ "acatalog\370\001\001\252\002 Google.Cloud.DataCatalog.V"
+ "1Beta1\312\002 Google\\Cloud\\DataCatalog\\V1beta"
+ "1\352\002#Google::Cloud::DataCatalog::V1beta1b"
+ "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -134,8 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -162,8 +162,8 @@ public java.lang.String getParent() {
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -586,8 +586,8 @@ public Builder mergeFrom(
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -614,8 +614,8 @@ public java.lang.String getParent() {
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -642,8 +642,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -669,8 +669,8 @@ public Builder setParent(java.lang.String value) {
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -692,8 +692,8 @@ public Builder clearParent() {
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -27,8 +27,8 @@
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -45,8 +45,8 @@
*
*
* <pre>
* Required. The name of the resource to attach this tag to. Tags can be
* attached to Entries. Example:
* Required. The name of the resource to attach this tag to. Tags can be attached to
* Entries. Example:
* * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
* Note that this Tag and its child resources may not actually be stored in
* the location in this name.
@@ -144,8 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -172,8 +171,7 @@ public java.lang.String getParent() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -681,8 +679,7 @@ public Builder mergeFrom(
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -709,8 +706,7 @@ public java.lang.String getParent() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -737,8 +733,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -764,8 +759,7 @@ public Builder setParent(java.lang.String value) {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -787,8 +781,7 @@ public Builder clearParent() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -28,8 +28,7 @@
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -46,8 +45,7 @@
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
* Example:
* * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
* </pre>
@@ -143,8 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -171,8 +170,7 @@ public java.lang.String getParent() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -666,8 +664,7 @@ public Builder mergeFrom(
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -694,8 +691,7 @@ public java.lang.String getParent() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -722,8 +718,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -749,8 +744,7 @@ public Builder setParent(java.lang.String value) {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -772,8 +766,7 @@ public Builder clearParent() {
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -28,8 +28,7 @@
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -46,8 +45,7 @@
*
* <pre>
* Required. The name of the project and the template location
* [region](/compute/docs/regions-zones/#available).
* NOTE: Currently, only the `us-central1 region` is supported.
* [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
* Example:
* * projects/{project_id}/locations/us-central1
* </pre>
@@ -466,10 +466,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "cts/*/locations/*/entryGroups/*/entries/"
+ "*}:testIamPermissions:\001*\032N\312A\032datacatalog"
+ ".googleapis.com\322A.https://www.googleapis"
+ ".com/auth/cloud-platformBx\n$com.google.c"
+ "loud.datacatalog.v1beta1P\001ZKgoogle.golan"
+ "g.org/genproto/googleapis/cloud/datacata"
+ "log/v1beta1;datacatalog\370\001\001b\006proto3"
+ ".com/auth/cloud-platformB\344\001\n$com.google."
+ "cloud.datacatalog.v1beta1P\001ZKgoogle.gola"
+ "ng.org/genproto/googleapis/cloud/datacat"
+ "alog/v1beta1;datacatalog\370\001\001\252\002 Google.Clo"
+ "ud.DataCatalog.V1Beta1\312\002 Google\\Cloud\\Da"
+ "taCatalog\\V1beta1\352\002#Google::Cloud::DataC"
+ "atalog::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

0 comments on commit ed46c97

Please sign in to comment.