Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

feat: Update Service Directory v1beta1 protos to include VPC Network field, and create/modify timestamp fields #440

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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);
Expand All @@ -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 =
Expand All @@ -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);
Expand All @@ -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 =
Expand All @@ -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);
Expand All @@ -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 =
Expand Down
Expand Up @@ -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:
*
Expand Down Expand Up @@ -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:
*
Expand Down Expand Up @@ -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:
*
Expand All @@ -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:
*
Expand Down Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down Expand Up @@ -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:
*
Expand Down Expand Up @@ -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:
*
Expand Down Expand Up @@ -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:
*
Expand All @@ -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:
*
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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:
*
Expand Down Expand Up @@ -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:
*
Expand Down Expand Up @@ -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:
*
Expand All @@ -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:
*
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -1490,7 +1490,7 @@ public final UnaryCallable<ListEndpointsRequest, ListEndpointsResponse> listEndp

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

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

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

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

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

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

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

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

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

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a endpoint.
* Deletes an endpoint.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -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);
Expand All @@ -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 =
Expand All @@ -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);
Expand All @@ -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 =
Expand All @@ -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);
Expand All @@ -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 =
Expand Down