Class GrpcService
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.core.v3.GrpcService
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcServiceOrBuilder,Serializable
public final class GrpcService extends com.google.protobuf.GeneratedMessageV3 implements GrpcServiceOrBuilder
gRPC service configuration. This is used by :ref:`ApiConfigSource <envoy_v3_api_msg_config.core.v3.ApiConfigSource>` and filter configurations. [#next-free-field: 6]
Protobuf typeenvoy.config.core.v3.GrpcService- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrpcService.BuildergRPC service configuration.static classGrpcService.EnvoyGrpcProtobuf typeenvoy.config.core.v3.GrpcService.EnvoyGrpcstatic interfaceGrpcService.EnvoyGrpcOrBuilderstatic classGrpcService.GoogleGrpc[#next-free-field: 9]static interfaceGrpcService.GoogleGrpcOrBuilderstatic classGrpcService.TargetSpecifierCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intENVOY_GRPC_FIELD_NUMBERstatic intGOOGLE_GRPC_FIELD_NUMBERstatic intINITIAL_METADATA_FIELD_NUMBERstatic intTIMEOUT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static GrpcServicegetDefaultInstance()GrpcServicegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GrpcService.EnvoyGrpcgetEnvoyGrpc()Envoy's in-built gRPC client.GrpcService.EnvoyGrpcOrBuildergetEnvoyGrpcOrBuilder()Envoy's in-built gRPC client.GrpcService.GoogleGrpcgetGoogleGrpc()`Google C++ gRPC client <https://github.com/grpc/grpc>`_ See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.GrpcService.GoogleGrpcOrBuildergetGoogleGrpcOrBuilder()`Google C++ gRPC client <https://github.com/grpc/grpc>`_ See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.HeaderValuegetInitialMetadata(int index)Additional metadata to include in streams initiated to the GrpcService.intgetInitialMetadataCount()Additional metadata to include in streams initiated to the GrpcService.List<HeaderValue>getInitialMetadataList()Additional metadata to include in streams initiated to the GrpcService.HeaderValueOrBuildergetInitialMetadataOrBuilder(int index)Additional metadata to include in streams initiated to the GrpcService.List<? extends HeaderValueOrBuilder>getInitialMetadataOrBuilderList()Additional metadata to include in streams initiated to the GrpcService.com.google.protobuf.Parser<GrpcService>getParserForType()intgetSerializedSize()GrpcService.TargetSpecifierCasegetTargetSpecifierCase()com.google.protobuf.DurationgetTimeout()The timeout for the gRPC request.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()The timeout for the gRPC request.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasEnvoyGrpc()Envoy's in-built gRPC client.booleanhasGoogleGrpc()`Google C++ gRPC client <https://github.com/grpc/grpc>`_ See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.inthashCode()booleanhasTimeout()The timeout for the gRPC request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GrpcService.BuildernewBuilder()static GrpcService.BuildernewBuilder(GrpcService prototype)GrpcService.BuildernewBuilderForType()protected GrpcService.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static GrpcServiceparseDelimitedFrom(InputStream input)static GrpcServiceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcServiceparseFrom(byte[] data)static GrpcServiceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcServiceparseFrom(com.google.protobuf.ByteString data)static GrpcServiceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcServiceparseFrom(com.google.protobuf.CodedInputStream input)static GrpcServiceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcServiceparseFrom(InputStream input)static GrpcServiceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcServiceparseFrom(ByteBuffer data)static GrpcServiceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<GrpcService>parser()GrpcService.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ENVOY_GRPC_FIELD_NUMBER
public static final int ENVOY_GRPC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GOOGLE_GRPC_FIELD_NUMBER
public static final int GOOGLE_GRPC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INITIAL_METADATA_FIELD_NUMBER
public static final int INITIAL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
-
getTargetSpecifierCase
public GrpcService.TargetSpecifierCase getTargetSpecifierCase()
- Specified by:
getTargetSpecifierCasein interfaceGrpcServiceOrBuilder
-
hasEnvoyGrpc
public boolean hasEnvoyGrpc()
Envoy's in-built gRPC client. See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.
.envoy.config.core.v3.GrpcService.EnvoyGrpc envoy_grpc = 1;- Specified by:
hasEnvoyGrpcin interfaceGrpcServiceOrBuilder- Returns:
- Whether the envoyGrpc field is set.
-
getEnvoyGrpc
public GrpcService.EnvoyGrpc getEnvoyGrpc()
Envoy's in-built gRPC client. See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.
.envoy.config.core.v3.GrpcService.EnvoyGrpc envoy_grpc = 1;- Specified by:
getEnvoyGrpcin interfaceGrpcServiceOrBuilder- Returns:
- The envoyGrpc.
-
getEnvoyGrpcOrBuilder
public GrpcService.EnvoyGrpcOrBuilder getEnvoyGrpcOrBuilder()
Envoy's in-built gRPC client. See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.
.envoy.config.core.v3.GrpcService.EnvoyGrpc envoy_grpc = 1;- Specified by:
getEnvoyGrpcOrBuilderin interfaceGrpcServiceOrBuilder
-
hasGoogleGrpc
public boolean hasGoogleGrpc()
`Google C++ gRPC client <https://github.com/grpc/grpc>`_ See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.
.envoy.config.core.v3.GrpcService.GoogleGrpc google_grpc = 2;- Specified by:
hasGoogleGrpcin interfaceGrpcServiceOrBuilder- Returns:
- Whether the googleGrpc field is set.
-
getGoogleGrpc
public GrpcService.GoogleGrpc getGoogleGrpc()
`Google C++ gRPC client <https://github.com/grpc/grpc>`_ See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.
.envoy.config.core.v3.GrpcService.GoogleGrpc google_grpc = 2;- Specified by:
getGoogleGrpcin interfaceGrpcServiceOrBuilder- Returns:
- The googleGrpc.
-
getGoogleGrpcOrBuilder
public GrpcService.GoogleGrpcOrBuilder getGoogleGrpcOrBuilder()
`Google C++ gRPC client <https://github.com/grpc/grpc>`_ See the :ref:`gRPC services overview <arch_overview_grpc_services>` documentation for discussion on gRPC client selection.
.envoy.config.core.v3.GrpcService.GoogleGrpc google_grpc = 2;- Specified by:
getGoogleGrpcOrBuilderin interfaceGrpcServiceOrBuilder
-
hasTimeout
public boolean hasTimeout()
The timeout for the gRPC request. This is the timeout for a specific request.
.google.protobuf.Duration timeout = 3;- Specified by:
hasTimeoutin interfaceGrpcServiceOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()
The timeout for the gRPC request. This is the timeout for a specific request.
.google.protobuf.Duration timeout = 3;- Specified by:
getTimeoutin interfaceGrpcServiceOrBuilder- Returns:
- The timeout.
-
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
The timeout for the gRPC request. This is the timeout for a specific request.
.google.protobuf.Duration timeout = 3;- Specified by:
getTimeoutOrBuilderin interfaceGrpcServiceOrBuilder
-
getInitialMetadataList
public List<HeaderValue> getInitialMetadataList()
Additional metadata to include in streams initiated to the GrpcService. This can be used for scenarios in which additional ad hoc authorization headers (e.g. ``x-foo-bar: baz-key``) are to be injected. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValue initial_metadata = 5;- Specified by:
getInitialMetadataListin interfaceGrpcServiceOrBuilder
-
getInitialMetadataOrBuilderList
public List<? extends HeaderValueOrBuilder> getInitialMetadataOrBuilderList()
Additional metadata to include in streams initiated to the GrpcService. This can be used for scenarios in which additional ad hoc authorization headers (e.g. ``x-foo-bar: baz-key``) are to be injected. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValue initial_metadata = 5;- Specified by:
getInitialMetadataOrBuilderListin interfaceGrpcServiceOrBuilder
-
getInitialMetadataCount
public int getInitialMetadataCount()
Additional metadata to include in streams initiated to the GrpcService. This can be used for scenarios in which additional ad hoc authorization headers (e.g. ``x-foo-bar: baz-key``) are to be injected. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValue initial_metadata = 5;- Specified by:
getInitialMetadataCountin interfaceGrpcServiceOrBuilder
-
getInitialMetadata
public HeaderValue getInitialMetadata(int index)
Additional metadata to include in streams initiated to the GrpcService. This can be used for scenarios in which additional ad hoc authorization headers (e.g. ``x-foo-bar: baz-key``) are to be injected. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValue initial_metadata = 5;- Specified by:
getInitialMetadatain interfaceGrpcServiceOrBuilder
-
getInitialMetadataOrBuilder
public HeaderValueOrBuilder getInitialMetadataOrBuilder(int index)
Additional metadata to include in streams initiated to the GrpcService. This can be used for scenarios in which additional ad hoc authorization headers (e.g. ``x-foo-bar: baz-key``) are to be injected. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValue initial_metadata = 5;- Specified by:
getInitialMetadataOrBuilderin interfaceGrpcServiceOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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 GrpcService parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcService parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcService parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcService parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcService parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcService parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GrpcService parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GrpcService parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GrpcService parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GrpcService parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GrpcService parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GrpcService.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GrpcService.Builder newBuilder()
-
newBuilder
public static GrpcService.Builder newBuilder(GrpcService prototype)
-
toBuilder
public GrpcService.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GrpcService.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GrpcService getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<GrpcService> parser()
-
getParserForType
public com.google.protobuf.Parser<GrpcService> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GrpcService getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-