Skip to content
Permalink
Browse files
feat: Update Service Directory v1beta1 protos to include VPC Network …
…field, and create/modify timestamp fields (#440)

PiperOrigin-RevId: 381234166

Source-Link: googleapis/googleapis@d69baf2

Source-Link: https://github.com/googleapis/googleapis-gen/commit/4111164f519b47bee7a907c06cec7277e5becbea
  • Loading branch information
gcf-owl-bot[bot] committed Jun 24, 2021
1 parent 4ef74e3 commit c3ed3fba8bf398e061ddaaaa799bc884fcb3deb8
Showing with 4,901 additions and 1,346 deletions.
  1. +12 −6 ...ervicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java
  2. +41 −35 ...edirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java
  3. +12 −6 ...cedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java
  4. +48 −6 ...ectory/src/test/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClientTest.java
  5. +24 −24 ...tory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java
  6. +1,087 −93 ...ud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/Endpoint.java
  7. +230 −32 ...edirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointOrBuilder.java
  8. +31 −19 ...rvicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointProto.java
  9. +2 −2 ...edirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/GetServiceRequest.java
  10. +245 −168 ...rectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ListEndpointsRequest.java
  11. +70 −48 ...1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ListEndpointsRequestOrBuilder.java
  12. +210 −210 ...ectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ListNamespacesRequest.java
  13. +60 −60 ...beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ListNamespacesRequestOrBuilder.java
  14. +224 −154 ...irectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ListServicesRequest.java
  15. +64 −44 ...v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ListServicesRequestOrBuilder.java
  16. +615 −29 ...d-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/Namespace.java
  17. +88 −12 ...directory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceOrBuilder.java
  18. +23 −17 ...vicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceProto.java
  19. +193 −0 ...servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NetworkName.java
  20. +182 −98 ...ectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ResolveServiceRequest.java
  21. +52 −28 ...beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ResolveServiceRequestOrBuilder.java
  22. +906 −86 ...oud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/Service.java
  23. +199 −27 ...cedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceOrBuilder.java
  24. +24 −19 ...ervicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceProto.java
  25. +59 −13 ...loud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/endpoint.proto
  26. +30 −15 ...ervicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/lookup_service.proto
  27. +11 −4 ...oud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/namespace.proto
  28. +122 −84 ...directory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/registration_service.proto
  29. +37 −7 ...cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/service.proto
@@ -1765,7 +1765,8 @@ public final UnaryCallable<DeleteEndpointRequest, Empty> deleteEndpointCallable(
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = registrationServiceClient.getIamPolicy(request);
@@ -1789,7 +1790,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future =
@@ -1813,7 +1815,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* Policy response = registrationServiceClient.setIamPolicy(request);
@@ -1837,7 +1840,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* ApiFuture<Policy> future =
@@ -1861,7 +1865,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = registrationServiceClient.testIamPermissions(request);
@@ -1885,7 +1890,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
@@ -174,7 +174,7 @@ public RegistrationServiceStub getStub() {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a namespace, and returns the new Namespace.
* Creates a namespace, and returns the new namespace.
*
* <p>Sample code:
*
@@ -212,7 +212,7 @@ public final Namespace createNamespace(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a namespace, and returns the new Namespace.
* Creates a namespace, and returns the new namespace.
*
* <p>Sample code:
*
@@ -249,7 +249,7 @@ public final Namespace createNamespace(String parent, Namespace namespace, Strin

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a namespace, and returns the new Namespace.
* Creates a namespace, and returns the new namespace.
*
* <p>Sample code:
*
@@ -274,7 +274,7 @@ public final Namespace createNamespace(CreateNamespaceRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a namespace, and returns the new Namespace.
* Creates a namespace, and returns the new namespace.
*
* <p>Sample code:
*
@@ -312,7 +312,7 @@ public final UnaryCallable<CreateNamespaceRequest, Namespace> createNamespaceCal
* }
* }</pre>
*
* @param parent Required. The resource name of the project and location whose namespaces we'd
* @param parent Required. The resource name of the project and location whose namespaces you'd
* like to list.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -339,7 +339,7 @@ public final ListNamespacesPagedResponse listNamespaces(LocationName parent) {
* }
* }</pre>
*
* @param parent Required. The resource name of the project and location whose namespaces we'd
* @param parent Required. The resource name of the project and location whose namespaces you'd
* like to list.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -699,7 +699,7 @@ public final UnaryCallable<DeleteNamespaceRequest, Empty> deleteNamespaceCallabl

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a service, and returns the new Service.
* Creates a service, and returns the new service.
*
* <p>Sample code:
*
@@ -734,7 +734,7 @@ public final Service createService(NamespaceName parent, Service service, String

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a service, and returns the new Service.
* Creates a service, and returns the new service.
*
* <p>Sample code:
*
@@ -769,7 +769,7 @@ public final Service createService(String parent, Service service, String servic

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a service, and returns the new Service.
* Creates a service, and returns the new service.
*
* <p>Sample code:
*
@@ -794,7 +794,7 @@ public final Service createService(CreateServiceRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a service, and returns the new Service.
* Creates a service, and returns the new service.
*
* <p>Sample code:
*
@@ -832,7 +832,7 @@ public final UnaryCallable<CreateServiceRequest, Service> createServiceCallable(
* }
* }</pre>
*
* @param parent Required. The resource name of the namespace whose services we'd like to list.
* @param parent Required. The resource name of the namespace whose services you'd like to list.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListServicesPagedResponse listServices(NamespaceName parent) {
@@ -858,7 +858,7 @@ public final ListServicesPagedResponse listServices(NamespaceName parent) {
* }
* }</pre>
*
* @param parent Required. The resource name of the namespace whose services we'd like to list.
* @param parent Required. The resource name of the namespace whose services you'd like to list.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListServicesPagedResponse listServices(String parent) {
@@ -1219,7 +1219,7 @@ public final UnaryCallable<DeleteServiceRequest, Empty> deleteServiceCallable()

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a endpoint, and returns the new Endpoint.
* Creates an endpoint, and returns the new endpoint.
*
* <p>Sample code:
*
@@ -1254,7 +1254,7 @@ public final Endpoint createEndpoint(ServiceName parent, Endpoint endpoint, Stri

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a endpoint, and returns the new Endpoint.
* Creates an endpoint, and returns the new endpoint.
*
* <p>Sample code:
*
@@ -1290,7 +1290,7 @@ public final Endpoint createEndpoint(String parent, Endpoint endpoint, String en

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a endpoint, and returns the new Endpoint.
* Creates an endpoint, and returns the new endpoint.
*
* <p>Sample code:
*
@@ -1316,7 +1316,7 @@ public final Endpoint createEndpoint(CreateEndpointRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a endpoint, and returns the new Endpoint.
* Creates an endpoint, and returns the new endpoint.
*
* <p>Sample code:
*
@@ -1355,7 +1355,7 @@ public final UnaryCallable<CreateEndpointRequest, Endpoint> createEndpointCallab
* }
* }</pre>
*
* @param parent Required. The resource name of the service whose endpoints we'd like to list.
* @param parent Required. The resource name of the service whose endpoints you'd like to list.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) {
@@ -1382,7 +1382,7 @@ public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) {
* }
* }</pre>
*
* @param parent Required. The resource name of the service whose endpoints we'd like to list.
* @param parent Required. The resource name of the service whose endpoints you'd like to list.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListEndpointsPagedResponse listEndpoints(String parent) {
@@ -1490,7 +1490,7 @@ public final UnaryCallable<ListEndpointsRequest, ListEndpointsResponse> listEndp

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a endpoint.
* Gets an endpoint.
*
* <p>Sample code:
*
@@ -1513,7 +1513,7 @@ public final Endpoint getEndpoint(EndpointName name) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a endpoint.
* Gets an endpoint.
*
* <p>Sample code:
*
@@ -1536,7 +1536,7 @@ public final Endpoint getEndpoint(String name) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a endpoint.
* Gets an endpoint.
*
* <p>Sample code:
*
@@ -1562,7 +1562,7 @@ public final Endpoint getEndpoint(GetEndpointRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a endpoint.
* Gets an endpoint.
*
* <p>Sample code:
*
@@ -1588,7 +1588,7 @@ public final UnaryCallable<GetEndpointRequest, Endpoint> getEndpointCallable() {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a endpoint.
* Updates an endpoint.
*
* <p>Sample code:
*
@@ -1612,7 +1612,7 @@ public final Endpoint updateEndpoint(Endpoint endpoint, FieldMask updateMask) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a endpoint.
* Updates an endpoint.
*
* <p>Sample code:
*
@@ -1636,7 +1636,7 @@ public final Endpoint updateEndpoint(UpdateEndpointRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a endpoint.
* Updates an endpoint.
*
* <p>Sample code:
*
@@ -1660,7 +1660,7 @@ public final UnaryCallable<UpdateEndpointRequest, Endpoint> updateEndpointCallab

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a endpoint.
* Deletes an endpoint.
*
* <p>Sample code:
*
@@ -1683,7 +1683,7 @@ public final void deleteEndpoint(EndpointName name) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a endpoint.
* Deletes an endpoint.
*
* <p>Sample code:
*
@@ -1706,7 +1706,7 @@ public final void deleteEndpoint(String name) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a endpoint.
* Deletes an endpoint.
*
* <p>Sample code:
*
@@ -1732,7 +1732,7 @@ public final void deleteEndpoint(DeleteEndpointRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a endpoint.
* Deletes an endpoint.
*
* <p>Sample code:
*
@@ -1766,7 +1766,8 @@ public final UnaryCallable<DeleteEndpointRequest, Empty> deleteEndpointCallable(
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = registrationServiceClient.getIamPolicy(request);
@@ -1790,7 +1791,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future =
@@ -1814,7 +1816,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* Policy response = registrationServiceClient.setIamPolicy(request);
@@ -1838,7 +1841,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* ApiFuture<Policy> future =
@@ -1862,7 +1866,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = registrationServiceClient.testIamPermissions(request);
@@ -1886,7 +1891,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
* .setResource(
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =

0 comments on commit c3ed3fb

Please sign in to comment.