code: @BetaApi
    public final Operation setLabelsImage(
        ProjectGlobalImageResourceName resource,
        GlobalSetLabelsRequest globalSetLabelsRequestResource) {
  
      SetLabelsImageHttpRequest request =
          SetLabelsImageHttpRequest.newBuilder()
              .setResource(resource == null ? null : resource.toString())
              .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource)
              .build();
      return setLabelsImage(request);
    }
docs: Sets the labels on an image. To learn more about labels, read the Labeling Resources
  documentation.
  
  <p>Sample code:
  
  <pre><code>
  try (ImageClient imageClient = ImageClient.create()) {
  ProjectGlobalImageResourceName resource = ProjectGlobalImageResourceName.of("[PROJECT]", "[RESOURCE]");
  GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build();
  Operation response = imageClient.setLabelsImage(resource, globalSetLabelsRequestResource);
  }
  </code></pre>
  
  @param resource Name or id of the resource for this request.
  @param globalSetLabelsRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails