Search in sources :

Example 1 with FileDescriptorTreeProto

use of com.palantir.atlasdb.protos.generated.TableMetadataPersistence.FileDescriptorTreeProto in project atlasdb by palantir.

the class ColumnValueDescription method persistFileDescriptorTree.

private static FileDescriptorTreeProto persistFileDescriptorTree(FileDescriptor file) {
    FileDescriptorTreeProto.Builder builder = FileDescriptorTreeProto.newBuilder();
    builder.setProtoFileDescriptor(file.toProto().toByteString());
    for (FileDescriptor dependency : file.getDependencies()) {
        builder.addDependencies(persistFileDescriptorTree(dependency));
    }
    return builder.build();
}
Also used : FileDescriptorTreeProto(com.palantir.atlasdb.protos.generated.TableMetadataPersistence.FileDescriptorTreeProto) FileDescriptor(com.google.protobuf.Descriptors.FileDescriptor)

Aggregations

FileDescriptor (com.google.protobuf.Descriptors.FileDescriptor)1 FileDescriptorTreeProto (com.palantir.atlasdb.protos.generated.TableMetadataPersistence.FileDescriptorTreeProto)1