Go to the documentation of this file.
24 if (
resp ==
nullptr) {
26 "Invalid nullptr argument to "
27 "grpc_gcp_handshaker_resp_set_peer_rpc_versions().");
46 size_t buf_size = GPR_SLICE_LENGTH(
slice);
48 memcpy(
buf,
reinterpret_cast<const char*
>(GPR_SLICE_START_PTR(
slice)),
51 reinterpret_cast<char*
>(
buf), buf_size,
arena);
123 if (l_result ==
nullptr && r_result ==
nullptr) {
125 }
else if ((l_result !=
nullptr && r_result ==
nullptr) ||
126 (l_result ==
nullptr && r_result !=
nullptr)) {
154 if (l_status ==
nullptr && r_status ==
nullptr) {
156 }
else if ((l_status !=
nullptr && r_status ==
nullptr) ||
157 (l_status ==
nullptr && r_status !=
nullptr)) {
const UPB_INLINE grpc_gcp_HandshakerResult * grpc_gcp_HandshakerResp_result(const grpc_gcp_HandshakerResp *msg)
UPB_INLINE upb_StringView grpc_gcp_Identity_service_account(const grpc_gcp_Identity *msg)
struct grpc_gcp_HandshakerStatus grpc_gcp_HandshakerStatus
static bool handshaker_rpc_versions_equals(const grpc_gcp_RpcProtocolVersions *l_version, const grpc_gcp_RpcProtocolVersions *r_version)
struct grpc_gcp_RpcProtocolVersions_Version grpc_gcp_RpcProtocolVersions_Version
UPB_INLINE upb_StringView grpc_gcp_HandshakerResult_key_data(const grpc_gcp_HandshakerResult *msg)
UPB_INLINE upb_StringView grpc_gcp_Identity_hostname(const grpc_gcp_Identity *msg)
void grpc_gcp_RpcProtocolVersions_assign_from_struct(grpc_gcp_RpcProtocolVersions *versions, upb_Arena *arena, const grpc_gcp_rpc_protocol_versions *value)
UPB_INLINE upb_StringView grpc_gcp_HandshakerResult_record_protocol(const grpc_gcp_HandshakerResult *msg)
grpc_gcp_HandshakerReq * grpc_gcp_handshaker_req_decode(grpc_slice slice, upb_Arena *arena)
const UPB_INLINE grpc_gcp_Identity * grpc_gcp_HandshakerResult_peer_identity(const grpc_gcp_HandshakerResult *msg)
UPB_INLINE grpc_gcp_HandshakerReq * grpc_gcp_HandshakerReq_parse(const char *buf, size_t size, upb_Arena *arena)
UPB_INLINE struct grpc_gcp_RpcProtocolVersions * grpc_gcp_HandshakerResult_mutable_peer_rpc_versions(grpc_gcp_HandshakerResult *msg, upb_Arena *arena)
UPB_INLINE upb_StringView grpc_gcp_HandshakerResult_application_protocol(const grpc_gcp_HandshakerResult *msg)
UPB_INLINE uint32_t grpc_gcp_HandshakerResp_bytes_consumed(const grpc_gcp_HandshakerResp *msg)
grpc_gcp_rpc_protocol_versions_version max_rpc_version
grpc_core::ScopedArenaPtr arena
struct grpc_gcp_HandshakerReq grpc_gcp_HandshakerReq
UPB_INLINE bool grpc_gcp_Identity_has_service_account(const grpc_gcp_Identity *msg)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
const UPB_INLINE grpc_gcp_RpcProtocolVersions_Version * grpc_gcp_RpcProtocolVersions_max_rpc_version(const grpc_gcp_RpcProtocolVersions *msg)
UPB_INLINE bool grpc_gcp_HandshakerResult_keep_channel_open(const grpc_gcp_HandshakerResult *msg)
struct grpc_gcp_HandshakerResp grpc_gcp_HandshakerResp
UPB_INLINE uint32_t grpc_gcp_RpcProtocolVersions_Version_major(const grpc_gcp_RpcProtocolVersions_Version *msg)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
UPB_INLINE uint32_t grpc_gcp_RpcProtocolVersions_Version_minor(const grpc_gcp_RpcProtocolVersions_Version *msg)
UPB_INLINE void * upb_Arena_Malloc(upb_Arena *a, size_t size)
bool grpc_gcp_handshaker_resp_set_peer_rpc_versions(grpc_gcp_HandshakerResp *resp, upb_Arena *arena, uint32_t max_major, uint32_t max_minor, uint32_t min_major, uint32_t min_minor)
static bool handshaker_identity_equals(const grpc_gcp_Identity *l_id, const grpc_gcp_Identity *r_id)
UPB_INLINE const struct grpc_gcp_RpcProtocolVersions * grpc_gcp_HandshakerResult_peer_rpc_versions(const grpc_gcp_HandshakerResult *msg)
UPB_INLINE upb_StringView grpc_gcp_HandshakerStatus_details(const grpc_gcp_HandshakerStatus *msg)
UPB_INLINE bool upb_StringView_IsEqual(upb_StringView a, upb_StringView b)
struct grpc_gcp_RpcProtocolVersions grpc_gcp_RpcProtocolVersions
grpc_gcp_rpc_protocol_versions_version min_rpc_version
UPB_INLINE upb_StringView grpc_gcp_HandshakerResp_out_frames(const grpc_gcp_HandshakerResp *msg)
bool grpc_gcp_handshaker_resp_status_equals(const grpc_gcp_HandshakerStatus *l_status, const grpc_gcp_HandshakerStatus *r_status)
struct grpc_gcp_Identity grpc_gcp_Identity
bool grpc_gcp_handshaker_resp_equals(const grpc_gcp_HandshakerResp *l_resp, const grpc_gcp_HandshakerResp *r_resp)
struct grpc_gcp_HandshakerResult grpc_gcp_HandshakerResult
bool grpc_gcp_handshaker_resp_result_equals(const grpc_gcp_HandshakerResult *l_result, const grpc_gcp_HandshakerResult *r_result)
UPB_INLINE struct grpc_gcp_HandshakerResult * grpc_gcp_HandshakerResp_mutable_result(grpc_gcp_HandshakerResp *msg, upb_Arena *arena)
const UPB_INLINE grpc_gcp_Identity * grpc_gcp_HandshakerResult_local_identity(const grpc_gcp_HandshakerResult *msg)
const UPB_INLINE grpc_gcp_HandshakerStatus * grpc_gcp_HandshakerResp_status(const grpc_gcp_HandshakerResp *msg)
UPB_INLINE uint32_t grpc_gcp_HandshakerStatus_code(const grpc_gcp_HandshakerStatus *msg)
UPB_INLINE bool grpc_gcp_Identity_has_hostname(const grpc_gcp_Identity *msg)
const UPB_INLINE grpc_gcp_RpcProtocolVersions_Version * grpc_gcp_RpcProtocolVersions_min_rpc_version(const grpc_gcp_RpcProtocolVersions *msg)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:41