Class GrpcJsonReverseTranscoder
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.grpc_json_reverse_transcoder.v3.GrpcJsonReverseTranscoder
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcJsonReverseTranscoderOrBuilder,Serializable
public final class GrpcJsonReverseTranscoder
extends com.google.protobuf.GeneratedMessageV3
implements GrpcJsonReverseTranscoderOrBuilder
[#next-free-field: 7] ``GrpcJsonReverseTranscoder`` is the filter configuration for the gRPC JSON reverse transcoder. The reverse transcoder acts as a bridge between a gRPC client and an HTTP/JSON server, converting the gRPC request into HTTP/JSON for the HTTP backend and the HTTP/JSON response back to gRPC for the gRPC client. This effectively reverses the behavior of the :ref:`grpc_json_transcoder filter <config_http_filters_grpc_json_transcoder>`, allowing a gRPC client to communicate with an HTTP/JSON server.Protobuf type
envoy.extensions.filters.http.grpc_json_reverse_transcoder.v3.GrpcJsonReverseTranscoder- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class[#next-free-field: 7] ``GrpcJsonReverseTranscoder`` is the filter configuration for the gRPC JSON reverse transcoder.static final classProtobuf typeenvoy.extensions.filters.http.grpc_json_reverse_transcoder.v3.GrpcJsonReverseTranscoder.PrintOptionsstatic interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe name of the header field that has the API version of the request.com.google.protobuf.ByteStringThe name of the header field that has the API version of the request.static GrpcJsonReverseTranscoderstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringSupplies the binary content of :ref:`the proto descriptor set <config_grpc_json_reverse_transcoder_generate_proto_descriptor_set>` for the gRPC services.Supplies the filename of :ref:`the proto descriptor set <config_grpc_json_reverse_transcoder_generate_proto_descriptor_set>` for the gRPC services.com.google.protobuf.ByteStringSupplies the filename of :ref:`the proto descriptor set <config_grpc_json_reverse_transcoder_generate_proto_descriptor_set>` for the gRPC services.com.google.protobuf.UInt32ValueThe maximum size of a request body to be transcoded, in bytes.com.google.protobuf.UInt32ValueOrBuilderThe maximum size of a request body to be transcoded, in bytes.com.google.protobuf.UInt32ValueThe maximum size of a response body to be transcoded, in bytes.com.google.protobuf.UInt32ValueOrBuilderThe maximum size of a response body to be transcoded, in bytes.com.google.protobuf.Parser<GrpcJsonReverseTranscoder>Control options for upstream request JSON.Control options for upstream request JSON.intinthashCode()booleanThe maximum size of a request body to be transcoded, in bytes.booleanThe maximum size of a response body to be transcoded, in bytes.booleanControl options for upstream request JSON.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(GrpcJsonReverseTranscoder prototype) protected GrpcJsonReverseTranscoder.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static GrpcJsonReverseTranscoderparseDelimitedFrom(InputStream input) static GrpcJsonReverseTranscoderparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcJsonReverseTranscoderparseFrom(byte[] data) static GrpcJsonReverseTranscoderparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcJsonReverseTranscoderparseFrom(com.google.protobuf.ByteString data) static GrpcJsonReverseTranscoderparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcJsonReverseTranscoderparseFrom(com.google.protobuf.CodedInputStream input) static GrpcJsonReverseTranscoderparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcJsonReverseTranscoderparseFrom(InputStream input) static GrpcJsonReverseTranscoderparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcJsonReverseTranscoderparseFrom(ByteBuffer data) static GrpcJsonReverseTranscoderparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GrpcJsonReverseTranscoder>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DESCRIPTOR_PATH_FIELD_NUMBER
public static final int DESCRIPTOR_PATH_FIELD_NUMBER- See Also:
-
DESCRIPTOR_BINARY_FIELD_NUMBER
public static final int DESCRIPTOR_BINARY_FIELD_NUMBER- See Also:
-
MAX_REQUEST_BODY_SIZE_FIELD_NUMBER
public static final int MAX_REQUEST_BODY_SIZE_FIELD_NUMBER- See Also:
-
MAX_RESPONSE_BODY_SIZE_FIELD_NUMBER
public static final int MAX_RESPONSE_BODY_SIZE_FIELD_NUMBER- See Also:
-
API_VERSION_HEADER_FIELD_NUMBER
public static final int API_VERSION_HEADER_FIELD_NUMBER- See Also:
-
REQUEST_JSON_PRINT_OPTIONS_FIELD_NUMBER
public static final int REQUEST_JSON_PRINT_OPTIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptorPath
Supplies the filename of :ref:`the proto descriptor set <config_grpc_json_reverse_transcoder_generate_proto_descriptor_set>` for the gRPC services. If set, takes precedence over the ``descriptor_binary`` field.
string descriptor_path = 1;- Specified by:
getDescriptorPathin interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The descriptorPath.
-
getDescriptorPathBytes
public com.google.protobuf.ByteString getDescriptorPathBytes()Supplies the filename of :ref:`the proto descriptor set <config_grpc_json_reverse_transcoder_generate_proto_descriptor_set>` for the gRPC services. If set, takes precedence over the ``descriptor_binary`` field.
string descriptor_path = 1;- Specified by:
getDescriptorPathBytesin interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The bytes for descriptorPath.
-
getDescriptorBinary
public com.google.protobuf.ByteString getDescriptorBinary()Supplies the binary content of :ref:`the proto descriptor set <config_grpc_json_reverse_transcoder_generate_proto_descriptor_set>` for the gRPC services. If ``descriptor_path`` is set, this field is not used.
bytes descriptor_binary = 2;- Specified by:
getDescriptorBinaryin interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The descriptorBinary.
-
hasMaxRequestBodySize
public boolean hasMaxRequestBodySize()The maximum size of a request body to be transcoded, in bytes. A body exceeding this size will provoke a ``gRPC status: ResourceExhausted`` response. Large values may cause envoy to use a lot of memory if there are many concurrent requests. If unset, the current stream buffer size is used.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Specified by:
hasMaxRequestBodySizein interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- Whether the maxRequestBodySize field is set.
-
getMaxRequestBodySize
public com.google.protobuf.UInt32Value getMaxRequestBodySize()The maximum size of a request body to be transcoded, in bytes. A body exceeding this size will provoke a ``gRPC status: ResourceExhausted`` response. Large values may cause envoy to use a lot of memory if there are many concurrent requests. If unset, the current stream buffer size is used.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Specified by:
getMaxRequestBodySizein interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The maxRequestBodySize.
-
getMaxRequestBodySizeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestBodySizeOrBuilder()The maximum size of a request body to be transcoded, in bytes. A body exceeding this size will provoke a ``gRPC status: ResourceExhausted`` response. Large values may cause envoy to use a lot of memory if there are many concurrent requests. If unset, the current stream buffer size is used.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Specified by:
getMaxRequestBodySizeOrBuilderin interfaceGrpcJsonReverseTranscoderOrBuilder
-
hasMaxResponseBodySize
public boolean hasMaxResponseBodySize()The maximum size of a response body to be transcoded, in bytes. A body exceeding this size will provoke a ``gRPC status: Internal`` response. Large values may cause envoy to use a lot of memory if there are many concurrent requests. If unset, the current stream buffer size is used.
.google.protobuf.UInt32Value max_response_body_size = 4 [(.validate.rules) = { ... }- Specified by:
hasMaxResponseBodySizein interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- Whether the maxResponseBodySize field is set.
-
getMaxResponseBodySize
public com.google.protobuf.UInt32Value getMaxResponseBodySize()The maximum size of a response body to be transcoded, in bytes. A body exceeding this size will provoke a ``gRPC status: Internal`` response. Large values may cause envoy to use a lot of memory if there are many concurrent requests. If unset, the current stream buffer size is used.
.google.protobuf.UInt32Value max_response_body_size = 4 [(.validate.rules) = { ... }- Specified by:
getMaxResponseBodySizein interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The maxResponseBodySize.
-
getMaxResponseBodySizeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxResponseBodySizeOrBuilder()The maximum size of a response body to be transcoded, in bytes. A body exceeding this size will provoke a ``gRPC status: Internal`` response. Large values may cause envoy to use a lot of memory if there are many concurrent requests. If unset, the current stream buffer size is used.
.google.protobuf.UInt32Value max_response_body_size = 4 [(.validate.rules) = { ... }- Specified by:
getMaxResponseBodySizeOrBuilderin interfaceGrpcJsonReverseTranscoderOrBuilder
-
getApiVersionHeader
The name of the header field that has the API version of the request.
string api_version_header = 5;- Specified by:
getApiVersionHeaderin interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The apiVersionHeader.
-
getApiVersionHeaderBytes
public com.google.protobuf.ByteString getApiVersionHeaderBytes()The name of the header field that has the API version of the request.
string api_version_header = 5;- Specified by:
getApiVersionHeaderBytesin interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The bytes for apiVersionHeader.
-
hasRequestJsonPrintOptions
public boolean hasRequestJsonPrintOptions()Control options for upstream request JSON. These options are passed directly to `JsonPrintOptions <https://developers.google.com/protocol-buffers/docs/reference/cpp/ google.protobuf.util.json_util#JsonPrintOptions>`_.
.envoy.extensions.filters.http.grpc_json_reverse_transcoder.v3.GrpcJsonReverseTranscoder.PrintOptions request_json_print_options = 6;- Specified by:
hasRequestJsonPrintOptionsin interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- Whether the requestJsonPrintOptions field is set.
-
getRequestJsonPrintOptions
Control options for upstream request JSON. These options are passed directly to `JsonPrintOptions <https://developers.google.com/protocol-buffers/docs/reference/cpp/ google.protobuf.util.json_util#JsonPrintOptions>`_.
.envoy.extensions.filters.http.grpc_json_reverse_transcoder.v3.GrpcJsonReverseTranscoder.PrintOptions request_json_print_options = 6;- Specified by:
getRequestJsonPrintOptionsin interfaceGrpcJsonReverseTranscoderOrBuilder- Returns:
- The requestJsonPrintOptions.
-
getRequestJsonPrintOptionsOrBuilder
Control options for upstream request JSON. These options are passed directly to `JsonPrintOptions <https://developers.google.com/protocol-buffers/docs/reference/cpp/ google.protobuf.util.json_util#JsonPrintOptions>`_.
.envoy.extensions.filters.http.grpc_json_reverse_transcoder.v3.GrpcJsonReverseTranscoder.PrintOptions request_json_print_options = 6;- Specified by:
getRequestJsonPrintOptionsOrBuilderin interfaceGrpcJsonReverseTranscoderOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GrpcJsonReverseTranscoder parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GrpcJsonReverseTranscoder parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GrpcJsonReverseTranscoder.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-