code: @BetaApi
    public final InterconnectsGetDiagnosticsResponse getDiagnosticsInterconnect(
        ProjectGlobalInterconnectName interconnect) {
  
      GetDiagnosticsInterconnectHttpRequest request =
          GetDiagnosticsInterconnectHttpRequest.newBuilder()
              .setInterconnect(interconnect == null ? null : interconnect.toString())
              .build();
      return getDiagnosticsInterconnect(request);
    }
docs: Returns the interconnectDiagnostics for the specified interconnect.
  
  <p>Sample code:
  
  <pre><code>
  try (InterconnectClient interconnectClient = InterconnectClient.create()) {
  ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
  InterconnectsGetDiagnosticsResponse response = interconnectClient.getDiagnosticsInterconnect(interconnect);
  }
  </code></pre>
  
  @param interconnect Name of the interconnect resource to query.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails