Class ProtoMessageResponseParser<ResponseT> (2.9.0)

publicclass ProtoMessageResponseParser<ResponseT>implementsHttpResponseParser<ResponseT>

The implementation of HttpResponseParser which works with protobuf messages.

Inheritance

java.lang.Object > ProtoMessageResponseParser<ResponseT>

Implements

com.google.api.gax.httpjson.HttpResponseParser<ResponseT>

Type Parameter

Name Description
ResponseT

Methods

<RequestT>newBuilder()

publicstaticProtoMessageResponseParser.Builder<RequestT><RequestT>newBuilder()
Returns
Type Description
Builder<RequestT>

parse(InputStream httpContent)

publicResponseTparse(InputStreamhttpContent)

Parse the http body content JSON stream into the MessageFormatT.

Parameter
Name Description
httpContent InputStream
Returns
Type Description
ResponseT

parse(InputStream httpContent, TypeRegistry registry)

publicResponseTparse(InputStreamhttpContent,TypeRegistryregistry)

Parse the http body content JSON stream into the MessageFormatT.

Parameters
Name Description
httpContent InputStream
registry com.google.protobuf.TypeRegistry
Returns
Type Description
ResponseT

serialize(ResponseT response)

publicStringserialize(ResponseTresponse)
Parameter
Name Description
response ResponseT
Returns
Type Description

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.