@BetaApi
  public final Operation setCommonInstanceMetadataProject(
      ProjectName project, Metadata metadataResource) {

    SetCommonInstanceMetadataProjectHttpRequest request =
        SetCommonInstanceMetadataProjectHttpRequest.newBuilder()
            .setProject(project == null ? null : project.toString())
            .setMetadataResource(metadataResource)
            .build();
    return setCommonInstanceMetadataProject(request);
  }
@ BetaApi public final Operation setCommonInstanceMetadataProject ( ProjectName project , Metadata metadataResource ) { SetCommonInstanceMetadataProjectHttpRequest request = SetCommonInstanceMetadataProjectHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . setMetadataResource ( metadataResource ) . build ( ) ; return setCommonInstanceMetadataProject ( request ) ; }
Sets metadata common to all instances within the specified project using the data included in
the request.

<p>Sample code:

<pre><code>
try (ProjectClient projectClient = ProjectClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
Metadata metadataResource = Metadata.newBuilder().build();
Operation response = projectClient.setCommonInstanceMetadataProject(project, metadataResource);
}
</code></pre>

@param project Project ID for this request.
@param metadataResource A metadata key/value entry.
@throws com.google.api.gax.rpc.ApiException if the remote call fails