Interface GrpcServiceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcService
,GrpcService.Builder
public interface GrpcServiceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionEnvoy's in-built gRPC client.Envoy's in-built gRPC client.`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.`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.getInitialMetadata
(int index) Additional metadata to include in streams initiated to the GrpcService.int
Additional metadata to include in streams initiated to the GrpcService.Additional metadata to include in streams initiated to the GrpcService.getInitialMetadataOrBuilder
(int index) Additional metadata to include in streams initiated to the GrpcService.List
<? extends HeaderValueOrBuilder> Additional metadata to include in streams initiated to the GrpcService.Optional default retry policy for streams toward the service.Optional default retry policy for streams toward the service.com.google.protobuf.Duration
The timeout for the gRPC request.com.google.protobuf.DurationOrBuilder
The timeout for the gRPC request.boolean
Envoy's in-built gRPC client.boolean
`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.boolean
Optional default retry policy for streams toward the service.boolean
The timeout for the gRPC request.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasEnvoyGrpc
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;
- Returns:
- Whether the envoyGrpc field is set.
-
getEnvoyGrpc
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;
- Returns:
- The envoyGrpc.
-
getEnvoyGrpcOrBuilder
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;
-
hasGoogleGrpc
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;
- Returns:
- Whether the googleGrpc field is set.
-
getGoogleGrpc
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;
- Returns:
- The googleGrpc.
-
getGoogleGrpcOrBuilder
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;
-
hasTimeout
boolean hasTimeout()The timeout for the gRPC request. This is the timeout for a specific request.
.google.protobuf.Duration timeout = 3;
- Returns:
- Whether the timeout field is set.
-
getTimeout
com.google.protobuf.Duration getTimeout()The timeout for the gRPC request. This is the timeout for a specific request.
.google.protobuf.Duration timeout = 3;
- Returns:
- The timeout.
-
getTimeoutOrBuilder
com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()The timeout for the gRPC request. This is the timeout for a specific request.
.google.protobuf.Duration timeout = 3;
-
getInitialMetadataList
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;
-
getInitialMetadata
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;
-
getInitialMetadataCount
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;
-
getInitialMetadataOrBuilderList
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;
-
getInitialMetadataOrBuilder
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;
-
hasRetryPolicy
boolean hasRetryPolicy()Optional default retry policy for streams toward the service. If an async stream doesn't have retry policy configured in its stream options, this retry policy is used.
.envoy.config.core.v3.RetryPolicy retry_policy = 6;
- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
RetryPolicy getRetryPolicy()Optional default retry policy for streams toward the service. If an async stream doesn't have retry policy configured in its stream options, this retry policy is used.
.envoy.config.core.v3.RetryPolicy retry_policy = 6;
- Returns:
- The retryPolicy.
-
getRetryPolicyOrBuilder
RetryPolicyOrBuilder getRetryPolicyOrBuilder()Optional default retry policy for streams toward the service. If an async stream doesn't have retry policy configured in its stream options, this retry policy is used.
.envoy.config.core.v3.RetryPolicy retry_policy = 6;
-
getTargetSpecifierCase
GrpcService.TargetSpecifierCase getTargetSpecifierCase()
-