Skip to content

Instantly share code, notes, and snippets.

@galderz
Created June 27, 2018 11:31
Show Gist options
  • Save galderz/da67bac08b3e5e6aa02da26f76821a50 to your computer and use it in GitHub Desktop.
Save galderz/da67bac08b3e5e6aa02da26f76821a50 to your computer and use it in GitHub Desktop.
RemoteCache<String, String> metadataCache =
remote.getCache(PROTOBUF_METADATA_CACHE_NAME);
metadataCache.put(fileName, protoFile);
String filesWithErrors = metadataCache.get(ERRORS_KEY_SUFFIX);
if (filesWithErrors != null)
throw new AssertionError("Error in proto file(s): " + filesWithErrors);
else
System.out.println("Added schema file: " + fileName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment