@@ -808,6 +808,155 @@ public final UnaryCallable<ListAddressesRequest, AddressList> listCallable() {
808808 return stub .listCallable ();
809809 }
810810
811+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
812+ /**
813+ * Sets the labels on an Address. To learn more about labels, read the Labeling Resources
814+ * documentation.
815+ *
816+ * <p>Sample code:
817+ *
818+ * <pre>{@code
819+ * // This snippet has been automatically generated and should be regarded as a code template only.
820+ * // It will require modifications to work:
821+ * // - It may require correct/in-range values for request initialization.
822+ * // - It may require specifying regional endpoints when creating the service client as shown in
823+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
824+ * try (AddressesClient addressesClient = AddressesClient.create()) {
825+ * String project = "project-309310695";
826+ * String region = "region-934795532";
827+ * String resource = "resource-341064690";
828+ * RegionSetLabelsRequest regionSetLabelsRequestResource =
829+ * RegionSetLabelsRequest.newBuilder().build();
830+ * Operation response =
831+ * addressesClient
832+ * .setLabelsAsync(project, region, resource, regionSetLabelsRequestResource)
833+ * .get();
834+ * }
835+ * }</pre>
836+ *
837+ * @param project Project ID for this request.
838+ * @param region The region for this request.
839+ * @param resource Name or id of the resource for this request.
840+ * @param regionSetLabelsRequestResource The body resource for this request
841+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
842+ */
843+ public final OperationFuture <Operation , Operation > setLabelsAsync (
844+ String project ,
845+ String region ,
846+ String resource ,
847+ RegionSetLabelsRequest regionSetLabelsRequestResource ) {
848+ SetLabelsAddressRequest request =
849+ SetLabelsAddressRequest .newBuilder ()
850+ .setProject (project )
851+ .setRegion (region )
852+ .setResource (resource )
853+ .setRegionSetLabelsRequestResource (regionSetLabelsRequestResource )
854+ .build ();
855+ return setLabelsAsync (request );
856+ }
857+
858+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
859+ /**
860+ * Sets the labels on an Address. To learn more about labels, read the Labeling Resources
861+ * documentation.
862+ *
863+ * <p>Sample code:
864+ *
865+ * <pre>{@code
866+ * // This snippet has been automatically generated and should be regarded as a code template only.
867+ * // It will require modifications to work:
868+ * // - It may require correct/in-range values for request initialization.
869+ * // - It may require specifying regional endpoints when creating the service client as shown in
870+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
871+ * try (AddressesClient addressesClient = AddressesClient.create()) {
872+ * SetLabelsAddressRequest request =
873+ * SetLabelsAddressRequest.newBuilder()
874+ * .setProject("project-309310695")
875+ * .setRegion("region-934795532")
876+ * .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
877+ * .setRequestId("requestId693933066")
878+ * .setResource("resource-341064690")
879+ * .build();
880+ * Operation response = addressesClient.setLabelsAsync(request).get();
881+ * }
882+ * }</pre>
883+ *
884+ * @param request The request object containing all of the parameters for the API call.
885+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
886+ */
887+ @ BetaApi (
888+ "The surface for long-running operations is not stable yet and may change in the future." )
889+ public final OperationFuture <Operation , Operation > setLabelsAsync (
890+ SetLabelsAddressRequest request ) {
891+ return setLabelsOperationCallable ().futureCall (request );
892+ }
893+
894+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
895+ /**
896+ * Sets the labels on an Address. To learn more about labels, read the Labeling Resources
897+ * documentation.
898+ *
899+ * <p>Sample code:
900+ *
901+ * <pre>{@code
902+ * // This snippet has been automatically generated and should be regarded as a code template only.
903+ * // It will require modifications to work:
904+ * // - It may require correct/in-range values for request initialization.
905+ * // - It may require specifying regional endpoints when creating the service client as shown in
906+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
907+ * try (AddressesClient addressesClient = AddressesClient.create()) {
908+ * SetLabelsAddressRequest request =
909+ * SetLabelsAddressRequest.newBuilder()
910+ * .setProject("project-309310695")
911+ * .setRegion("region-934795532")
912+ * .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
913+ * .setRequestId("requestId693933066")
914+ * .setResource("resource-341064690")
915+ * .build();
916+ * OperationFuture<Operation, Operation> future =
917+ * addressesClient.setLabelsOperationCallable().futureCall(request);
918+ * // Do something.
919+ * Operation response = future.get();
920+ * }
921+ * }</pre>
922+ */
923+ public final OperationCallable <SetLabelsAddressRequest , Operation , Operation >
924+ setLabelsOperationCallable () {
925+ return stub .setLabelsOperationCallable ();
926+ }
927+
928+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
929+ /**
930+ * Sets the labels on an Address. To learn more about labels, read the Labeling Resources
931+ * documentation.
932+ *
933+ * <p>Sample code:
934+ *
935+ * <pre>{@code
936+ * // This snippet has been automatically generated and should be regarded as a code template only.
937+ * // It will require modifications to work:
938+ * // - It may require correct/in-range values for request initialization.
939+ * // - It may require specifying regional endpoints when creating the service client as shown in
940+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
941+ * try (AddressesClient addressesClient = AddressesClient.create()) {
942+ * SetLabelsAddressRequest request =
943+ * SetLabelsAddressRequest.newBuilder()
944+ * .setProject("project-309310695")
945+ * .setRegion("region-934795532")
946+ * .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
947+ * .setRequestId("requestId693933066")
948+ * .setResource("resource-341064690")
949+ * .build();
950+ * ApiFuture<Operation> future = addressesClient.setLabelsCallable().futureCall(request);
951+ * // Do something.
952+ * Operation response = future.get();
953+ * }
954+ * }</pre>
955+ */
956+ public final UnaryCallable <SetLabelsAddressRequest , Operation > setLabelsCallable () {
957+ return stub .setLabelsCallable ();
958+ }
959+
811960 @ Override
812961 public final void close () {
813962 stub .close ();
0 commit comments