code: public static void main(String[] args) throws IOException {
      AddressClient client = createCredentialedClient();
  
      System.out.println("Running with Gapic Client.");
      AddressClient.ListAddressesPagedResponse listResponse = listAddresses(client);
      verifyListAddressWithGets(client, listResponse);
  
      System.out.println("Running with Gapic Client and Resource Name.");
      String newAddressName = "new_address_name";
      System.out.println("Inserting address:");
  
      insertNewAddressJustClient(client, newAddressName);
  
      listAddresses(client);
  
      System.out.println("Deleting address:");
      Operation deleteResponse =
          client.deleteAddress(ProjectRegionAddressName.of(newAddressName, PROJECT_NAME, REGION));
      System.out.format("Result of delete: %s\n", deleteResponse.toString());
      int sleepTimeInSeconds = 3;
      System.out.format("Waiting %d seconds for server to update...\n", sleepTimeInSeconds);
      // Wait for the delete operation to finish on the server.
      try {
        TimeUnit.SECONDS.sleep(sleepTimeInSeconds);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
      listAddresses(client);
    }
docs: List addresses, Insert an address, and then delete the address. Use ResourceNames in the
  request objects.