Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
grpc Namespace Reference

Namespaces

 _auth
 
 _channel
 
 _common
 
 _compression
 
 _cython
 
 
 _interceptor
 
 _plugin_wrapping
 
 _runtime_protos
 
 _server
 
 _simple_stubs
 
 _utilities
 
 aio
 
 beta
 
 channelz
 
 experimental
 
 framework
 
 gcp
 
 internal
 Actual implementation of bi-directional streaming.
 
 load_reporter
 
 protobuf
 
 reflection
 
 testing
 
 xds
 

Classes

class  Alarm
 
class  AsyncGenericService
 
class  AuthContext
 
class  AuthMetadataContext
 
class  AuthMetadataPlugin
 
class  AuthMetadataPluginCallback
 
class  AuthMetadataProcessor
 
class  AuthMetadataProcessorAyncWrapper
 
class  AuthPropertyIterator
 
class  ByteBuffer
 A sequence of bytes. More...
 
class  Call
 
class  CallbackGenericService
 
class  CallbackServerContext
 
class  CallCredentials
 
class  CallData
 Represents call data. More...
 
class  CensusChannelData
 
class  CensusClientCallData
 
class  CensusContext
 
class  CensusServerCallData
 
class  Channel
 Channels represent a connection to an endpoint. Created by CreateChannel. More...
 
class  ChannelArguments
 
class  ChannelConnectivity
 
class  ChannelCredentials
 
class  ChannelData
 Represents channel data. More...
 
class  ChannelInterface
 Codegen interface for grpc::Channel. More...
 
class  ChannelzService
 
struct  CliArgs
 
class  ClientAsyncReader
 
class  ClientAsyncReaderInterface
 
class  ClientAsyncReaderWriter
 
class  ClientAsyncReaderWriterInterface
 
class  ClientAsyncResponseReader
 
class  ClientAsyncResponseReaderInterface
 
class  ClientAsyncWriter
 
class  ClientAsyncWriterInterface
 Common interface for client side asynchronous writing. More...
 
class  ClientBidiReactor
 ClientBidiReactor is the interface for a bidirectional streaming RPC. More...
 
class  ClientCallbackReader
 
class  ClientCallbackReaderWriter
 
class  ClientCallbackUnary
 
class  ClientCallbackWriter
 
class  ClientCallDetails
 
class  ClientContext
 
class  ClientReader
 
class  ClientReaderInterface
 Client-side interface for streaming reads of message of type R. More...
 
class  ClientReaderWriter
 
class  ClientReaderWriterInterface
 
class  ClientReadReactor
 
class  ClientUnaryReactor
 
class  ClientWriter
 
class  ClientWriteReactor
 
class  ClientWriterInterface
 Client-side interface for streaming writes of message type W. More...
 
class  CompletionQueue
 
class  Compression
 
class  ContextAllocator
 
class  CoreCodegen
 Implementation of the core codegen interface. More...
 
class  CoreCodegenInterface
 
class  CronetChannelCredentialsImpl
 
class  DefaultGlobalClientCallbacks
 
class  DefaultHealthCheckService
 
class  DynamicThreadPool
 
class  Future
 
class  FutureCancelledError
 
class  FutureTimeoutError
 Future Interface ###############################. More...
 
class  GenericCallbackServerContext
 
class  GenericRpcHandler
 
class  GenericServerContext
 
class  GrpcLibraryCodegen
 Classes that require gRPC to be initialized should inherit from this class. More...
 
class  GrpcLibraryInterface
 
class  HandlerCallDetails
 
class  HealthCheckServiceInterface
 
class  HealthCheckServiceServerBuilderOption
 
class  LocalConnectionType
 
class  MessageAllocator
 
class  MessageHolder
 
class  MetadataBatch
 A C++ wrapper for the grpc_metadata_batch struct. More...
 
class  MetadataCredentialsPlugin
 User defined metadata credentials. More...
 
class  MetadataCredentialsPluginWrapper
 
class  OpenCensusCallTracer
 
class  PropagationOptions
 
class  ProtoBufferReader
 
class  ProtoBufferWriter
 
class  ProtoReflectionDescriptorDatabase
 
class  ProtoServerReflection
 
class  ResourceQuota
 
class  RpcAllocatorState
 
class  RpcContext
 
class  RpcError
 
class  RpcMethodHandler
 
class  RpcServerStatsEncoding
 
class  SecureAuthContext
 
class  SecureCallCredentials
 
class  SecureChannelCredentials
 
class  SecureServerCredentials
 
class  SerializationTraits
 
class  SerializationTraits< ByteBuffer, void >
 
class  Server
 
class  ServerAsyncReader
 
class  ServerAsyncReaderInterface
 
class  ServerAsyncReaderWriter
 
class  ServerAsyncReaderWriterInterface
 Server-side interface for asynchronous bi-directional streaming. More...
 
class  ServerAsyncResponseWriter
 
class  ServerAsyncWriter
 
class  ServerAsyncWriterInterface
 
class  ServerBidiReactor
 ServerBidiReactor is the interface for a bidirectional streaming RPC. More...
 
class  ServerBuilder
 A builder class for the creation and startup of grpc::Server instances. More...
 
class  ServerBuilderOption
 Interface to pass an option to a ServerBuilder. More...
 
class  ServerBuilderPlugin
 
class  ServerCallbackReader
 
class  ServerCallbackReaderWriter
 
class  ServerCallbackUnary
 
class  ServerCallbackWriter
 
class  ServerCertificateConfiguration
 
class  ServerCompletionQueue
 
class  ServerContext
 
class  ServerContextBase
 Base class of ServerContext. More...
 
class  ServerCredentials
 Wrapper around grpc_server_credentials, a way to authenticate a server. More...
 
class  ServerInitializer
 
class  ServerInterceptor
 
class  ServerInterface
 
class  ServerReader
 
class  ServerReaderInterface
 Server-side interface for streaming reads of message of type R. More...
 
class  ServerReaderWriter
 
class  ServerReaderWriterInterface
 Server-side interface for bi-directional streaming. More...
 
class  ServerReadReactor
 ServerReadReactor is the interface for a client-streaming RPC. More...
 
class  ServerSplitStreamer
 
class  ServerUnaryReactor
 
class  ServerUnaryStreamer
 
class  ServerWriter
 
class  ServerWriteReactor
 ServerWriteReactor is the interface for a server-streaming RPC. More...
 
class  ServerWriterInterface
 Server-side interface for streaming writes of message of type W. More...
 
class  Service
 Desriptor of an RPC service and its various RPC methods. More...
 
class  ServicerContext
 
class  ServiceRpcHandler
 
class  Slice
 
struct  SslCredentialsOptions
 Options used to build SslCredentials. More...
 
struct  SslServerCredentialsOptions
 Options to create ServerCredentials with SSL. More...
 
class  Status
 
class  StatusCode
 
class  StreamStreamClientInterceptor
 
class  StreamStreamMultiCallable
 
class  StreamUnaryClientInterceptor
 
class  StreamUnaryMultiCallable
 
class  string_ref
 
class  StubOptions
 Useful interface for generated stubs. More...
 
class  SubProcess
 
class  TemplatedGenericStub
 
class  ThreadManager
 
class  ThreadPoolInterface
 
class  TimePoint
 
class  TimePoint< gpr_timespec >
 
class  TimePoint< std::chrono::system_clock::time_point >
 
class  TransportOp
 A C++ wrapper for the grpc_transport_op struct. More...
 
class  TransportStreamOpBatch
 A C++ wrapper for the grpc_transport_stream_op_batch struct. More...
 
class  UnaryStreamClientInterceptor
 
class  UnaryStreamMultiCallable
 
class  UnaryUnaryClientInterceptor
 
class  UnaryUnaryMultiCallable
 
class  WriteOptions
 Per-message write options. More...
 
class  XdsServerBuilder
 
class  XdsServerServingStatusNotifierInterface
 

Typedefs

typedef std::pair< string_ref, string_refAuthProperty
 
typedef ThreadPoolInterface *(* CreateThreadPoolFunc) (void)
 
typedef ClientAsyncReaderWriter< ByteBuffer, ByteBufferGenericClientAsyncReaderWriter
 
typedef ClientAsyncResponseReader< ByteBufferGenericClientAsyncResponseReader
 
typedef ServerAsyncReader< ByteBuffer, ByteBufferGenericServerAsyncReader
 
typedef ServerAsyncReaderWriter< ByteBuffer, ByteBufferGenericServerAsyncReaderWriter
 
typedef ServerAsyncResponseWriter< ByteBufferGenericServerAsyncResponseWriter
 
typedef ServerAsyncWriter< ByteBufferGenericServerAsyncWriter
 
typedef TemplatedGenericStub< grpc::ByteBuffer, grpc::ByteBufferGenericStub
 
using ServerGenericBidiReactor = ServerBidiReactor< ByteBuffer, ByteBuffer >
 

Enumerations

enum  StatusCode {
  OK = 0, CANCELLED = 1, UNKNOWN = 2, INVALID_ARGUMENT = 3,
  DEADLINE_EXCEEDED = 4, NOT_FOUND = 5, ALREADY_EXISTS = 6, PERMISSION_DENIED = 7,
  UNAUTHENTICATED = 16, RESOURCE_EXHAUSTED = 8, FAILED_PRECONDITION = 9, ABORTED = 10,
  OUT_OF_RANGE = 11, UNIMPLEMENTED = 12, INTERNAL = 13, UNAVAILABLE = 14,
  DATA_LOSS = 15, DO_NOT_USE = -1
}
 

Functions

def _create_servicer_context (rpc_event, state, request_deserializer)
 
def access_token_call_credentials (access_token)
 
std::shared_ptr< CallCredentialsAccessTokenCredentials (const grpc::string &access_token)
 
std::shared_ptr< CallCredentialsAccessTokenCredentials (const std::string &access_token)
 
void AddAdminServices (grpc::ServerBuilder *builder)
 
def alts_channel_credentials (service_accounts=None)
 
def alts_server_credentials ()
 
 ASSERT_EQ (sizeof(valid_json), fwrite(valid_json, 1, sizeof(valid_json), creds_file))
 
 ASSERT_NE (creds_file, nullptr)
 
 ASSERT_NE (creds_file_name, nullptr)
 
def channel_ready_future (channel)
 
const ::opencensus::stats::ViewDescriptor & ClientCompletedRpcsCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientCompletedRpcsHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientCompletedRpcsMinute ()
 
::opencensus::tags::TagKey ClientMethodTagKey ()
 
const ::opencensus::stats::ViewDescriptor & ClientReceivedBytesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientReceivedBytesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientReceivedBytesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientReceivedMessagesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientReceivedMessagesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientReceivedMessagesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetriesCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetriesHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetriesMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetriesPerCallCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetriesPerCallHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetriesPerCallMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetryDelayPerCallCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetryDelayPerCallHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientRetryDelayPerCallMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientRoundtripLatencyCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientRoundtripLatencyHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientRoundtripLatencyMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientSentBytesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientSentBytesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientSentBytesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientSentMessagesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientSentMessagesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientSentMessagesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientServerLatencyCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientServerLatencyHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientServerLatencyMinute ()
 
::opencensus::tags::TagKey ClientStatusTagKey ()
 
const ::opencensus::stats::ViewDescriptor & ClientTransparentRetriesCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientTransparentRetriesHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientTransparentRetriesMinute ()
 
const ::opencensus::stats::ViewDescriptor & ClientTransparentRetriesPerCallCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ClientTransparentRetriesPerCallHour ()
 
const ::opencensus::stats::ViewDescriptor & ClientTransparentRetriesPerCallMinute ()
 
def composite_call_credentials (*call_credentials)
 
def composite_channel_credentials (channel_credentials, *call_credentials)
 
std::shared_ptr< CallCredentialsCompositeCallCredentials (const std::shared_ptr< CallCredentials > &creds1, const std::shared_ptr< CallCredentials > &creds2)
 Combines two call credentials objects into a composite call credentials. More...
 
std::shared_ptr< ChannelCredentialsCompositeChannelCredentials (const std::shared_ptr< ChannelCredentials > &channel_creds, const std::shared_ptr< CallCredentials > &call_creds)
 
def compute_engine_channel_credentials (call_credentials)
 
void CoreStatsToProto (const grpc_stats_data &core, grpc::core::Stats *proto)
 
void CoreStatsToProto (const grpc_stats_data &core, Stats *proto)
 
std::shared_ptr< const AuthContextCreateAuthContext (grpc_call *call)
 
std::shared_ptr< ChannelCreateChannel (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds)
 
std::shared_ptr< grpc::ChannelCreateChannel (const grpc::string &target, const std::shared_ptr< grpc::ChannelCredentials > &creds)
 
std::shared_ptr< ChannelCreateChannelInternal (const std::string &host, grpc_channel *c_channel, std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCreateChannelInternal (const std::string &host, grpc_channel *c_channel, std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCreateCustomChannel (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds, const ChannelArguments &args)
 
std::shared_ptr< ChannelCreateCustomChannel (const grpc::string &target, const std::shared_ptr< grpc::ChannelCredentials > &creds, const grpc::ChannelArguments &args)
 
ThreadPoolInterfaceCreateDefaultThreadPool ()
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &cred_type, const std::string &override_hostname, bool use_prod_roots, const std::shared_ptr< CallCredentials > &creds, const ChannelArguments &args)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &cred_type, const std::string &override_hostname, bool use_prod_roots, const std::shared_ptr< CallCredentials > &creds, const ChannelArguments &args, std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &credential_type, const std::shared_ptr< CallCredentials > &creds)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &credential_type, const std::shared_ptr< CallCredentials > &creds, std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &override_hostname, testing::transport_security security_type, bool use_prod_roots)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &override_hostname, testing::transport_security security_type, bool use_prod_roots, const std::shared_ptr< CallCredentials > &creds)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &override_hostname, testing::transport_security security_type, bool use_prod_roots, const std::shared_ptr< CallCredentials > &creds, const ChannelArguments &args)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &override_hostname, testing::transport_security security_type, bool use_prod_roots, const std::shared_ptr< CallCredentials > &creds, const ChannelArguments &args, std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, const std::string &override_hostname, testing::transport_security security_type, bool use_prod_roots, const std::shared_ptr< CallCredentials > &creds, std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> interceptor_creators)
 
std::shared_ptr< ChannelCreateTestChannel (const std::string &server, testing::transport_security security_type)
 
std::shared_ptr< ChannelCredentialsCronetChannelCredentials (void *engine)
 Credentials for a channel using Cronet. More...
 
bool DefaultHealthCheckServiceEnabled ()
 
def dynamic_ssl_server_credentials (initial_certificate_configuration, certificate_configuration_fetcher, require_client_authentication=False)
 
void EnableDefaultHealthCheckService (bool enable)
 
 EXPECT_EQ (grpc::StatusCode::INVALID_ARGUMENT, status.error_code())
 
 EXPECT_EQ (options.resource, "")
 
 EXPECT_EQ (options.subject_token_path, "subject_token_path")
 
 EXPECT_EQ (options.subject_token_type, "subject_token_type")
 
 EXPECT_EQ (options.token_exchange_service_uri, "https://foo/exchange")
 
 EXPECT_THAT (status.error_message(), ::testing::HasSubstr("subject_token_path"))
 
 EXPECT_THAT (status.error_message(), ::testing::HasSubstr("subject_token_type"))
 
 EXPECT_THAT (status.error_message(), ::testing::HasSubstr("token_exchange_service_uri"))
 
 EXPECT_TRUE (status.ok())
 
std::shared_ptr< CallCredentialsExternalAccountCredentials (const grpc::string &json_string, const std::vector< grpc::string > &scopes)
 
grpc::Status ExtractErrorDetails (const grpc::Status &, std::nullptr_t)
 
template<typename T >
grpc::Status ExtractErrorDetails (const grpc::Status &from, T *to)
 
 fclose (creds_file)
 
void GenerateClientContext (absl::string_view method, CensusContext *ctxt, CensusContext *parent_ctxt)
 
void GenerateServerContext (absl::string_view tracing, absl::string_view method, CensusContext *context)
 
template<class ProtoBufferReader , class T >
Status GenericDeserialize (ByteBuffer *buffer, grpc::protobuf::MessageLite *msg)
 
template<class ProtoBufferWriter , class T >
Status GenericSerialize (const grpc::protobuf::MessageLite &msg, ByteBuffer *bb, bool *own_buffer)
 
uint64_t GetIncomingDataSize (const grpc_call_final_info *final_info)
 
absl::string_view GetMethod (const grpc_core::Slice &path)
 
uint64_t GetOutgoingDataSize (const grpc_call_final_info *final_info)
 
::opencensus::trace::Span GetSpanFromServerContext (ServerContext *context)
 
std::shared_ptr< CallCredentialsGoogleComputeEngineCredentials ()
 
std::shared_ptr< ChannelCredentialsGoogleDefaultCredentials ()
 
std::shared_ptr< CallCredentialsGoogleIAMCredentials (const grpc::string &authorization_token, const grpc::string &authority_selector)
 
std::shared_ptr< CallCredentialsGoogleIAMCredentials (const std::string &authorization_token, const std::string &authority_selector)
 
std::shared_ptr< CallCredentialsGoogleRefreshTokenCredentials (const grpc::string &json_refresh_token)
 
std::shared_ptr< CallCredentialsGoogleRefreshTokenCredentials (const std::string &json_refresh_token)
 
 gpr_free (creds_file_name)
 
 gpr_setenv ("STS_CREDENTIALS", creds_file_name)
 
 gpr_unsetenv ("STS_CREDENTIALS")
 
def insecure_channel (target, options=None, compression=None)
 
def insecure_server_credentials ()
 
std::shared_ptr< ChannelCredentialsInsecureChannelCredentials ()
 Credentials for an unencrypted, unauthenticated channel. More...
 
std::shared_ptr< ServerCredentialsInsecureServerCredentials ()
 
def intercept_channel (channel, *interceptors)
 
def local_channel_credentials (local_connect_type=LocalConnectionType.LOCAL_TCP)
 
def local_server_credentials (local_connect_type=LocalConnectionType.LOCAL_TCP)
 
std::unique_ptr< ServerBuilderOptionMakeChannelArgumentOption (const std::string &name, const std::string &value)
 
std::unique_ptr< ServerBuilderOptionMakeChannelArgumentOption (const std::string &name, int value)
 
static gpr_subprocessMakeProcess (const std::vector< std::string > &args)
 
def metadata_call_credentials (metadata_plugin, name=None)
 
std::shared_ptr< CallCredentialsMetadataCredentialsFromPlugin (std::unique_ptr< MetadataCredentialsPlugin > plugin)
 
def method_handlers_generic_handler (service, method_handlers)
 
bool operator!= (string_ref x, string_ref y)
 
bool operator< (string_ref x, string_ref y)
 
std::ostream & operator<< (std::ostream &out, const string_ref &string)
 
bool operator<= (string_ref x, string_ref y)
 
bool operator== (string_ref x, string_ref y)
 Comparison operators. More...
 
bool operator> (string_ref x, string_ref y)
 
bool operator>= (string_ref x, string_ref y)
 
static grpc_server_register_method_payload_handling PayloadHandlingForMethod (grpc::internal::RpcServiceMethod *method)
 
void ProtoToCoreStats (const grpc::core::Stats &proto, grpc_stats_data *core)
 
template<typename ChannelDataType , typename CallDataType >
void RegisterChannelFilter (const char *name, grpc_channel_stack_type stack_type, int priority, std::function< bool(const grpc_channel_args &)> include_filter)
 
void RegisterOpenCensusPlugin ()
 
void RegisterOpenCensusViewsForExport ()
 
::opencensus::stats::MeasureInt64 RpcClientCompletedRpcs ()
 
MeasureDouble RpcClientReceivedBytesPerRpc ()
 
MeasureInt64 RpcClientReceivedMessagesPerRpc ()
 
MeasureInt64 RpcClientRetriesPerCall ()
 
MeasureDouble RpcClientRetryDelayPerCall ()
 
MeasureDouble RpcClientRoundtripLatency ()
 
MeasureDouble RpcClientSentBytesPerRpc ()
 
MeasureInt64 RpcClientSentMessagesPerRpc ()
 
MeasureDouble RpcClientServerLatency ()
 
MeasureInt64 RpcClientTransparentRetriesPerCall ()
 
::opencensus::stats::MeasureInt64 RpcServerCompletedRpcs ()
 
MeasureDouble RpcServerReceivedBytesPerRpc ()
 
MeasureInt64 RpcServerReceivedMessagesPerRpc ()
 
MeasureDouble RpcServerSentBytesPerRpc ()
 
MeasureInt64 RpcServerSentMessagesPerRpc ()
 
MeasureDouble RpcServerServerLatency ()
 
def secure_channel (target, credentials, options=None, compression=None)
 
def server (thread_pool, handlers=None, interceptors=None, options=None, maximum_concurrent_rpcs=None, compression=None, xds=False)
 
const ::opencensus::stats::ViewDescriptor & ServerCompletedRpcsCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ServerCompletedRpcsHour ()
 
const ::opencensus::stats::ViewDescriptor & ServerCompletedRpcsMinute ()
 
::opencensus::tags::TagKey ServerMethodTagKey ()
 
const ::opencensus::stats::ViewDescriptor & ServerReceivedBytesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ServerReceivedBytesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ServerReceivedBytesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ServerReceivedMessagesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ServerReceivedMessagesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ServerReceivedMessagesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ServerSentBytesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ServerSentBytesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ServerSentBytesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ServerSentMessagesPerRpcCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ServerSentMessagesPerRpcHour ()
 
const ::opencensus::stats::ViewDescriptor & ServerSentMessagesPerRpcMinute ()
 
const ::opencensus::stats::ViewDescriptor & ServerServerLatencyCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ServerServerLatencyHour ()
 
const ::opencensus::stats::ViewDescriptor & ServerServerLatencyMinute ()
 
const ::opencensus::stats::ViewDescriptor & ServerStartedCountCumulative ()
 
const ::opencensus::stats::ViewDescriptor & ServerStartedCountHour ()
 
size_t ServerStatsDeserialize (const char *buf, size_t buf_size, uint64_t *server_elapsed_time)
 
size_t ServerStatsSerialize (uint64_t server_elapsed_time, char *buf, size_t buf_size)
 
::opencensus::tags::TagKey ServerStatusTagKey ()
 
std::shared_ptr< CallCredentialsServiceAccountJWTAccessCredentials (const grpc::string &json_key, long token_lifetime_seconds=kMaxAuthTokenLifetimeSecs)
 
std::shared_ptr< CallCredentialsServiceAccountJWTAccessCredentials (const std::string &json_key, long token_lifetime_seconds)
 
void SetCreateThreadPool (CreateThreadPoolFunc func)
 
template<typename T >
grpc::Status SetErrorDetails (const T &from, grpc::Status *to)
 
grpc_slice SliceFromCopiedString (const std::string &str)
 
grpc_slice SliceReferencingString (const std::string &str)
 
SpanContext SpanContextFromCensusContext (const census_context *ctxt)
 
Span SpanFromCensusContext (const census_context *ctxt)
 
def ssl_channel_credentials (root_certificates=None, private_key=None, certificate_chain=None)
 
def ssl_server_certificate_configuration (private_key_certificate_chain_pairs, root_certificates=None)
 
def ssl_server_credentials (private_key_certificate_chain_pairs, root_certificates=None, require_client_auth=False)
 
std::shared_ptr< ChannelCredentialsSslCredentials (const SslCredentialsOptions &options)
 Builds SSL Credentials given SSL specific options. More...
 
std::shared_ptr< ServerCredentialsSslServerCredentials (const grpc::SslServerCredentialsOptions &options)
 Builds SSL ServerCredentials given SSL specific options. More...
 
size_t StatsContextSerialize (size_t, grpc_slice *)
 
absl::string_view StatusCodeToString (grpc_status_code code)
 
def stream_stream_rpc_method_handler (behavior, request_deserializer=None, response_serializer=None)
 
def stream_unary_rpc_method_handler (behavior, request_deserializer=None, response_serializer=None)
 
std::string StringFromCopiedSlice (grpc_slice slice)
 
grpc::string_ref StringRefFromSlice (const grpc_slice *slice)
 
 TEST (AuthorizationPolicyProviderTest, FileWatcherCreateReturnsErrorStatus)
 
 TEST (AuthorizationPolicyProviderTest, FileWatcherCreateReturnsProvider)
 
 TEST (AuthorizationPolicyProviderTest, StaticDataCreateReturnsErrorStatus)
 
 TEST (AuthorizationPolicyProviderTest, StaticDataCreateReturnsProvider)
 
 TEST (CredentialsTest, StsCredentialsOptionsFromEnv)
 
void Timepoint2Timespec (const std::chrono::system_clock::time_point &from, gpr_timespec *to)
 
void Timepoint2Timespec (const system_clock::time_point &from, gpr_timespec *to)
 
void TimepointHR2Timespec (const high_resolution_clock::time_point &from, gpr_timespec *to)
 
void TimepointHR2Timespec (const std::chrono::high_resolution_clock::time_point &from, gpr_timespec *to)
 
std::chrono::system_clock::time_point Timespec2Timepoint (gpr_timespec t)
 
size_t TraceContextSerialize (const ::opencensus::trace::SpanContext &context, char *tracing_buf, size_t tracing_buf_size)
 
def unary_stream_rpc_method_handler (behavior, request_deserializer=None, response_serializer=None)
 
def unary_unary_rpc_method_handler (behavior, request_deserializer=None, response_serializer=None)
 
std::string Version ()
 Return gRPC library version. More...
 
def xds_channel_credentials (fallback_credentials=None)
 
def xds_server_credentials (fallback_credentials)
 
std::shared_ptr< ChannelCredentialsXdsCredentials (const std::shared_ptr< ChannelCredentials > &fallback_creds)
 Builds XDS Credentials. More...
 
std::shared_ptr< ServerCredentialsXdsServerCredentials (const std::shared_ptr< ServerCredentials > &fallback_credentials)
 Builds Xds ServerCredentials given fallback credentials. More...
 

Variables

tuple __all__
 
string __version__ = "dev0"
 
FILE * creds_file = gpr_tmpfile("sts_creds_options", &creds_file_name)
 
char * creds_file_name
 
static ClientContext::GlobalCallbacksg_client_callbacks
 
CoreCodegenInterfaceg_core_codegen_interface
 
static DefaultGlobalClientCallbacksg_default_client_callbacks
 
static grpc::internal::GrpcLibraryInitializer g_gli_initializer
 
static internal::GrpcLibraryInitializer g_gli_initializer
 
static internal::GrpcLibraryInitializer g_gli_initializer
 
static internal::GrpcLibraryInitializer g_gli_initializer
 
static internal::GrpcLibraryInitializer g_gli_initializer
 
static grpc::internal::GrpcLibraryInitializer g_gli_initializer
 
static grpc::internal::GrpcLibraryInitializer g_gli_initializer
 
static internal::GrpcLibraryInitializer g_gli_initializer
 
static internal::GrpcLibraryInitializer g_gli_initializer
 
static grpc::internal::GrpcLibraryInitializer g_gli_initializer
 
static grpc::internal::GrpcLibraryInitializer g_gli_initializer
 
GrpcLibraryInterfaceg_glip
 
const char invalid_json_missing_subject_token_path []
 
const char invalid_json_missing_token_exchange_uri []
 
const char kHealthCheckServiceInterfaceArg []
 
constexpr long kMaxAuthTokenLifetimeSecs = 3600
 
const int kProtoBufferWriterMaxBufferLength = 1024 * 1024
 
const ABSL_CONST_INIT absl::string_view kRpcClientReceivedBytesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientReceivedMessagesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientRetriesPerCallMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientRetryDelayPerCallMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientRoundtripLatencyMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientSentBytesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientSentMessagesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientServerLatencyMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcClientTransparentRetriesPerCallMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcServerReceivedBytesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcServerReceivedMessagesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcServerSentBytesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcServerSentMessagesPerRpcMeasureName
 
const ABSL_CONST_INIT absl::string_view kRpcServerServerLatencyMeasureName
 
auto status
 

Detailed Description

An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided function on expiry or cancellation.

This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInputStream interface

This header provides an object that writes bytes directly into a grpc::ByteBuffer, via the ZeroCopyOutputStream interface

This header provides serialization and deserialization between gRPC messages serialized using protobuf and the C++ objects they represent.

An interface to define filters.

To define a filter, implement a subclass of each of CallData and ChannelData. Then register the filter using something like this:

RegisterChannelFilter<MyChannelDataSubclass, MyCallDataSubclass>(
"name-of-filter", GRPC_SERVER_CHANNEL, INT_MAX, nullptr);

Typedef Documentation

◆ AuthProperty

Definition at line 35 of file grpcpp/impl/codegen/security/auth_context.h.

◆ CreateThreadPoolFunc

typedef ThreadPoolInterface*(* grpc::CreateThreadPoolFunc) (void)

Definition at line 36 of file thread_pool_interface.h.

◆ GenericClientAsyncReaderWriter

Definition at line 35 of file grpcpp/generic/generic_stub.h.

◆ GenericClientAsyncResponseReader

Definition at line 39 of file grpcpp/generic/generic_stub.h.

◆ GenericServerAsyncReader

Definition at line 38 of file grpcpp/impl/codegen/async_generic_service.h.

◆ GenericServerAsyncReaderWriter

Definition at line 36 of file grpcpp/impl/codegen/async_generic_service.h.

◆ GenericServerAsyncResponseWriter

Definition at line 37 of file grpcpp/impl/codegen/async_generic_service.h.

◆ GenericServerAsyncWriter

Definition at line 39 of file grpcpp/impl/codegen/async_generic_service.h.

◆ GenericStub

Definition at line 171 of file grpcpp/generic/generic_stub.h.

◆ ServerGenericBidiReactor

ServerGenericBidiReactor is the reactor class for bidi streaming RPCs invoked on a CallbackGenericService. It is just a ServerBidi reactor with ByteBuffer arguments.

Definition at line 87 of file grpcpp/impl/codegen/async_generic_service.h.

Enumeration Type Documentation

◆ StatusCode

Enumerator
OK 

Not an error; returned on success.

CANCELLED 

The operation was cancelled (typically by the caller).

UNKNOWN 

Unknown error. An example of where this error may be returned is if a Status value received from another address space belongs to an error-space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.

INVALID_ARGUMENT 

Client specified an invalid argument. Note that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).

DEADLINE_EXCEEDED 

Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.

NOT_FOUND 

Some requested entity (e.g., file or directory) was not found.

ALREADY_EXISTS 

Some entity that we attempted to create (e.g., file or directory) already exists.

PERMISSION_DENIED 

The caller does not have permission to execute the specified operation. PERMISSION_DENIED must not be used for rejections caused by exhausting some resource (use RESOURCE_EXHAUSTED instead for those errors). PERMISSION_DENIED must not be used if the caller can not be identified (use UNAUTHENTICATED instead for those errors).

UNAUTHENTICATED 

The request does not have valid authentication credentials for the operation.

RESOURCE_EXHAUSTED 

Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.

FAILED_PRECONDITION 

Operation was rejected because the system is not in a state required for the operation's execution. For example, directory to be deleted may be non-empty, an rmdir operation is applied to a non-directory, etc.

A litmus test that may help a service implementor in deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: (a) Use UNAVAILABLE if the client can retry just the failing call. (b) Use ABORTED if the client should retry at a higher-level (e.g., restarting a read-modify-write sequence). (c) Use FAILED_PRECONDITION if the client should not retry until the system state has been explicitly fixed. E.g., if an "rmdir" fails because the directory is non-empty, FAILED_PRECONDITION should be returned since the client should not retry unless they have first fixed up the directory by deleting files from it. (d) Use FAILED_PRECONDITION if the client performs conditional REST Get/Update/Delete on a resource and the resource on the server does not match the condition. E.g., conflicting read-modify-write on the same resource.

ABORTED 

The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.

See litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

OUT_OF_RANGE 

Operation was attempted past the valid range. E.g., seeking or reading past end of file.

Unlike INVALID_ARGUMENT, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate INVALID_ARGUMENT if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OUT_OF_RANGE if asked to read from an offset past the current file size.

There is a fair bit of overlap between FAILED_PRECONDITION and OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OUT_OF_RANGE error to detect when they are done.

UNIMPLEMENTED 

Operation is not implemented or not supported/enabled in this service.

INTERNAL 

Internal errors. Means some invariants expected by underlying System has been broken. If you see one of these errors, Something is very broken.

UNAVAILABLE 

The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations.

Warning
Although data MIGHT not have been transmitted when this status occurs, there is NOT A GUARANTEE that the server has not seen anything. So in general it is unsafe to retry on this status code if the call is non-idempotent.

See litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

DATA_LOSS 

Unrecoverable data loss or corruption.

DO_NOT_USE 

Force users to include a default branch:

Definition at line 26 of file grpcpp/impl/codegen/status_code_enum.h.

Function Documentation

◆ _create_servicer_context()

def grpc._create_servicer_context (   rpc_event,
  state,
  request_deserializer 
)
private

Definition at line 2076 of file src/python/grpcio/grpc/__init__.py.

◆ access_token_call_credentials()

def grpc.access_token_call_credentials (   access_token)
Construct CallCredentials from an access token.

Args:
  access_token: A string to place directly in the http request
    authorization header, for example
    "authorization: Bearer <access_token>".

Returns:
  A CallCredentials.

Definition at line 1659 of file src/python/grpcio/grpc/__init__.py.

◆ AccessTokenCredentials() [1/2]

std::shared_ptr<CallCredentials> grpc::AccessTokenCredentials ( const grpc::string &  access_token)

Builds access token credentials. access_token is an oauth2 access token that was fetched using an out of band mechanism.

Warning
Only use these credentials when connecting to a Google endpoint. Using these credentials to connect to any other service may result in this service being able to impersonate your client for requests to Google services.

◆ AccessTokenCredentials() [2/2]

std::shared_ptr<CallCredentials> grpc::AccessTokenCredentials ( const std::string &  access_token)

Definition at line 355 of file secure_credentials.cc.

◆ AddAdminServices()

void grpc::AddAdminServices ( grpc::ServerBuilder builder)

Definition at line 41 of file admin_services.cc.

◆ alts_channel_credentials()

def grpc.alts_channel_credentials (   service_accounts = None)
Creates a ChannelCredentials for use with an ALTS-enabled Channel.

This is an EXPERIMENTAL API.
ALTS credentials API can only be used in GCP environment as it relies on
handshaker service being available. For more info about ALTS see
https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security

Args:
  service_accounts: A list of server identities accepted by the client.
    If target service accounts are provided and none of them matches the
    peer identity of the server, handshake will fail. The arg can be empty
    if the client does not have any information about trusted server
    identity.
Returns:
  A ChannelCredentials for use with an ALTS-enabled Channel

Definition at line 1893 of file src/python/grpcio/grpc/__init__.py.

◆ alts_server_credentials()

def grpc.alts_server_credentials ( )
Creates a ServerCredentials for use with an ALTS-enabled connection.

This is an EXPERIMENTAL API.
ALTS credentials API can only be used in GCP environment as it relies on
handshaker service being available. For more info about ALTS see
https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security

Returns:
  A ServerCredentials for use with an ALTS-enabled Server

Definition at line 1914 of file src/python/grpcio/grpc/__init__.py.

◆ ASSERT_EQ()

grpc::ASSERT_EQ ( sizeof(valid_json)  ,
fwrite(valid_json, 1, sizeof(valid_json), creds_file  
)

◆ ASSERT_NE() [1/2]

grpc::ASSERT_NE ( creds_file  ,
nullptr   
)

◆ ASSERT_NE() [2/2]

grpc::ASSERT_NE ( creds_file_name  ,
nullptr   
)

◆ channel_ready_future()

def grpc.channel_ready_future (   channel)
Creates a Future that tracks when a Channel is ready.

Cancelling the Future does not affect the channel's state machine.
It merely decouples the Future from channel state machine.

Args:
  channel: A Channel object.

Returns:
  A Future object that matures when the channel connectivity is
  ChannelConnectivity.READY.

Definition at line 1945 of file src/python/grpcio/grpc/__init__.py.

◆ ClientCompletedRpcsCumulative()

const ViewDescriptor & grpc::ClientCompletedRpcsCumulative ( )

Definition at line 134 of file views.cc.

◆ ClientCompletedRpcsHour()

const ViewDescriptor & grpc::ClientCompletedRpcsHour ( )

Definition at line 502 of file views.cc.

◆ ClientCompletedRpcsMinute()

const ViewDescriptor & grpc::ClientCompletedRpcsMinute ( )

Definition at line 318 of file views.cc.

◆ ClientMethodTagKey()

opencensus::tags::TagKey grpc::ClientMethodTagKey ( )

Definition at line 80 of file grpc_plugin.cc.

◆ ClientReceivedBytesPerRpcCumulative()

const ViewDescriptor & grpc::ClientReceivedBytesPerRpcCumulative ( )

Definition at line 104 of file views.cc.

◆ ClientReceivedBytesPerRpcHour()

const ViewDescriptor & grpc::ClientReceivedBytesPerRpcHour ( )

Definition at line 472 of file views.cc.

◆ ClientReceivedBytesPerRpcMinute()

const ViewDescriptor & grpc::ClientReceivedBytesPerRpcMinute ( )

Definition at line 288 of file views.cc.

◆ ClientReceivedMessagesPerRpcCumulative()

const ViewDescriptor & grpc::ClientReceivedMessagesPerRpcCumulative ( )

Definition at line 155 of file views.cc.

◆ ClientReceivedMessagesPerRpcHour()

const ViewDescriptor & grpc::ClientReceivedMessagesPerRpcHour ( )

Definition at line 523 of file views.cc.

◆ ClientReceivedMessagesPerRpcMinute()

const ViewDescriptor & grpc::ClientReceivedMessagesPerRpcMinute ( )

Definition at line 339 of file views.cc.

◆ ClientRetriesCumulative()

const ViewDescriptor & grpc::ClientRetriesCumulative ( )

Definition at line 175 of file views.cc.

◆ ClientRetriesHour()

const ViewDescriptor & grpc::ClientRetriesHour ( )

Definition at line 543 of file views.cc.

◆ ClientRetriesMinute()

const ViewDescriptor & grpc::ClientRetriesMinute ( )

Definition at line 359 of file views.cc.

◆ ClientRetriesPerCallCumulative()

const ViewDescriptor & grpc::ClientRetriesPerCallCumulative ( )

Definition at line 165 of file views.cc.

◆ ClientRetriesPerCallHour()

const ViewDescriptor & grpc::ClientRetriesPerCallHour ( )

Definition at line 533 of file views.cc.

◆ ClientRetriesPerCallMinute()

const ViewDescriptor & grpc::ClientRetriesPerCallMinute ( )

Definition at line 349 of file views.cc.

◆ ClientRetryDelayPerCallCumulative()

const ViewDescriptor & grpc::ClientRetryDelayPerCallCumulative ( )

Definition at line 205 of file views.cc.

◆ ClientRetryDelayPerCallHour()

const ViewDescriptor & grpc::ClientRetryDelayPerCallHour ( )

Definition at line 573 of file views.cc.

◆ ClientRetryDelayPerCallMinute()

const ViewDescriptor & grpc::ClientRetryDelayPerCallMinute ( )

Definition at line 389 of file views.cc.

◆ ClientRoundtripLatencyCumulative()

const ViewDescriptor & grpc::ClientRoundtripLatencyCumulative ( )

Definition at line 114 of file views.cc.

◆ ClientRoundtripLatencyHour()

const ViewDescriptor & grpc::ClientRoundtripLatencyHour ( )

Definition at line 482 of file views.cc.

◆ ClientRoundtripLatencyMinute()

const ViewDescriptor & grpc::ClientRoundtripLatencyMinute ( )

Definition at line 298 of file views.cc.

◆ ClientSentBytesPerRpcCumulative()

const ViewDescriptor & grpc::ClientSentBytesPerRpcCumulative ( )

Definition at line 94 of file views.cc.

◆ ClientSentBytesPerRpcHour()

const ViewDescriptor & grpc::ClientSentBytesPerRpcHour ( )

Definition at line 462 of file views.cc.

◆ ClientSentBytesPerRpcMinute()

const ViewDescriptor & grpc::ClientSentBytesPerRpcMinute ( )

Definition at line 278 of file views.cc.

◆ ClientSentMessagesPerRpcCumulative()

const ViewDescriptor & grpc::ClientSentMessagesPerRpcCumulative ( )

Definition at line 145 of file views.cc.

◆ ClientSentMessagesPerRpcHour()

const ViewDescriptor & grpc::ClientSentMessagesPerRpcHour ( )

Definition at line 513 of file views.cc.

◆ ClientSentMessagesPerRpcMinute()

const ViewDescriptor & grpc::ClientSentMessagesPerRpcMinute ( )

Definition at line 329 of file views.cc.

◆ ClientServerLatencyCumulative()

const ViewDescriptor & grpc::ClientServerLatencyCumulative ( )

Definition at line 124 of file views.cc.

◆ ClientServerLatencyHour()

const ViewDescriptor & grpc::ClientServerLatencyHour ( )

Definition at line 492 of file views.cc.

◆ ClientServerLatencyMinute()

const ViewDescriptor & grpc::ClientServerLatencyMinute ( )

Definition at line 308 of file views.cc.

◆ ClientStatusTagKey()

opencensus::tags::TagKey grpc::ClientStatusTagKey ( )

Definition at line 86 of file grpc_plugin.cc.

◆ ClientTransparentRetriesCumulative()

const ViewDescriptor & grpc::ClientTransparentRetriesCumulative ( )

Definition at line 195 of file views.cc.

◆ ClientTransparentRetriesHour()

const ViewDescriptor & grpc::ClientTransparentRetriesHour ( )

Definition at line 563 of file views.cc.

◆ ClientTransparentRetriesMinute()

const ViewDescriptor & grpc::ClientTransparentRetriesMinute ( )

Definition at line 379 of file views.cc.

◆ ClientTransparentRetriesPerCallCumulative()

const ViewDescriptor & grpc::ClientTransparentRetriesPerCallCumulative ( )

Definition at line 185 of file views.cc.

◆ ClientTransparentRetriesPerCallHour()

const ViewDescriptor & grpc::ClientTransparentRetriesPerCallHour ( )

Definition at line 553 of file views.cc.

◆ ClientTransparentRetriesPerCallMinute()

const ViewDescriptor & grpc::ClientTransparentRetriesPerCallMinute ( )

Definition at line 369 of file views.cc.

◆ composite_call_credentials()

def grpc.composite_call_credentials ( call_credentials)
Compose multiple CallCredentials to make a new CallCredentials.

Args:
  *call_credentials: At least two CallCredentials objects.

Returns:
  A CallCredentials object composed of the given CallCredentials objects.

Definition at line 1676 of file src/python/grpcio/grpc/__init__.py.

◆ composite_channel_credentials()

def grpc.composite_channel_credentials (   channel_credentials,
call_credentials 
)
Compose a ChannelCredentials and one or more CallCredentials objects.

Args:
  channel_credentials: A ChannelCredentials object.
  *call_credentials: One or more CallCredentials objects.

Returns:
  A ChannelCredentials composed of the given ChannelCredentials and
    CallCredentials objects.

Definition at line 1691 of file src/python/grpcio/grpc/__init__.py.

◆ CompositeCallCredentials()

std::shared_ptr< CallCredentials > grpc::CompositeCallCredentials ( const std::shared_ptr< CallCredentials > &  creds1,
const std::shared_ptr< CallCredentials > &  creds2 
)

Combines two call credentials objects into a composite call credentials.

Definition at line 392 of file secure_credentials.cc.

◆ CompositeChannelCredentials()

std::shared_ptr< ChannelCredentials > grpc::CompositeChannelCredentials ( const std::shared_ptr< ChannelCredentials > &  channel_creds,
const std::shared_ptr< CallCredentials > &  call_creds 
)

Combines a channel credentials and a call credentials into a composite channel credentials.

Definition at line 373 of file secure_credentials.cc.

◆ compute_engine_channel_credentials()

def grpc.compute_engine_channel_credentials (   call_credentials)
Creates a compute engine channel credential.

This credential can only be used in a GCP environment as it relies on
a handshaker service. For more info about ALTS, see
https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security

This channel credential is expected to be used as part of a composite
credential in conjunction with a call credentials that authenticates the
VM's default service account. If used with any other sort of call
credential, the connection may suddenly and unexpectedly begin failing RPCs.

Definition at line 1928 of file src/python/grpcio/grpc/__init__.py.

◆ CoreStatsToProto() [1/2]

void grpc::CoreStatsToProto ( const grpc_stats_data core,
grpc::core::Stats *  proto 
)

◆ CoreStatsToProto() [2/2]

void grpc::CoreStatsToProto ( const grpc_stats_data core,
Stats *  proto 
)

Definition at line 39 of file core_stats.cc.

◆ CreateAuthContext()

std::shared_ptr< const AuthContext > grpc::CreateAuthContext ( grpc_call call)

Definition at line 25 of file insecure_create_auth_context.cc.

◆ CreateChannel() [1/2]

std::shared_ptr<Channel> grpc::CreateChannel ( const grpc::string &  target,
const std::shared_ptr< ChannelCredentials > &  creds 
)

Create a new Channel pointing to target.

Parameters
targetThe URI of the endpoint to connect to.
credsCredentials to use for the created channel. If it does not hold an object or is invalid, a lame channel (one on which all operations fail) is returned.

◆ CreateChannel() [2/2]

std::shared_ptr<grpc::Channel> grpc::CreateChannel ( const grpc::string &  target,
const std::shared_ptr< grpc::ChannelCredentials > &  creds 
)

Definition at line 37 of file create_channel.cc.

◆ CreateChannelInternal() [1/2]

std::shared_ptr<Channel> grpc::CreateChannelInternal ( const std::string &  host,
grpc_channel c_channel,
std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >>  interceptor_creators 
)

◆ CreateChannelInternal() [2/2]

std::shared_ptr< Channel > grpc::CreateChannelInternal ( const std::string &  host,
grpc_channel c_channel,
std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >>  interceptor_creators 
)

Definition at line 30 of file create_channel_internal.cc.

◆ CreateCustomChannel() [1/2]

std::shared_ptr<Channel> grpc::CreateCustomChannel ( const grpc::string &  target,
const std::shared_ptr< ChannelCredentials > &  creds,
const ChannelArguments args 
)

Create a new custom Channel pointing to target.

Warning
For advanced use and testing ONLY. Override default channel arguments only if necessary.
Parameters
targetThe URI of the endpoint to connect to.
credsCredentials to use for the created channel. If it does not hold an object or is invalid, a lame channel (one on which all operations fail) is returned.
argsOptions for channel creation.

◆ CreateCustomChannel() [2/2]

std::shared_ptr< grpc::Channel > grpc::CreateCustomChannel ( const grpc::string &  target,
const std::shared_ptr< grpc::ChannelCredentials > &  creds,
const grpc::ChannelArguments args 
)

Definition at line 43 of file create_channel.cc.

◆ CreateDefaultThreadPool()

ThreadPoolInterface * grpc::CreateDefaultThreadPool ( )

Definition at line 39 of file create_default_thread_pool.cc.

◆ CreateTestChannel() [1/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  cred_type,
const std::string &  override_hostname,
bool  use_prod_roots,
const std::shared_ptr< CallCredentials > &  creds,
const ChannelArguments args 
)

Definition at line 88 of file create_test_channel.cc.

◆ CreateTestChannel() [2/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  cred_type,
const std::string &  override_hostname,
bool  use_prod_roots,
const std::shared_ptr< CallCredentials > &  creds,
const ChannelArguments args,
std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >>  interceptor_creators 
)

Definition at line 144 of file create_test_channel.cc.

◆ CreateTestChannel() [3/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  credential_type,
const std::shared_ptr< CallCredentials > &  creds 
)

Definition at line 129 of file create_test_channel.cc.

◆ CreateTestChannel() [4/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  credential_type,
const std::shared_ptr< CallCredentials > &  creds,
std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >>  interceptor_creators 
)

Definition at line 232 of file create_test_channel.cc.

◆ CreateTestChannel() [5/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  override_hostname,
testing::transport_security  security_type,
bool  use_prod_roots 
)

Definition at line 116 of file create_test_channel.cc.

◆ CreateTestChannel() [6/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  override_hostname,
testing::transport_security  security_type,
bool  use_prod_roots,
const std::shared_ptr< CallCredentials > &  creds 
)

Definition at line 108 of file create_test_channel.cc.

◆ CreateTestChannel() [7/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  override_hostname,
testing::transport_security  security_type,
bool  use_prod_roots,
const std::shared_ptr< CallCredentials > &  creds,
const ChannelArguments args 
)

Definition at line 98 of file create_test_channel.cc.

◆ CreateTestChannel() [8/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  override_hostname,
testing::transport_security  security_type,
bool  use_prod_roots,
const std::shared_ptr< CallCredentials > &  creds,
const ChannelArguments args,
std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >>  interceptor_creators 
)

Definition at line 203 of file create_test_channel.cc.

◆ CreateTestChannel() [9/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
const std::string &  override_hostname,
testing::transport_security  security_type,
bool  use_prod_roots,
const std::shared_ptr< CallCredentials > &  creds,
std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >>  interceptor_creators 
)

Definition at line 220 of file create_test_channel.cc.

◆ CreateTestChannel() [10/10]

std::shared_ptr< Channel > grpc::CreateTestChannel ( const std::string &  server,
testing::transport_security  security_type 
)

Definition at line 124 of file create_test_channel.cc.

◆ CronetChannelCredentials()

std::shared_ptr< ChannelCredentials > grpc::CronetChannelCredentials ( void *  engine)

Credentials for a channel using Cronet.

Definition at line 59 of file cronet_credentials.cc.

◆ DefaultHealthCheckServiceEnabled()

bool grpc::DefaultHealthCheckServiceEnabled ( )

Returns whether the default health checking service is enabled. NOT thread safe.

Definition at line 26 of file health_check_service.cc.

◆ dynamic_ssl_server_credentials()

def grpc.dynamic_ssl_server_credentials (   initial_certificate_configuration,
  certificate_configuration_fetcher,
  require_client_authentication = False 
)
Creates a ServerCredentials for use with an SSL-enabled Server.

Args:
  initial_certificate_configuration (ServerCertificateConfiguration): The
    certificate configuration with which the server will be initialized.
  certificate_configuration_fetcher (callable): A callable that takes no
    arguments and should return a ServerCertificateConfiguration to
    replace the server's current certificate, or None for no change
    (i.e., the server will continue its current certificate
    config). The library will call this callback on *every* new
    client connection before starting the TLS handshake with the
    client, thus allowing the user application to optionally
    return a new ServerCertificateConfiguration that the server will then
    use for the handshake.
  require_client_authentication: A boolean indicating whether or not to
    require clients to be authenticated.

Returns:
  A ServerCredentials.

Definition at line 1792 of file src/python/grpcio/grpc/__init__.py.

◆ EnableDefaultHealthCheckService()

void grpc::EnableDefaultHealthCheckService ( bool  enable)

Enable/disable the default health checking service. This applies to all C++ servers created afterwards. For each server, user can override the default with a HealthCheckServiceServerBuilderOption. NOT thread safe.

Definition at line 30 of file health_check_service.cc.

◆ EXPECT_EQ() [1/5]

grpc::EXPECT_EQ ( grpc::StatusCode::INVALID_ARGUMENT  ,
status.  error_code() 
)

◆ EXPECT_EQ() [2/5]

grpc::EXPECT_EQ ( options.  resource,
""   
)

◆ EXPECT_EQ() [3/5]

grpc::EXPECT_EQ ( options.  subject_token_path,
"subject_token_path"   
)

◆ EXPECT_EQ() [4/5]

grpc::EXPECT_EQ ( options.  subject_token_type,
"subject_token_type"   
)

◆ EXPECT_EQ() [5/5]

grpc::EXPECT_EQ ( options.  token_exchange_service_uri,
"https://foo/exchange"   
)

◆ EXPECT_THAT() [1/3]

grpc::EXPECT_THAT ( status.  error_message(),
::testing::HasSubstr("subject_token_path")   
)

◆ EXPECT_THAT() [2/3]

grpc::EXPECT_THAT ( status.  error_message(),
::testing::HasSubstr("subject_token_type")   
)

◆ EXPECT_THAT() [3/3]

grpc::EXPECT_THAT ( status.  error_message(),
::testing::HasSubstr("token_exchange_service_uri")   
)

◆ EXPECT_TRUE()

grpc::EXPECT_TRUE ( status.  ok())

◆ ExternalAccountCredentials()

std::shared_ptr< CallCredentials > grpc::ExternalAccountCredentials ( const grpc::string &  json_string,
const std::vector< grpc::string > &  scopes 
)

Builds External Account credentials. json_string is the JSON string containing the credentials options. scopes contains the scopes to be binded with the credentials.

Definition at line 121 of file secure_credentials.cc.

◆ ExtractErrorDetails() [1/2]

grpc::Status grpc::ExtractErrorDetails ( const grpc::Status ,
std::nullptr_t   
)
inline

Definition at line 47 of file grpcpp/support/error_details.h.

◆ ExtractErrorDetails() [2/2]

template<typename T >
grpc::Status grpc::ExtractErrorDetails ( const grpc::Status from,
T to 
)

Map a grpc::Status to a google::rpc::Status. The given to object will be cleared. On success, returns status with OK. Returns status with INVALID_ARGUMENT, if failed to deserialize. Returns status with FAILED_PRECONDITION, if to is nullptr.

Note
This function is a template to avoid a build dep on status.proto. However, this function still requires that
Template Parameters
Tis of type google::rpc::Status, which is defined at https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto

Definition at line 38 of file grpcpp/support/error_details.h.

◆ fclose()

grpc::fclose ( creds_file  )

◆ GenerateClientContext()

void grpc::GenerateClientContext ( absl::string_view  method,
CensusContext ctxt,
CensusContext parent_ctxt 
)

Definition at line 52 of file context.cc.

◆ GenerateServerContext()

void grpc::GenerateServerContext ( absl::string_view  tracing,
absl::string_view  method,
CensusContext context 
)

Definition at line 38 of file context.cc.

◆ GenericDeserialize()

template<class ProtoBufferReader , class T >
Status grpc::GenericDeserialize ( ByteBuffer buffer,
grpc::protobuf::MessageLite msg 
)

Definition at line 73 of file grpcpp/impl/codegen/proto_utils.h.

◆ GenericSerialize()

template<class ProtoBufferWriter , class T >
Status grpc::GenericSerialize ( const grpc::protobuf::MessageLite msg,
ByteBuffer bb,
bool own_buffer 
)

Definition at line 47 of file grpcpp/impl/codegen/proto_utils.h.

◆ GetIncomingDataSize()

uint64_t grpc::GetIncomingDataSize ( const grpc_call_final_info final_info)

Definition at line 103 of file context.cc.

◆ GetMethod()

absl::string_view grpc::GetMethod ( const grpc_core::Slice path)
inline

Definition at line 126 of file cpp/ext/filters/census/context.h.

◆ GetOutgoingDataSize()

uint64_t grpc::GetOutgoingDataSize ( const grpc_call_final_info final_info)

Definition at line 107 of file context.cc.

◆ GetSpanFromServerContext()

opencensus::trace::Span grpc::GetSpanFromServerContext ( grpc::ServerContext context)

Definition at line 69 of file grpc_plugin.cc.

◆ GoogleComputeEngineCredentials()

std::shared_ptr< CallCredentials > grpc::GoogleComputeEngineCredentials ( )

Builds credentials for use when running in GCE

Warning
Only use these credentials when connecting to a Google endpoint. Using these credentials to connect to any other service may result in this service being able to impersonate your client for requests to Google services.

Definition at line 325 of file secure_credentials.cc.

◆ GoogleDefaultCredentials()

std::shared_ptr< ChannelCredentials > grpc::GoogleDefaultCredentials ( )

Builds credentials with reasonable defaults.

Warning
Only use these credentials when connecting to a Google endpoint. Using these credentials to connect to any other service may result in this service being able to impersonate your client for requests to Google services.

Definition at line 115 of file secure_credentials.cc.

◆ GoogleIAMCredentials() [1/2]

std::shared_ptr<CallCredentials> grpc::GoogleIAMCredentials ( const grpc::string &  authorization_token,
const grpc::string &  authority_selector 
)

Builds IAM credentials.

Warning
Only use these credentials when connecting to a Google endpoint. Using these credentials to connect to any other service may result in this service being able to impersonate your client for requests to Google services.

◆ GoogleIAMCredentials() [2/2]

std::shared_ptr<CallCredentials> grpc::GoogleIAMCredentials ( const std::string &  authorization_token,
const std::string &  authority_selector 
)

Definition at line 363 of file secure_credentials.cc.

◆ GoogleRefreshTokenCredentials() [1/2]

std::shared_ptr<CallCredentials> grpc::GoogleRefreshTokenCredentials ( const grpc::string &  json_refresh_token)

Builds refresh token credentials. json_refresh_token is the JSON string containing the refresh token along with a client_id and client_secret.

Warning
Only use these credentials when connecting to a Google endpoint. Using these credentials to connect to any other service may result in this service being able to impersonate your client for requests to Google services.

◆ GoogleRefreshTokenCredentials() [2/2]

std::shared_ptr<CallCredentials> grpc::GoogleRefreshTokenCredentials ( const std::string &  json_refresh_token)

Definition at line 347 of file secure_credentials.cc.

◆ gpr_free()

grpc::gpr_free ( creds_file_name  )

◆ gpr_setenv()

grpc::gpr_setenv ( "STS_CREDENTIALS"  ,
creds_file_name   
)

◆ gpr_unsetenv()

grpc::gpr_unsetenv ( "STS_CREDENTIALS"  )

◆ insecure_channel()

def grpc.insecure_channel (   target,
  options = None,
  compression = None 
)
Creates an insecure Channel to a server.

The returned Channel is thread-safe.

Args:
  target: The server address
  options: An optional list of key-value pairs (:term:`channel_arguments`
    in gRPC Core runtime) to configure the channel.
  compression: An optional value indicating the compression method to be
    used over the lifetime of the channel. This is an EXPERIMENTAL option.

Returns:
  A Channel.

Definition at line 1962 of file src/python/grpcio/grpc/__init__.py.

◆ insecure_server_credentials()

def grpc.insecure_server_credentials ( )
Creates a credentials object directing the server to use no credentials.
  This is an EXPERIMENTAL API.

This object cannot be used directly in a call to `add_secure_port`.
Instead, it should be used to construct other credentials objects, e.g.
with xds_server_credentials.

Definition at line 1755 of file src/python/grpcio/grpc/__init__.py.

◆ InsecureChannelCredentials()

std::shared_ptr< ChannelCredentials > grpc::InsecureChannelCredentials ( )

Credentials for an unencrypted, unauthenticated channel.

Definition at line 69 of file cpp/client/insecure_credentials.cc.

◆ InsecureServerCredentials()

std::shared_ptr< ServerCredentials > grpc::InsecureServerCredentials ( )

Definition at line 52 of file insecure_server_credentials.cc.

◆ intercept_channel()

def grpc.intercept_channel (   channel,
interceptors 
)
Intercepts a channel through a set of interceptors.

Args:
  channel: A Channel.
  interceptors: Zero or more objects of type
    UnaryUnaryClientInterceptor,
    UnaryStreamClientInterceptor,
    StreamUnaryClientInterceptor, or
    StreamStreamClientInterceptor.
    Interceptors are given control in the order they are listed.

Returns:
  A Channel that intercepts each invocation via the provided interceptors.

Raises:
  TypeError: If interceptor does not derive from any of
    UnaryUnaryClientInterceptor,
    UnaryStreamClientInterceptor,
    StreamUnaryClientInterceptor, or
    StreamStreamClientInterceptor.

Definition at line 2008 of file src/python/grpcio/grpc/__init__.py.

◆ local_channel_credentials()

def grpc.local_channel_credentials (   local_connect_type = LocalConnectionType.LOCAL_TCP)
Creates a local ChannelCredentials used for local connections.

This is an EXPERIMENTAL API.

Local credentials are used by local TCP endpoints (e.g. localhost:10000)
also UDS connections.

The connections created by local channel credentials are not
encrypted, but will be checked if they are local or not.
The UDS connections are considered secure by providing peer authentication
and data confidentiality while TCP connections are considered insecure.

It is allowed to transmit call credentials over connections created by
local channel credentials.

Local channel credentials are useful for 1) eliminating insecure_channel usage;
2) enable unit testing for call credentials without setting up secrets.

Args:
  local_connect_type: Local connection type (either
    grpc.LocalConnectionType.UDS or grpc.LocalConnectionType.LOCAL_TCP)

Returns:
  A ChannelCredentials for use with a local Channel

Definition at line 1833 of file src/python/grpcio/grpc/__init__.py.

◆ local_server_credentials()

def grpc.local_server_credentials (   local_connect_type = LocalConnectionType.LOCAL_TCP)
Creates a local ServerCredentials used for local connections.

This is an EXPERIMENTAL API.

Local credentials are used by local TCP endpoints (e.g. localhost:10000)
also UDS connections.

The connections created by local server credentials are not
encrypted, but will be checked if they are local or not.
The UDS connections are considered secure by providing peer authentication
and data confidentiality while TCP connections are considered insecure.

It is allowed to transmit call credentials over connections created by local
server credentials.

Local server credentials are useful for 1) eliminating insecure_channel usage;
2) enable unit testing for call credentials without setting up secrets.

Args:
  local_connect_type: Local connection type (either
    grpc.LocalConnectionType.UDS or grpc.LocalConnectionType.LOCAL_TCP)

Returns:
  A ServerCredentials for use with a local Server

Definition at line 1863 of file src/python/grpcio/grpc/__init__.py.

◆ MakeChannelArgumentOption() [1/2]

std::unique_ptr< ServerBuilderOption > grpc::MakeChannelArgumentOption ( const std::string &  name,
const std::string &  value 
)

Definition at line 31 of file channel_argument_option.cc.

◆ MakeChannelArgumentOption() [2/2]

std::unique_ptr< ServerBuilderOption > grpc::MakeChannelArgumentOption ( const std::string &  name,
int  value 
)

Definition at line 52 of file channel_argument_option.cc.

◆ MakeProcess()

static gpr_subprocess* grpc::MakeProcess ( const std::vector< std::string > &  args)
static

Definition at line 27 of file test/cpp/util/subprocess.cc.

◆ metadata_call_credentials()

def grpc.metadata_call_credentials (   metadata_plugin,
  name = None 
)
Construct CallCredentials from an AuthMetadataPlugin.

Args:
  metadata_plugin: An AuthMetadataPlugin to use for authentication.
  name: An optional name for the plugin.

Returns:
  A CallCredentials.

Definition at line 1644 of file src/python/grpcio/grpc/__init__.py.

◆ MetadataCredentialsFromPlugin()

std::shared_ptr< CallCredentials > grpc::MetadataCredentialsFromPlugin ( std::unique_ptr< MetadataCredentialsPlugin plugin)

Definition at line 404 of file secure_credentials.cc.

◆ method_handlers_generic_handler()

def grpc.method_handlers_generic_handler (   service,
  method_handlers 
)
Creates a GenericRpcHandler from RpcMethodHandlers.

Args:
  service: The name of the service that is implemented by the
    method_handlers.
  method_handlers: A dictionary that maps method names to corresponding
    RpcMethodHandler.

Returns:
  A GenericRpcHandler. This is typically added to the grpc.Server object
  with add_generic_rpc_handlers() before starting the server.

Definition at line 1590 of file src/python/grpcio/grpc/__init__.py.

◆ operator!=()

bool grpc::operator!= ( string_ref  x,
string_ref  y 
)
inline

Definition at line 139 of file grpcpp/impl/codegen/string_ref.h.

◆ operator<()

bool grpc::operator< ( string_ref  x,
string_ref  y 
)
inline

Definition at line 140 of file grpcpp/impl/codegen/string_ref.h.

◆ operator<<()

std::ostream& grpc::operator<< ( std::ostream &  out,
const string_ref string 
)
inline

Definition at line 145 of file grpcpp/impl/codegen/string_ref.h.

◆ operator<=()

bool grpc::operator<= ( string_ref  x,
string_ref  y 
)
inline

Definition at line 141 of file grpcpp/impl/codegen/string_ref.h.

◆ operator==()

bool grpc::operator== ( string_ref  x,
string_ref  y 
)
inline

Comparison operators.

Definition at line 138 of file grpcpp/impl/codegen/string_ref.h.

◆ operator>()

bool grpc::operator> ( string_ref  x,
string_ref  y 
)
inline

Definition at line 142 of file grpcpp/impl/codegen/string_ref.h.

◆ operator>=()

bool grpc::operator>= ( string_ref  x,
string_ref  y 
)
inline

Definition at line 143 of file grpcpp/impl/codegen/string_ref.h.

◆ PayloadHandlingForMethod()

static grpc_server_register_method_payload_handling grpc::PayloadHandlingForMethod ( grpc::internal::RpcServiceMethod method)
static

Definition at line 1013 of file server_cc.cc.

◆ ProtoToCoreStats()

void grpc::ProtoToCoreStats ( const grpc::core::Stats &  proto,
grpc_stats_data core 
)

Definition at line 57 of file core_stats.cc.

◆ RegisterChannelFilter()

template<typename ChannelDataType , typename CallDataType >
void grpc::RegisterChannelFilter ( const char *  name,
grpc_channel_stack_type  stack_type,
int  priority,
std::function< bool(const grpc_channel_args &)>  include_filter 
)

Registers a new filter. Must be called by only one thread at a time. The include_filter argument specifies a function that will be called to determine at run-time whether or not to add the filter. If the value is nullptr, the filter will be added unconditionally. If the channel stack type is GRPC_CLIENT_SUBCHANNEL, the caller should ensure that subchannels with different filter lists will always have different channel args. This requires setting a channel arg in case the registration function relies on some condition other than channel args to decide whether to add a filter or not.

Definition at line 339 of file common/channel_filter.h.

◆ RegisterOpenCensusPlugin()

void grpc::RegisterOpenCensusPlugin ( )

Definition at line 42 of file grpc_plugin.cc.

◆ RegisterOpenCensusViewsForExport()

void grpc::RegisterOpenCensusViewsForExport ( )

Definition at line 78 of file views.cc.

◆ RpcClientCompletedRpcs()

::opencensus::stats::MeasureInt64 grpc::RpcClientCompletedRpcs ( )

◆ RpcClientReceivedBytesPerRpc()

opencensus::stats::MeasureDouble grpc::RpcClientReceivedBytesPerRpc ( )

Definition at line 53 of file measures.cc.

◆ RpcClientReceivedMessagesPerRpc()

opencensus::stats::MeasureInt64 grpc::RpcClientReceivedMessagesPerRpc ( )

Definition at line 85 of file measures.cc.

◆ RpcClientRetriesPerCall()

opencensus::stats::MeasureInt64 grpc::RpcClientRetriesPerCall ( )

Definition at line 93 of file measures.cc.

◆ RpcClientRetryDelayPerCall()

opencensus::stats::MeasureDouble grpc::RpcClientRetryDelayPerCall ( )

Definition at line 109 of file measures.cc.

◆ RpcClientRoundtripLatency()

opencensus::stats::MeasureDouble grpc::RpcClientRoundtripLatency ( )

Definition at line 60 of file measures.cc.

◆ RpcClientSentBytesPerRpc()

opencensus::stats::MeasureDouble grpc::RpcClientSentBytesPerRpc ( )

Definition at line 46 of file measures.cc.

◆ RpcClientSentMessagesPerRpc()

opencensus::stats::MeasureInt64 grpc::RpcClientSentMessagesPerRpc ( )

Definition at line 78 of file measures.cc.

◆ RpcClientServerLatency()

opencensus::stats::MeasureDouble grpc::RpcClientServerLatency ( )

Definition at line 69 of file measures.cc.

◆ RpcClientTransparentRetriesPerCall()

opencensus::stats::MeasureInt64 grpc::RpcClientTransparentRetriesPerCall ( )

Definition at line 102 of file measures.cc.

◆ RpcServerCompletedRpcs()

::opencensus::stats::MeasureInt64 grpc::RpcServerCompletedRpcs ( )

◆ RpcServerReceivedBytesPerRpc()

opencensus::stats::MeasureDouble grpc::RpcServerReceivedBytesPerRpc ( )

Definition at line 126 of file measures.cc.

◆ RpcServerReceivedMessagesPerRpc()

opencensus::stats::MeasureInt64 grpc::RpcServerReceivedMessagesPerRpc ( )

Definition at line 149 of file measures.cc.

◆ RpcServerSentBytesPerRpc()

opencensus::stats::MeasureDouble grpc::RpcServerSentBytesPerRpc ( )

Definition at line 119 of file measures.cc.

◆ RpcServerSentMessagesPerRpc()

opencensus::stats::MeasureInt64 grpc::RpcServerSentMessagesPerRpc ( )

Definition at line 142 of file measures.cc.

◆ RpcServerServerLatency()

opencensus::stats::MeasureDouble grpc::RpcServerServerLatency ( )

Definition at line 133 of file measures.cc.

◆ secure_channel()

def grpc.secure_channel (   target,
  credentials,
  options = None,
  compression = None 
)
Creates a secure Channel to a server.

The returned Channel is thread-safe.

Args:
  target: The server address.
  credentials: A ChannelCredentials instance.
  options: An optional list of key-value pairs (:term:`channel_arguments`
    in gRPC Core runtime) to configure the channel.
  compression: An optional value indicating the compression method to be
    used over the lifetime of the channel. This is an EXPERIMENTAL option.

Returns:
  A Channel.

Definition at line 1982 of file src/python/grpcio/grpc/__init__.py.

◆ server()

def grpc.server (   thread_pool,
  handlers = None,
  interceptors = None,
  options = None,
  maximum_concurrent_rpcs = None,
  compression = None,
  xds = False 
)
Creates a Server with which RPCs can be serviced.

Args:
  thread_pool: A futures.ThreadPoolExecutor to be used by the Server
    to execute RPC handlers.
  handlers: An optional list of GenericRpcHandlers used for executing RPCs.
    More handlers may be added by calling add_generic_rpc_handlers any time
    before the server is started.
  interceptors: An optional list of ServerInterceptor objects that observe
    and optionally manipulate the incoming RPCs before handing them over to
    handlers. The interceptors are given control in the order they are
    specified. This is an EXPERIMENTAL API.
  options: An optional list of key-value pairs (:term:`channel_arguments` in gRPC runtime)
    to configure the channel.
  maximum_concurrent_rpcs: The maximum number of concurrent RPCs this server
    will service before returning RESOURCE_EXHAUSTED status, or None to
    indicate no limit.
  compression: An element of grpc.compression, e.g.
    grpc.compression.Gzip. This compression algorithm will be used for the
    lifetime of the server unless overridden. This is an EXPERIMENTAL option.
  xds: If set to true, retrieves server configuration via xDS. This is an
    EXPERIMENTAL option.

Returns:
  A Server object.

Definition at line 2034 of file src/python/grpcio/grpc/__init__.py.

◆ ServerCompletedRpcsCumulative()

const ViewDescriptor & grpc::ServerCompletedRpcsCumulative ( )

Definition at line 246 of file views.cc.

◆ ServerCompletedRpcsHour()

const ViewDescriptor & grpc::ServerCompletedRpcsHour ( )

Definition at line 614 of file views.cc.

◆ ServerCompletedRpcsMinute()

const ViewDescriptor & grpc::ServerCompletedRpcsMinute ( )

Definition at line 430 of file views.cc.

◆ ServerMethodTagKey()

opencensus::tags::TagKey grpc::ServerMethodTagKey ( )

Definition at line 92 of file grpc_plugin.cc.

◆ ServerReceivedBytesPerRpcCumulative()

const ViewDescriptor & grpc::ServerReceivedBytesPerRpcCumulative ( )

Definition at line 226 of file views.cc.

◆ ServerReceivedBytesPerRpcHour()

const ViewDescriptor & grpc::ServerReceivedBytesPerRpcHour ( )

Definition at line 594 of file views.cc.

◆ ServerReceivedBytesPerRpcMinute()

const ViewDescriptor & grpc::ServerReceivedBytesPerRpcMinute ( )

Definition at line 410 of file views.cc.

◆ ServerReceivedMessagesPerRpcCumulative()

const ViewDescriptor & grpc::ServerReceivedMessagesPerRpcCumulative ( )

Definition at line 267 of file views.cc.

◆ ServerReceivedMessagesPerRpcHour()

const ViewDescriptor & grpc::ServerReceivedMessagesPerRpcHour ( )

Definition at line 635 of file views.cc.

◆ ServerReceivedMessagesPerRpcMinute()

const ViewDescriptor & grpc::ServerReceivedMessagesPerRpcMinute ( )

Definition at line 451 of file views.cc.

◆ ServerSentBytesPerRpcCumulative()

const ViewDescriptor & grpc::ServerSentBytesPerRpcCumulative ( )

Definition at line 216 of file views.cc.

◆ ServerSentBytesPerRpcHour()

const ViewDescriptor & grpc::ServerSentBytesPerRpcHour ( )

Definition at line 584 of file views.cc.

◆ ServerSentBytesPerRpcMinute()

const ViewDescriptor & grpc::ServerSentBytesPerRpcMinute ( )

Definition at line 400 of file views.cc.

◆ ServerSentMessagesPerRpcCumulative()

const ViewDescriptor & grpc::ServerSentMessagesPerRpcCumulative ( )

Definition at line 257 of file views.cc.

◆ ServerSentMessagesPerRpcHour()

const ViewDescriptor & grpc::ServerSentMessagesPerRpcHour ( )

Definition at line 625 of file views.cc.

◆ ServerSentMessagesPerRpcMinute()

const ViewDescriptor & grpc::ServerSentMessagesPerRpcMinute ( )

Definition at line 441 of file views.cc.

◆ ServerServerLatencyCumulative()

const ViewDescriptor & grpc::ServerServerLatencyCumulative ( )

Definition at line 236 of file views.cc.

◆ ServerServerLatencyHour()

const ViewDescriptor & grpc::ServerServerLatencyHour ( )

Definition at line 604 of file views.cc.

◆ ServerServerLatencyMinute()

const ViewDescriptor & grpc::ServerServerLatencyMinute ( )

Definition at line 420 of file views.cc.

◆ ServerStartedCountCumulative()

const ::opencensus::stats::ViewDescriptor& grpc::ServerStartedCountCumulative ( )

◆ ServerStartedCountHour()

const ::opencensus::stats::ViewDescriptor& grpc::ServerStartedCountHour ( )

◆ ServerStatsDeserialize()

size_t grpc::ServerStatsDeserialize ( const char *  buf,
size_t  buf_size,
uint64_t server_elapsed_time 
)

Definition at line 97 of file context.cc.

◆ ServerStatsSerialize()

size_t grpc::ServerStatsSerialize ( uint64_t  server_elapsed_time,
char *  buf,
size_t  buf_size 
)

Definition at line 92 of file context.cc.

◆ ServerStatusTagKey()

opencensus::tags::TagKey grpc::ServerStatusTagKey ( )

Definition at line 98 of file grpc_plugin.cc.

◆ ServiceAccountJWTAccessCredentials() [1/2]

std::shared_ptr<CallCredentials> grpc::ServiceAccountJWTAccessCredentials ( const grpc::string &  json_key,
long  token_lifetime_seconds = kMaxAuthTokenLifetimeSecs 
)

Builds Service Account JWT Access credentials. json_key is the JSON key string containing the client's private key. token_lifetime_seconds is the lifetime in seconds of each Json Web Token (JWT) created with this credentials. It should not exceed kMaxAuthTokenLifetimeSecs or will be cropped to this value.

◆ ServiceAccountJWTAccessCredentials() [2/2]

std::shared_ptr<CallCredentials> grpc::ServiceAccountJWTAccessCredentials ( const std::string &  json_key,
long  token_lifetime_seconds 
)

Definition at line 332 of file secure_credentials.cc.

◆ SetCreateThreadPool()

void grpc::SetCreateThreadPool ( CreateThreadPoolFunc  func)

Definition at line 41 of file create_default_thread_pool.cc.

◆ SetErrorDetails()

template<typename T >
grpc::Status grpc::SetErrorDetails ( const T from,
grpc::Status to 
)

Map google::rpc::Status to a grpc::Status. Returns OK on success. Returns status with FAILED_PRECONDITION if to is nullptr.

Note
This function is a template to avoid a build dep on status.proto. However, this function still requires that
Template Parameters
Tis of type google::rpc::Status, which is defined at https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto

Definition at line 61 of file grpcpp/support/error_details.h.

◆ SliceFromCopiedString()

grpc_slice grpc::SliceFromCopiedString ( const std::string &  str)
inline

Definition at line 149 of file include/grpcpp/impl/codegen/slice.h.

◆ SliceReferencingString()

grpc_slice grpc::SliceReferencingString ( const std::string &  str)
inline

Definition at line 144 of file include/grpcpp/impl/codegen/slice.h.

◆ SpanContextFromCensusContext()

opencensus::trace::SpanContext grpc::SpanContextFromCensusContext ( const census_context ctxt)

Definition at line 111 of file context.cc.

◆ SpanFromCensusContext()

opencensus::trace::Span grpc::SpanFromCensusContext ( const census_context ctxt)

Definition at line 115 of file context.cc.

◆ ssl_channel_credentials()

def grpc.ssl_channel_credentials (   root_certificates = None,
  private_key = None,
  certificate_chain = None 
)
Creates a ChannelCredentials for use with an SSL-enabled Channel.

Args:
  root_certificates: The PEM-encoded root certificates as a byte string,
    or None to retrieve them from a default location chosen by gRPC
    runtime.
  private_key: The PEM-encoded private key as a byte string, or None if no
    private key should be used.
  certificate_chain: The PEM-encoded certificate chain as a byte string
    to use or None if no certificate chain should be used.

Returns:
  A ChannelCredentials for use with an SSL-enabled Channel.

Definition at line 1607 of file src/python/grpcio/grpc/__init__.py.

◆ ssl_server_certificate_configuration()

def grpc.ssl_server_certificate_configuration (   private_key_certificate_chain_pairs,
  root_certificates = None 
)
Creates a ServerCertificateConfiguration for use with a Server.

Args:
  private_key_certificate_chain_pairs: A collection of pairs of
    the form [PEM-encoded private key, PEM-encoded certificate
    chain].
  root_certificates: An optional byte string of PEM-encoded client root
    certificates that the server will use to verify client authentication.

Returns:
  A ServerCertificateConfiguration that can be returned in the certificate
    configuration fetching callback.

Definition at line 1766 of file src/python/grpcio/grpc/__init__.py.

◆ ssl_server_credentials()

def grpc.ssl_server_credentials (   private_key_certificate_chain_pairs,
  root_certificates = None,
  require_client_auth = False 
)
Creates a ServerCredentials for use with an SSL-enabled Server.

Args:
  private_key_certificate_chain_pairs: A list of pairs of the form
    [PEM-encoded private key, PEM-encoded certificate chain].
  root_certificates: An optional byte string of PEM-encoded client root
    certificates that the server will use to verify client authentication.
    If omitted, require_client_auth must also be False.
  require_client_auth: A boolean indicating whether or not to require
    clients to be authenticated. May only be True if root_certificates
    is not None.

Returns:
  A ServerCredentials for use with an SSL-enabled Server. Typically, this
  object is an argument to add_secure_port() method during server setup.

Definition at line 1709 of file src/python/grpcio/grpc/__init__.py.

◆ SslCredentials()

std::shared_ptr< ChannelCredentials > grpc::SslCredentials ( const SslCredentialsOptions options)

Builds SSL Credentials given SSL specific options.

Definition at line 129 of file secure_credentials.cc.

◆ SslServerCredentials()

std::shared_ptr< ServerCredentials > grpc::SslServerCredentials ( const grpc::SslServerCredentialsOptions options)

Builds SSL ServerCredentials given SSL specific options.

Definition at line 114 of file secure_server_credentials.cc.

◆ StatsContextSerialize()

size_t grpc::StatsContextSerialize ( size_t  ,
grpc_slice  
)

Definition at line 87 of file context.cc.

◆ StatusCodeToString()

absl::string_view grpc::StatusCodeToString ( grpc_status_code  code)

Definition at line 119 of file context.cc.

◆ stream_stream_rpc_method_handler()

def grpc.stream_stream_rpc_method_handler (   behavior,
  request_deserializer = None,
  response_serializer = None 
)
Creates an RpcMethodHandler for a stream-stream RPC method.

Args:
  behavior: The implementation of an RPC that accepts an iterator of
    request values and returns an iterator of response values.
  request_deserializer: An optional :term:`deserializer` for request deserialization.
  response_serializer: An optional :term:`serializer` for response serialization.

Returns:
  An RpcMethodHandler object that is typically used by grpc.Server.

Definition at line 1570 of file src/python/grpcio/grpc/__init__.py.

◆ stream_unary_rpc_method_handler()

def grpc.stream_unary_rpc_method_handler (   behavior,
  request_deserializer = None,
  response_serializer = None 
)
Creates an RpcMethodHandler for a stream-unary RPC method.

Args:
  behavior: The implementation of an RPC that accepts an iterator of
    request values and returns a single response value.
  request_deserializer: An optional :term:`deserializer` for request deserialization.
  response_serializer: An optional :term:`serializer` for response serialization.

Returns:
  An RpcMethodHandler object that is typically used by grpc.Server.

Definition at line 1550 of file src/python/grpcio/grpc/__init__.py.

◆ StringFromCopiedSlice()

std::string grpc::StringFromCopiedSlice ( grpc_slice  slice)
inline

Definition at line 139 of file include/grpcpp/impl/codegen/slice.h.

◆ StringRefFromSlice()

grpc::string_ref grpc::StringRefFromSlice ( const grpc_slice slice)
inline

Definition at line 133 of file include/grpcpp/impl/codegen/slice.h.

◆ TEST() [1/5]

grpc::TEST ( AuthorizationPolicyProviderTest  ,
FileWatcherCreateReturnsErrorStatus   
)

Definition at line 62 of file authorization_policy_provider_test.cc.

◆ TEST() [2/5]

grpc::TEST ( AuthorizationPolicyProviderTest  ,
FileWatcherCreateReturnsProvider   
)

Definition at line 50 of file authorization_policy_provider_test.cc.

◆ TEST() [3/5]

grpc::TEST ( AuthorizationPolicyProviderTest  ,
StaticDataCreateReturnsErrorStatus   
)

Definition at line 41 of file authorization_policy_provider_test.cc.

◆ TEST() [4/5]

grpc::TEST ( AuthorizationPolicyProviderTest  ,
StaticDataCreateReturnsProvider   
)

Definition at line 31 of file authorization_policy_provider_test.cc.

◆ TEST() [5/5]

grpc::TEST ( CredentialsTest  ,
StsCredentialsOptionsFromEnv   
)

Definition at line 229 of file cpp/client/credentials_test.cc.

◆ Timepoint2Timespec() [1/2]

void grpc::Timepoint2Timespec ( const std::chrono::system_clock::time_point &  from,
gpr_timespec to 
)

◆ Timepoint2Timespec() [2/2]

void grpc::Timepoint2Timespec ( const system_clock::time_point &  from,
gpr_timespec to 
)

Definition at line 36 of file time_cc.cc.

◆ TimepointHR2Timespec() [1/2]

void grpc::TimepointHR2Timespec ( const high_resolution_clock::time_point &  from,
gpr_timespec to 
)

Definition at line 52 of file time_cc.cc.

◆ TimepointHR2Timespec() [2/2]

void grpc::TimepointHR2Timespec ( const std::chrono::high_resolution_clock::time_point &  from,
gpr_timespec to 
)

◆ Timespec2Timepoint()

system_clock::time_point grpc::Timespec2Timepoint ( gpr_timespec  t)

Definition at line 68 of file time_cc.cc.

◆ TraceContextSerialize()

size_t grpc::TraceContextSerialize ( const ::opencensus::trace::SpanContext &  context,
char *  tracing_buf,
size_t  tracing_buf_size 
)

Definition at line 76 of file context.cc.

◆ unary_stream_rpc_method_handler()

def grpc.unary_stream_rpc_method_handler (   behavior,
  request_deserializer = None,
  response_serializer = None 
)
Creates an RpcMethodHandler for a unary-stream RPC method.

Args:
  behavior: The implementation of an RPC that accepts one request
    and returns an iterator of response values.
  request_deserializer: An optional :term:`deserializer` for request deserialization.
  response_serializer: An optional :term:`serializer` for response serialization.

Returns:
  An RpcMethodHandler object that is typically used by grpc.Server.

Definition at line 1530 of file src/python/grpcio/grpc/__init__.py.

◆ unary_unary_rpc_method_handler()

def grpc.unary_unary_rpc_method_handler (   behavior,
  request_deserializer = None,
  response_serializer = None 
)
Creates an RpcMethodHandler for a unary-unary RPC method.

Args:
  behavior: The implementation of an RPC that accepts one request
    and returns one response.
  request_deserializer: An optional :term:`deserializer` for request deserialization.
  response_serializer: An optional :term:`serializer` for response serialization.

Returns:
  An RpcMethodHandler object that is typically used by grpc.Server.

Definition at line 1510 of file src/python/grpcio/grpc/__init__.py.

◆ Version()

std::string grpc::Version ( )

Return gRPC library version.

Definition at line 28 of file version_cc.cc.

◆ xds_channel_credentials()

def grpc.xds_channel_credentials (   fallback_credentials = None)
Creates a ChannelCredentials for use with xDS. This is an EXPERIMENTAL
  API.

Args:
  fallback_credentials: Credentials to use in case it is not possible to
    establish a secure connection via xDS. If no fallback_credentials
    argument is supplied, a default SSLChannelCredentials is used.

Definition at line 1629 of file src/python/grpcio/grpc/__init__.py.

◆ xds_server_credentials()

def grpc.xds_server_credentials (   fallback_credentials)
Creates a ServerCredentials for use with xDS. This is an EXPERIMENTAL
  API.

Args:
  fallback_credentials: Credentials to use in case it is not possible to
    establish a secure connection via xDS. No default value is provided.

Definition at line 1743 of file src/python/grpcio/grpc/__init__.py.

◆ XdsCredentials()

std::shared_ptr< ChannelCredentials > grpc::XdsCredentials ( const std::shared_ptr< ChannelCredentials > &  fallback_creds)

Builds XDS Credentials.

Definition at line 30 of file cpp/client/xds_credentials.cc.

◆ XdsServerCredentials()

std::shared_ptr< ServerCredentials > grpc::XdsServerCredentials ( const std::shared_ptr< ServerCredentials > &  fallback_credentials)

Builds Xds ServerCredentials given fallback credentials.

Definition at line 30 of file xds_server_credentials.cc.

Variable Documentation

◆ __all__

tuple grpc.__all__
private

Definition at line 2101 of file src/python/grpcio/grpc/__init__.py.

◆ __version__

string grpc.__version__ = "dev0"
private

Definition at line 35 of file src/python/grpcio/grpc/__init__.py.

◆ creds_file

FILE* grpc::creds_file = gpr_tmpfile("sts_creds_options", &creds_file_name)

Definition at line 244 of file cpp/client/credentials_test.cc.

◆ creds_file_name

char* grpc::creds_file_name

Definition at line 242 of file cpp/client/credentials_test.cc.

◆ g_client_callbacks

ClientContext::GlobalCallbacks* grpc::g_client_callbacks
static
Initial value:

Definition at line 61 of file client_context.cc.

◆ g_core_codegen_interface

grpc::CoreCodegenInterface * grpc::g_core_codegen_interface

Null-initializes the global gRPC variables for the codegen library. These stay null in the absence of grpc++ library. In this case, no gRPC features such as the ability to perform calls will be available. Trying to perform them would result in a segmentation fault when trying to deference the following nulled globals. These should be associated with actual as part of the instantiation of a grpc::GrpcLibraryInitializer variable.

Definition at line 98 of file include/grpcpp/impl/codegen/completion_queue.h.

◆ g_default_client_callbacks

DefaultGlobalClientCallbacks* grpc::g_default_client_callbacks
static
Initial value:
=
new DefaultGlobalClientCallbacks()

Definition at line 59 of file client_context.cc.

◆ g_gli_initializer [1/11]

grpc::internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 24 of file credentials_cc.cc.

◆ g_gli_initializer [2/11]

internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 24 of file server_credentials.cc.

◆ g_gli_initializer [3/11]

internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 30 of file cpp/util/slice_test.cc.

◆ g_gli_initializer [4/11]

internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 33 of file byte_buffer_cc.cc.

◆ g_gli_initializer [5/11]

internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 34 of file byte_buffer_test.cc.

◆ g_gli_initializer [6/11]

grpc::internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 52 of file channel_cc.cc.

◆ g_gli_initializer [7/11]

grpc::internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 56 of file secure_credentials.cc.

◆ g_gli_initializer [8/11]

internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 58 of file client_context.cc.

◆ g_gli_initializer [9/11]

internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 66 of file server_context.cc.

◆ g_gli_initializer [10/11]

grpc::internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 136 of file alarm.cc.

◆ g_gli_initializer [11/11]

grpc::internal::GrpcLibraryInitializer grpc::g_gli_initializer
static

Definition at line 877 of file server_cc.cc.

◆ g_glip

Initialized by grpc::GrpcLibraryInitializer from <grpcpp/impl/grpc_library.h>

Definition at line 30 of file codegen_init.cc.

◆ invalid_json_missing_subject_token_path

const char grpc::invalid_json_missing_subject_token_path[]
Initial value:
= R"(
{
"token_exchange_service_uri": "https://foo/exchange",
"subject_token_type": "subject_token_type"
})"

Definition at line 206 of file cpp/client/credentials_test.cc.

◆ invalid_json_missing_token_exchange_uri

const char grpc::invalid_json_missing_token_exchange_uri[]
Initial value:
= R"(
{
"subject_token_path": "subject_token_path",
"subject_token_type": "subject_token_type"
})"

Definition at line 217 of file cpp/client/credentials_test.cc.

◆ kHealthCheckServiceInterfaceArg

const char grpc::kHealthCheckServiceInterfaceArg[]
Initial value:
=
"grpc.health_check_service_interface"

Definition at line 26 of file grpcpp/health_check_service_interface.h.

◆ kMaxAuthTokenLifetimeSecs

constexpr long grpc::kMaxAuthTokenLifetimeSecs = 3600
constexpr

Definition at line 199 of file include/grpcpp/security/credentials.h.

◆ kProtoBufferWriterMaxBufferLength

const int grpc::kProtoBufferWriterMaxBufferLength = 1024 * 1024

Definition at line 46 of file impl/codegen/proto_buffer_writer.h.

◆ kRpcClientReceivedBytesPerRpcMeasureName

const absl::string_view grpc::kRpcClientReceivedBytesPerRpcMeasureName
Initial value:
=
"grpc.io/client/received_bytes_per_rpc"

Definition at line 117 of file grpc_plugin.cc.

◆ kRpcClientReceivedMessagesPerRpcMeasureName

const absl::string_view grpc::kRpcClientReceivedMessagesPerRpcMeasureName
Initial value:
=
"grpc.io/client/received_messages_per_rpc"

Definition at line 113 of file grpc_plugin.cc.

◆ kRpcClientRetriesPerCallMeasureName

const absl::string_view grpc::kRpcClientRetriesPerCallMeasureName
Initial value:
=
"grpc.io/client/retries_per_call"

Definition at line 126 of file grpc_plugin.cc.

◆ kRpcClientRetryDelayPerCallMeasureName

const absl::string_view grpc::kRpcClientRetryDelayPerCallMeasureName
Initial value:
=
"grpc.io/client/retry_delay_per_call"

Definition at line 133 of file grpc_plugin.cc.

◆ kRpcClientRoundtripLatencyMeasureName

const absl::string_view grpc::kRpcClientRoundtripLatencyMeasureName
Initial value:
=
"grpc.io/client/roundtrip_latency"

Definition at line 120 of file grpc_plugin.cc.

◆ kRpcClientSentBytesPerRpcMeasureName

const absl::string_view grpc::kRpcClientSentBytesPerRpcMeasureName
Initial value:
=
"grpc.io/client/sent_bytes_per_rpc"

Definition at line 109 of file grpc_plugin.cc.

◆ kRpcClientSentMessagesPerRpcMeasureName

const absl::string_view grpc::kRpcClientSentMessagesPerRpcMeasureName
Initial value:
=
"grpc.io/client/sent_messages_per_rpc"

Definition at line 106 of file grpc_plugin.cc.

◆ kRpcClientServerLatencyMeasureName

const absl::string_view grpc::kRpcClientServerLatencyMeasureName
Initial value:
=
"grpc.io/client/server_latency"

Definition at line 123 of file grpc_plugin.cc.

◆ kRpcClientTransparentRetriesPerCallMeasureName

const absl::string_view grpc::kRpcClientTransparentRetriesPerCallMeasureName
Initial value:
=
"grpc.io/client/transparent_retries_per_call"

Definition at line 130 of file grpc_plugin.cc.

◆ kRpcServerReceivedBytesPerRpcMeasureName

const absl::string_view grpc::kRpcServerReceivedBytesPerRpcMeasureName
Initial value:
=
"grpc.io/server/received_bytes_per_rpc"

Definition at line 149 of file grpc_plugin.cc.

◆ kRpcServerReceivedMessagesPerRpcMeasureName

const absl::string_view grpc::kRpcServerReceivedMessagesPerRpcMeasureName
Initial value:
=
"grpc.io/server/received_messages_per_rpc"

Definition at line 145 of file grpc_plugin.cc.

◆ kRpcServerSentBytesPerRpcMeasureName

const absl::string_view grpc::kRpcServerSentBytesPerRpcMeasureName
Initial value:
=
"grpc.io/server/sent_bytes_per_rpc"

Definition at line 141 of file grpc_plugin.cc.

◆ kRpcServerSentMessagesPerRpcMeasureName

const absl::string_view grpc::kRpcServerSentMessagesPerRpcMeasureName
Initial value:
=
"grpc.io/server/sent_messages_per_rpc"

Definition at line 138 of file grpc_plugin.cc.

◆ kRpcServerServerLatencyMeasureName

const absl::string_view grpc::kRpcServerServerLatencyMeasureName
Initial value:
=
"grpc.io/server/server_latency"

Definition at line 152 of file grpc_plugin.cc.

◆ status

grpc::status
Initial value:
invalid_json_missing_subject_token_type, &options)

Definition at line 200 of file cpp/client/credentials_test.cc.

grpc::experimental::StsCredentialsOptionsFromJson
grpc::Status StsCredentialsOptionsFromJson(const std::string &json_string, StsCredentialsOptions *options)
Definition: secure_credentials.cc:162
options
double_dict options[]
Definition: capstone_test.c:55
GRPC_SERVER_CHANNEL
@ GRPC_SERVER_CHANNEL
Definition: channel_stack_type.h:36
grpc::g_default_client_callbacks
static DefaultGlobalClientCallbacks * g_default_client_callbacks
Definition: client_context.cc:59


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:30