public class ProtobufSchemaUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtobufSchemaUtils.FormatContext |
| Constructor and Description |
|---|
ProtobufSchemaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ProtobufSchema |
copyOf(ProtobufSchema schema) |
static String |
escapeChars(String input) |
static Object |
findMatchingElement(com.squareup.wire.schema.internal.parser.ProtoFileElement original,
String[] identifiers,
boolean isFieldPath) |
static com.squareup.wire.schema.internal.parser.MessageElement |
findMatchingMessage(List<com.squareup.wire.schema.internal.parser.TypeElement> typeElementList,
String name) |
static com.fasterxml.jackson.databind.JsonNode |
findMatchingNode(com.fasterxml.jackson.databind.JsonNode node,
String[] identifiers,
boolean isFieldPath) |
static com.fasterxml.jackson.databind.JsonNode |
findMatchingNodeHelper(com.fasterxml.jackson.databind.JsonNode node,
String arrayField,
String targetFieldName,
String targetFieldValue) |
static ProtobufSchema |
getSchema(com.google.protobuf.Message message) |
static com.squareup.wire.schema.internal.parser.ProtoFileElement |
jsonToFile(com.fasterxml.jackson.databind.JsonNode node) |
protected static String |
toFormattedString(ProtobufSchemaUtils.FormatContext ctx,
ProtobufSchema schema) |
static byte[] |
toJson(com.google.protobuf.Message message) |
protected static String |
toNormalizedString(ProtobufSchema schema) |
static Object |
toObject(com.fasterxml.jackson.databind.JsonNode value,
ProtobufSchema schema) |
static Object |
toObject(String value,
ProtobufSchema schema) |
protected static String |
toString(com.squareup.wire.schema.internal.parser.ProtoFileElement protoFile) |
public static ProtobufSchema copyOf(ProtobufSchema schema)
public static ProtobufSchema getSchema(com.google.protobuf.Message message)
public static Object toObject(com.fasterxml.jackson.databind.JsonNode value, ProtobufSchema schema) throws IOException
IOExceptionpublic static Object toObject(String value, ProtobufSchema schema) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static byte[] toJson(com.google.protobuf.Message message)
throws IOException
IOExceptionpublic static com.squareup.wire.schema.internal.parser.ProtoFileElement jsonToFile(com.fasterxml.jackson.databind.JsonNode node)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static com.fasterxml.jackson.databind.JsonNode findMatchingNodeHelper(com.fasterxml.jackson.databind.JsonNode node,
String arrayField,
String targetFieldName,
String targetFieldValue)
public static com.fasterxml.jackson.databind.JsonNode findMatchingNode(com.fasterxml.jackson.databind.JsonNode node,
String[] identifiers,
boolean isFieldPath)
public static com.squareup.wire.schema.internal.parser.MessageElement findMatchingMessage(List<com.squareup.wire.schema.internal.parser.TypeElement> typeElementList, String name)
public static Object findMatchingElement(com.squareup.wire.schema.internal.parser.ProtoFileElement original, String[] identifiers, boolean isFieldPath)
protected static String toNormalizedString(ProtobufSchema schema)
protected static String toFormattedString(ProtobufSchemaUtils.FormatContext ctx, ProtobufSchema schema)
protected static String toString(com.squareup.wire.schema.internal.parser.ProtoFileElement protoFile)
Copyright © 2026 Confluent, Inc.. All rights reserved.