use of com.spotify.protoman.registry.storage.SchemaStorage in project protoman by spotify.
the class Main method createSchemaRegistry.
private static SchemaRegistry createSchemaRegistry() {
final Storage gcsStorage = StorageOptions.getDefaultInstance().getService();
final SchemaStorage schemaStorage = GcsSchemaStorage.create(gcsStorage, BUCKET_NAME);
return SchemaRegistry.create(schemaStorage, DefaultSchemaValidator.withDefaultRules(), SemverSchemaVersioner.create(), ProtocDescriptorBuilder.factoryBuilder().build());
}
Aggregations