public class GrpcTranscodingQueryParamsSerializer extends Object
The Databricks REST API uses gRPC transcoding to expose gRPC services as REST APIs. This serializer is used to serialize objects into a map of query parameter entries that can be used to invoke a gRPC service via REST.
See the documentation for gRPC transcoding for more details.
Modifier and Type | Class and Description |
---|---|
static class |
GrpcTranscodingQueryParamsSerializer.QueryParamPair |
Constructor and Description |
---|
GrpcTranscodingQueryParamsSerializer() |
Modifier and Type | Method and Description |
---|---|
static List<GrpcTranscodingQueryParamsSerializer.QueryParamPair> |
serialize(Object o)
Serializes an object into a map of query parameter values compatible with gRPC-transcoding.
|
public GrpcTranscodingQueryParamsSerializer()
public static List<GrpcTranscodingQueryParamsSerializer.QueryParamPair> serialize(Object o)
This method respects the QueryParam and JsonProperty annotations on the object's fields when serializing the field name. If both annotations are present, the value of the QueryParam annotation is used.
The returned object does not contain any top-level fields that are not annotated with QueryParam. All nested fields are included, even if they are not annotated with QueryParam.
o
- The object to serialize.Copyright © 2023. All rights reserved.