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

Commit c3ed3fb

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
1 parent 4ef74e3 commit c3ed3fb

29 files changed

Lines changed: 4901 additions & 1346 deletions

File tree

google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,8 @@ public final UnaryCallable<DeleteEndpointRequest, Empty> deleteEndpointCallable(
17651765
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
17661766
* GetIamPolicyRequest request =
17671767
* GetIamPolicyRequest.newBuilder()
1768-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1768+
* .setResource(
1769+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
17691770
* .setOptions(GetPolicyOptions.newBuilder().build())
17701771
* .build();
17711772
* Policy response = registrationServiceClient.getIamPolicy(request);
@@ -1789,7 +1790,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
17891790
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
17901791
* GetIamPolicyRequest request =
17911792
* GetIamPolicyRequest.newBuilder()
1792-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1793+
* .setResource(
1794+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
17931795
* .setOptions(GetPolicyOptions.newBuilder().build())
17941796
* .build();
17951797
* ApiFuture<Policy> future =
@@ -1813,7 +1815,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
18131815
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18141816
* SetIamPolicyRequest request =
18151817
* SetIamPolicyRequest.newBuilder()
1816-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1818+
* .setResource(
1819+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18171820
* .setPolicy(Policy.newBuilder().build())
18181821
* .build();
18191822
* Policy response = registrationServiceClient.setIamPolicy(request);
@@ -1837,7 +1840,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
18371840
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18381841
* SetIamPolicyRequest request =
18391842
* SetIamPolicyRequest.newBuilder()
1840-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1843+
* .setResource(
1844+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18411845
* .setPolicy(Policy.newBuilder().build())
18421846
* .build();
18431847
* ApiFuture<Policy> future =
@@ -1861,7 +1865,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
18611865
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18621866
* TestIamPermissionsRequest request =
18631867
* TestIamPermissionsRequest.newBuilder()
1864-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1868+
* .setResource(
1869+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18651870
* .addAllPermissions(new ArrayList<String>())
18661871
* .build();
18671872
* TestIamPermissionsResponse response = registrationServiceClient.testIamPermissions(request);
@@ -1885,7 +1890,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
18851890
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18861891
* TestIamPermissionsRequest request =
18871892
* TestIamPermissionsRequest.newBuilder()
1888-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1893+
* .setResource(
1894+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18891895
* .addAllPermissions(new ArrayList<String>())
18901896
* .build();
18911897
* ApiFuture<TestIamPermissionsResponse> future =

google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public RegistrationServiceStub getStub() {
174174

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

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

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

275275
// AUTO-GENERATED DOCUMENTATION AND METHOD.
276276
/**
277-
* Creates a namespace, and returns the new Namespace.
277+
* Creates a namespace, and returns the new namespace.
278278
*
279279
* <p>Sample code:
280280
*
@@ -312,7 +312,7 @@ public final UnaryCallable<CreateNamespaceRequest, Namespace> createNamespaceCal
312312
* }
313313
* }</pre>
314314
*
315-
* @param parent Required. The resource name of the project and location whose namespaces we'd
315+
* @param parent Required. The resource name of the project and location whose namespaces you'd
316316
* like to list.
317317
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
318318
*/
@@ -339,7 +339,7 @@ public final ListNamespacesPagedResponse listNamespaces(LocationName parent) {
339339
* }
340340
* }</pre>
341341
*
342-
* @param parent Required. The resource name of the project and location whose namespaces we'd
342+
* @param parent Required. The resource name of the project and location whose namespaces you'd
343343
* like to list.
344344
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
345345
*/
@@ -699,7 +699,7 @@ public final UnaryCallable<DeleteNamespaceRequest, Empty> deleteNamespaceCallabl
699699

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

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

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

795795
// AUTO-GENERATED DOCUMENTATION AND METHOD.
796796
/**
797-
* Creates a service, and returns the new Service.
797+
* Creates a service, and returns the new service.
798798
*
799799
* <p>Sample code:
800800
*
@@ -832,7 +832,7 @@ public final UnaryCallable<CreateServiceRequest, Service> createServiceCallable(
832832
* }
833833
* }</pre>
834834
*
835-
* @param parent Required. The resource name of the namespace whose services we'd like to list.
835+
* @param parent Required. The resource name of the namespace whose services you'd like to list.
836836
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
837837
*/
838838
public final ListServicesPagedResponse listServices(NamespaceName parent) {
@@ -858,7 +858,7 @@ public final ListServicesPagedResponse listServices(NamespaceName parent) {
858858
* }
859859
* }</pre>
860860
*
861-
* @param parent Required. The resource name of the namespace whose services we'd like to list.
861+
* @param parent Required. The resource name of the namespace whose services you'd like to list.
862862
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
863863
*/
864864
public final ListServicesPagedResponse listServices(String parent) {
@@ -1219,7 +1219,7 @@ public final UnaryCallable<DeleteServiceRequest, Empty> deleteServiceCallable()
12191219

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

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

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

13171317
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13181318
/**
1319-
* Creates a endpoint, and returns the new Endpoint.
1319+
* Creates an endpoint, and returns the new endpoint.
13201320
*
13211321
* <p>Sample code:
13221322
*
@@ -1355,7 +1355,7 @@ public final UnaryCallable<CreateEndpointRequest, Endpoint> createEndpointCallab
13551355
* }
13561356
* }</pre>
13571357
*
1358-
* @param parent Required. The resource name of the service whose endpoints we'd like to list.
1358+
* @param parent Required. The resource name of the service whose endpoints you'd like to list.
13591359
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13601360
*/
13611361
public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) {
@@ -1382,7 +1382,7 @@ public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) {
13821382
* }
13831383
* }</pre>
13841384
*
1385-
* @param parent Required. The resource name of the service whose endpoints we'd like to list.
1385+
* @param parent Required. The resource name of the service whose endpoints you'd like to list.
13861386
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13871387
*/
13881388
public final ListEndpointsPagedResponse listEndpoints(String parent) {
@@ -1490,7 +1490,7 @@ public final UnaryCallable<ListEndpointsRequest, ListEndpointsResponse> listEndp
14901490

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

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

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

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

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

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

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

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

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

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

17331733
// AUTO-GENERATED DOCUMENTATION AND METHOD.
17341734
/**
1735-
* Deletes a endpoint.
1735+
* Deletes an endpoint.
17361736
*
17371737
* <p>Sample code:
17381738
*
@@ -1766,7 +1766,8 @@ public final UnaryCallable<DeleteEndpointRequest, Empty> deleteEndpointCallable(
17661766
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
17671767
* GetIamPolicyRequest request =
17681768
* GetIamPolicyRequest.newBuilder()
1769-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1769+
* .setResource(
1770+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
17701771
* .setOptions(GetPolicyOptions.newBuilder().build())
17711772
* .build();
17721773
* Policy response = registrationServiceClient.getIamPolicy(request);
@@ -1790,7 +1791,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
17901791
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
17911792
* GetIamPolicyRequest request =
17921793
* GetIamPolicyRequest.newBuilder()
1793-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1794+
* .setResource(
1795+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
17941796
* .setOptions(GetPolicyOptions.newBuilder().build())
17951797
* .build();
17961798
* ApiFuture<Policy> future =
@@ -1814,7 +1816,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
18141816
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18151817
* SetIamPolicyRequest request =
18161818
* SetIamPolicyRequest.newBuilder()
1817-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1819+
* .setResource(
1820+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18181821
* .setPolicy(Policy.newBuilder().build())
18191822
* .build();
18201823
* Policy response = registrationServiceClient.setIamPolicy(request);
@@ -1838,7 +1841,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
18381841
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18391842
* SetIamPolicyRequest request =
18401843
* SetIamPolicyRequest.newBuilder()
1841-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1844+
* .setResource(
1845+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18421846
* .setPolicy(Policy.newBuilder().build())
18431847
* .build();
18441848
* ApiFuture<Policy> future =
@@ -1862,7 +1866,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
18621866
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18631867
* TestIamPermissionsRequest request =
18641868
* TestIamPermissionsRequest.newBuilder()
1865-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1869+
* .setResource(
1870+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18661871
* .addAllPermissions(new ArrayList<String>())
18671872
* .build();
18681873
* TestIamPermissionsResponse response = registrationServiceClient.testIamPermissions(request);
@@ -1886,7 +1891,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
18861891
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18871892
* TestIamPermissionsRequest request =
18881893
* TestIamPermissionsRequest.newBuilder()
1889-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1894+
* .setResource(
1895+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18901896
* .addAllPermissions(new ArrayList<String>())
18911897
* .build();
18921898
* ApiFuture<TestIamPermissionsResponse> future =

0 commit comments

Comments
 (0)