in src/main/java/org/apache/skywalking/banyandb/v1/client/metadata/IndexRule.java [119:131]
public static IndexRule fromProtobuf(BanyandbDatabase.IndexRule pb) {
IndexType indexType = IndexType.fromProtobuf(pb.getType());
IndexLocation indexLocation = IndexLocation.fromProtobuf(pb.getLocation());
Analyzer analyzer = Analyzer.fromProtobuf(pb.getAnalyzer());
return new AutoValue_IndexRule.Builder()
.setGroup(pb.getMetadata().getGroup())
.setName(pb.getMetadata().getName())
.setUpdatedAt(TimeUtils.parseTimestamp(pb.getUpdatedAt()))
.setIndexLocation(indexLocation)
.setIndexType(indexType)
.setAnalyzer(analyzer)
.setTags(ImmutableList.copyOf(pb.getTagsList())).build();
}