code: @BetaApi
    public final Operation setPrivateIpGoogleAccessSubnetwork(
        ProjectRegionSubnetworkName subnetwork,
        SubnetworksSetPrivateIpGoogleAccessRequest
            subnetworksSetPrivateIpGoogleAccessRequestResource) {
  
      SetPrivateIpGoogleAccessSubnetworkHttpRequest request =
          SetPrivateIpGoogleAccessSubnetworkHttpRequest.newBuilder()
              .setSubnetwork(subnetwork == null ? null : subnetwork.toString())
              .setSubnetworksSetPrivateIpGoogleAccessRequestResource(
                  subnetworksSetPrivateIpGoogleAccessRequestResource)
              .build();
      return setPrivateIpGoogleAccessSubnetwork(request);
    }
docs: Set whether VMs in this subnet can access Google services without assigning external IP
  addresses through Private Google Access.
  
  <p>Sample code:
  
  <pre><code>
  try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
  ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
  SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource = SubnetworksSetPrivateIpGoogleAccessRequest.newBuilder().build();
  Operation response = subnetworkClient.setPrivateIpGoogleAccessSubnetwork(subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource);
  }
  </code></pre>
  
  @param subnetwork Name of the Subnetwork resource.
  @param subnetworksSetPrivateIpGoogleAccessRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails