@BetaApi
  public final Operation setLabelsRegionDisk(
      String resource, RegionSetLabelsRequest regionSetLabelsRequestResource) {

    SetLabelsRegionDiskHttpRequest request =
        SetLabelsRegionDiskHttpRequest.newBuilder()
            .setResource(resource)
            .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource)
            .build();
    return setLabelsRegionDisk(request);
  }
@ BetaApi public final Operation setLabelsRegionDisk ( String resource , RegionSetLabelsRequest regionSetLabelsRequestResource ) { SetLabelsRegionDiskHttpRequest request = SetLabelsRegionDiskHttpRequest . newBuilder ( ) . setResource ( resource ) . setRegionSetLabelsRequestResource ( regionSetLabelsRequestResource ) . build ( ) ; return setLabelsRegionDisk ( request ) ; }
Sets the labels on the target regional disk.

<p>Sample code:

<pre><code>
try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
ProjectRegionDiskResourceName resource = ProjectRegionDiskResourceName.of("[PROJECT]", "[REGION]", "[RESOURCE]");
RegionSetLabelsRequest regionSetLabelsRequestResource = RegionSetLabelsRequest.newBuilder().build();
Operation response = regionDiskClient.setLabelsRegionDisk(resource.toString(), regionSetLabelsRequestResource);
}
</code></pre>

@param resource Name or id of the resource for this request.
@param regionSetLabelsRequestResource
@throws com.google.api.gax.rpc.ApiException if the remote call fails