public static Schema fromJsonString(String jsonString) throws InvalidProtocolBufferException {
    checkArgument(!Strings.isNullOrEmpty(jsonString), "Input String can't be null or empty.");
    Schema.Builder builder = Schema.newBuilder();
    JsonFormat.parser().merge(jsonString, builder);

    return builder.build();
  }
Creates a Schema from a JsonString

@param jsonString A valid Json String that can be parsed to a Schema object.
@return a {@link com.google.cloud.vertexai.api.Schema} by parsing the input JSON string.
@throws InvalidProtocolBufferException if the String can't be parsed into a Schema proto.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/SchemaMaker.java