/* Generated by Cython 0.23.4 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "include_dirs": [
            "."
        ], 
        "libraries": [
            "grpc", 
            "gpr", 
            "rt"
        ]
    }
}
END: Cython Metadata */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
    #error Cython requires Python 2.6+ or Python 3.2+.
#else
#define CYTHON_ABI "0_23_4"
#include <stddef.h>
#ifndef offsetof
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
#define CYTHON_COMPILING_IN_PYPY 1
#define CYTHON_COMPILING_IN_CPYTHON 0
#else
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_CPYTHON 1
#endif
#if !defined(CYTHON_USE_PYLONG_INTERNALS) && CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x02070000
#define CYTHON_USE_PYLONG_INTERNALS 1
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
#define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
#else
  #define CYTHON_PEP393_ENABLED 0
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if PY_VERSION_HEX >= 0x030500B1
#define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
#elif CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
typedef struct {
    unaryfunc am_await;
    unaryfunc am_aiter;
    unaryfunc am_anext;
} __Pyx_PyAsyncMethodsStruct;
#define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
#else
#define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)

#ifndef CYTHON_INLINE
  #if defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif


#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__grpc___cython___cygrpc__records
#define __PYX_HAVE_API__grpc___cython___cygrpc__records
#include "stddef.h"
#include "time.h"
#include "grpc/support/alloc.h"
#include "grpc/support/slice.h"
#include "grpc/support/port_platform.h"
#include "grpc/support/time.h"
#include "grpc/status.h"
#include "grpc/byte_buffer_reader.h"
#include "grpc/byte_buffer.h"
#include "grpc/grpc.h"
#include "grpc/grpc_security.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER) && defined (_M_X64)
    #define __Pyx_sst_abs(value) _abs64(value)
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyObject_AsSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#if PY_MAJOR_VERSION < 3
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#else
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
#endif
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
#define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False))
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_COMPILING_IN_CPYTHON
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */

static PyObject *__pyx_m;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "grpc/_cython/_cygrpc/records.pyx",
  "grpc/_cython/_cygrpc/records.pxd",
  "grpc/_cython/_cygrpc/call.pxd",
  "grpc/_cython/_cygrpc/completion_queue.pxd",
  "grpc/_cython/_cygrpc/server.pxd",
};

/*--- Type declarations ---*/
struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_16completion_queue_CompletionQueue;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_6server_Server;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator;
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator;

/* "call.pxd":33
 * 
 * 
 * cdef class Call:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_call *c_call
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call {
  PyObject_HEAD
  grpc_call *c_call;
  PyObject *references;
};


/* "completion_queue.pxd":33
 * 
 * 
 * cdef class CompletionQueue:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_completion_queue *c_completion_queue
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_16completion_queue_CompletionQueue {
  PyObject_HEAD
  grpc_completion_queue *c_completion_queue;
  PyObject *poll_condition;
  int is_polling;
  int is_shutting_down;
  int is_shutdown;
};


/* "server.pxd":34
 * 
 * 
 * cdef class Server:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_server *c_server
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_6server_Server {
  PyObject_HEAD
  struct __pyx_vtabstruct_4grpc_7_cython_7_cygrpc_6server_Server *__pyx_vtab;
  grpc_server *c_server;
  int is_started;
  int is_shutting_down;
  int is_shutdown;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_16completion_queue_CompletionQueue *backup_shutdown_queue;
  PyObject *references;
  PyObject *registered_completion_queues;
};


/* "grpc/_cython/_cygrpc/records.pxd":35
 * 
 * 
 * cdef class Timespec:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.gpr_timespec c_time
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec {
  PyObject_HEAD
  gpr_timespec c_time;
};


/* "grpc/_cython/_cygrpc/records.pxd":40
 * 
 * 
 * cdef class CallDetails:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_call_details c_details
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails {
  PyObject_HEAD
  grpc_call_details c_details;
};


/* "grpc/_cython/_cygrpc/records.pxd":45
 * 
 * 
 * cdef class OperationTag:             # <<<<<<<<<<<<<<
 * 
 *   cdef object user_tag
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag {
  PyObject_HEAD
  PyObject *user_tag;
  PyObject *references;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_6server_Server *shutting_down_server;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *operation_call;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *request_call_details;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *request_metadata;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *batch_operations;
  int is_new_request;
};


/* "grpc/_cython/_cygrpc/records.pxd":59
 * 
 * 
 * cdef class Event:             # <<<<<<<<<<<<<<
 * 
 *   cdef readonly grpc.grpc_completion_type type
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event {
  PyObject_HEAD
  grpc_completion_type type;
  int success;
  PyObject *tag;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *operation_call;
  int is_new_request;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *request_call_details;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *request_metadata;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *batch_operations;
};


/* "grpc/_cython/_cygrpc/records.pxd":77
 * 
 * 
 * cdef class ByteBuffer:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_byte_buffer *c_byte_buffer
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer {
  PyObject_HEAD
  grpc_byte_buffer *c_byte_buffer;
};


/* "grpc/_cython/_cygrpc/records.pxd":82
 * 
 * 
 * cdef class SslPemKeyCertPair:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_ssl_pem_key_cert_pair c_pair
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair {
  PyObject_HEAD
  grpc_ssl_pem_key_cert_pair c_pair;
  PyObject *private_key;
  PyObject *certificate_chain;
};


/* "grpc/_cython/_cygrpc/records.pxd":88
 * 
 * 
 * cdef class ChannelArg:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_arg c_arg
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg {
  PyObject_HEAD
  grpc_arg c_arg;
  PyObject *key;
  PyObject *value;
};


/* "grpc/_cython/_cygrpc/records.pxd":94
 * 
 * 
 * cdef class ChannelArgs:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_channel_args c_args
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs {
  PyObject_HEAD
  grpc_channel_args c_args;
  PyObject *args;
};


/* "grpc/_cython/_cygrpc/records.pxd":100
 * 
 * 
 * cdef class Metadatum:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_metadata c_metadata
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum {
  PyObject_HEAD
  grpc_metadata c_metadata;
  PyObject *_key;
  PyObject *_value;
};


/* "grpc/_cython/_cygrpc/records.pxd":106
 * 
 * 
 * cdef class Metadata:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_metadata_array c_metadata_array
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata {
  PyObject_HEAD
  grpc_metadata_array c_metadata_array;
  PyObject *metadata;
};


/* "grpc/_cython/_cygrpc/records.pxd":112
 * 
 * 
 * cdef class Operation:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_op c_op
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation {
  PyObject_HEAD
  grpc_op c_op;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *_received_message;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *_received_metadata;
  grpc_status_code _received_status_code;
  char *_received_status_details;
  size_t _received_status_details_capacity;
  int _received_cancelled;
  int is_valid;
  PyObject *references;
};


/* "grpc/_cython/_cygrpc/records.pxd":125
 * 
 * 
 * cdef class Operations:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_op *c_ops
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations {
  PyObject_HEAD
  grpc_op *c_ops;
  size_t c_nops;
  PyObject *operations;
};


/* "grpc/_cython/_cygrpc/records.pyx":381
 * 
 * 
 * cdef class _MetadataIterator:             # <<<<<<<<<<<<<<
 * 
 *   cdef size_t i
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator {
  PyObject_HEAD
  size_t i;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *metadata;
};


/* "grpc/_cython/_cygrpc/records.pyx":619
 * 
 * 
 * cdef class _OperationsIterator:             # <<<<<<<<<<<<<<
 * 
 *   cdef size_t i
 */
struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator {
  PyObject_HEAD
  size_t i;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *operations;
};



/* "server.pxd":34
 * 
 * 
 * cdef class Server:             # <<<<<<<<<<<<<<
 * 
 *   cdef grpc.grpc_server *c_server
 */

struct __pyx_vtabstruct_4grpc_7_cython_7_cygrpc_6server_Server {
  PyObject *(*notify_shutdown_complete)(struct __pyx_obj_4grpc_7_cython_7_cygrpc_6server_Server *);
};
static struct __pyx_vtabstruct_4grpc_7_cython_7_cygrpc_6server_Server *__pyx_vtabptr_4grpc_7_cython_7_cygrpc_6server_Server;

/* --- Runtime support code (head) --- */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

static PyObject *__Pyx_GetBuiltinName(PyObject *name);

static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
    const char* function_name);

static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

static double __Pyx__PyObject_AsDouble(PyObject* obj);
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyObject_AsDouble(obj)\
(likely(PyFloat_CheckExact(obj)) ? PyFloat_AS_DOUBLE(obj) :\
 likely(PyInt_CheckExact(obj)) ?\
 PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#else
#define __Pyx_PyObject_AsDouble(obj)\
((likely(PyFloat_CheckExact(obj))) ?\
 PyFloat_AS_DOUBLE(obj) : __Pyx__PyObject_AsDouble(obj))
#endif

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb);

static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

static CYTHON_INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);

static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact);

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x);

static void* __Pyx_GetVtable(PyObject *dict);

static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);

static PyObject *__Pyx_GetNameInClass(PyObject *nmspace, PyObject *name);

typedef struct {
    int code_line;
    PyCodeObject* code_object;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_completion_type(grpc_completion_type value);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_connectivity_state(grpc_connectivity_state value);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_status_code(grpc_status_code value);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_call_error(grpc_call_error value);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_op_type(grpc_op_type value);

static CYTHON_INLINE grpc_completion_type __Pyx_PyInt_As_grpc_completion_type(PyObject *);

static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *);

static CYTHON_INLINE grpc_status_code __Pyx_PyInt_As_grpc_status_code(PyObject *);

static CYTHON_INLINE gpr_int64 __Pyx_PyInt_As_gpr_int64(PyObject *);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_gpr_int64(gpr_int64 value);

static CYTHON_INLINE gpr_int32 __Pyx_PyInt_As_gpr_int32(PyObject *);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_gpr_int32(gpr_int32 value);

static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

static int __Pyx_check_binary_version(void);

#if !defined(__Pyx_PyIdentifier_FromString)
#if PY_MAJOR_VERSION < 3
  #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
#else
  #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
#endif
#endif

static PyObject *__Pyx_ImportModule(const char *name);

static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict);

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);


/* Module declarations from 'grpc._cython._cygrpc' */

/* Module declarations from 'libc.stddef' */

/* Module declarations from 'libc.time' */

/* Module declarations from 'libc' */

/* Module declarations from 'grpc._cython._cygrpc.grpc' */

/* Module declarations from 'grpc._cython._cygrpc.call' */
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_4call_Call = 0;

/* Module declarations from 'grpc._cython._cygrpc.completion_queue' */
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_16completion_queue_CompletionQueue = 0;

/* Module declarations from 'grpc._cython._cygrpc.server' */
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_6server_Server = 0;

/* Module declarations from 'grpc._cython._cygrpc.records' */
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_OperationTag = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Event = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ByteBuffer = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ChannelArg = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ChannelArgs = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operations = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records__MetadataIterator = 0;
static PyTypeObject *__pyx_ptype_4grpc_7_cython_7_cygrpc_7records__OperationsIterator = 0;
#define __Pyx_MODULE_NAME "grpc._cython._cygrpc.records"
int __pyx_module_is_main_grpc___cython___cygrpc__records = 0;

/* Implementation of 'grpc._cython._cygrpc.records' */
static PyObject *__pyx_builtin_property;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_IndexError;
static PyObject *__pyx_builtin_StopIteration;
static char __pyx_k_[] = "";
static char __pyx_k_ok[] = "ok";
static char __pyx_k_op[] = "op";
static char __pyx_k_doc[] = "__doc__";
static char __pyx_k_inf[] = "+inf";
static char __pyx_k_key[] = "key";
static char __pyx_k_tag[] = "tag";
static char __pyx_k_args[] = "args";
static char __pyx_k_code[] = "code";
static char __pyx_k_data[] = "data";
static char __pyx_k_host[] = "host";
static char __pyx_k_idle[] = "idle";
static char __pyx_k_main[] = "__main__";
static char __pyx_k_test[] = "__test__";
static char __pyx_k_time[] = "time";
static char __pyx_k_type[] = "type";
static char __pyx_k_bytes[] = "bytes";
static char __pyx_k_error[] = "error";
static char __pyx_k_inf_2[] = "-inf";
static char __pyx_k_range[] = "range";
static char __pyx_k_ready[] = "ready";
static char __pyx_k_value[] = "value";
static char __pyx_k_append[] = "append";
static char __pyx_k_encode[] = "encode";
static char __pyx_k_format[] = "format";
static char __pyx_k_method[] = "method";
static char __pyx_k_module[] = "__module__";
static char __pyx_k_aborted[] = "aborted";
static char __pyx_k_details[] = "details";
static char __pyx_k_prepare[] = "__prepare__";
static char __pyx_k_seconds[] = "seconds";
static char __pyx_k_success[] = "success";
static char __pyx_k_unknown[] = "unknown";
static char __pyx_k_deadline[] = "deadline";
static char __pyx_k_internal[] = "internal";
static char __pyx_k_metadata[] = "metadata";
static char __pyx_k_property[] = "property";
static char __pyx_k_qualname[] = "__qualname__";
static char __pyx_k_user_tag[] = "user_tag";
static char __pyx_k_CallError[] = "CallError";
static char __pyx_k_TypeError[] = "TypeError";
static char __pyx_k_WriteFlag[] = "WriteFlag";
static char __pyx_k_cancelled[] = "cancelled";
static char __pyx_k_data_loss[] = "data_loss";
static char __pyx_k_metaclass[] = "__metaclass__";
static char __pyx_k_not_found[] = "not_found";
static char __pyx_k_IndexError[] = "IndexError";
static char __pyx_k_StatusCode[] = "StatusCode";
static char __pyx_k_connecting[] = "connecting";
static char __pyx_k_has_status[] = "has_status";
static char __pyx_k_operations[] = "operations";
static char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static char __pyx_k_buffer_hint[] = "buffer_hint";
static char __pyx_k_byte_buffer[] = "byte_buffer";
static char __pyx_k_nanoseconds[] = "nanoseconds";
static char __pyx_k_no_compress[] = "no_compress";
static char __pyx_k_not_invoked[] = "not_invoked";
static char __pyx_k_private_key[] = "private_key";
static char __pyx_k_unavailable[] = "unavailable";
static char __pyx_k_out_of_range[] = "out_of_range";
static char __pyx_k_send_message[] = "send_message";
static char __pyx_k_ChannelArgKey[] = "ChannelArgKey";
static char __pyx_k_OperationType[] = "OperationType";
static char __pyx_k_StopIteration[] = "StopIteration";
static char __pyx_k_enable_census[] = "enable_census";
static char __pyx_k_fatal_failure[] = "fatal_failure";
static char __pyx_k_infinite_past[] = "infinite_past";
static char __pyx_k_invalid_flags[] = "invalid_flags";
static char __pyx_k_not_on_client[] = "not_on_client";
static char __pyx_k_not_on_server[] = "not_on_server";
static char __pyx_k_queue_timeout[] = "queue_timeout";
static char __pyx_k_unimplemented[] = "unimplemented";
static char __pyx_k_CompletionType[] = "CompletionType";
static char __pyx_k_already_exists[] = "already_exists";
static char __pyx_k_is_new_request[] = "is_new_request";
static char __pyx_k_operation_call[] = "operation_call";
static char __pyx_k_queue_shutdown[] = "queue_shutdown";
static char __pyx_k_already_invoked[] = "already_invoked";
static char __pyx_k_infinite_future[] = "infinite_future";
static char __pyx_k_receive_message[] = "receive_message";
static char __pyx_k_unauthenticated[] = "unauthenticated";
static char __pyx_k_already_accepted[] = "already_accepted";
static char __pyx_k_already_finished[] = "already_finished";
static char __pyx_k_batch_operations[] = "batch_operations";
static char __pyx_k_invalid_argument[] = "invalid_argument";
static char __pyx_k_invalid_metadata[] = "invalid_metadata";
static char __pyx_k_received_message[] = "received_message";
static char __pyx_k_request_metadata[] = "request_metadata";
static char __pyx_k_ConnectivityState[] = "ConnectivityState";
static char __pyx_k_certificate_chain[] = "certificate_chain";
static char __pyx_k_deadline_exceeded[] = "deadline_exceeded";
static char __pyx_k_default_authority[] = "default_authority";
static char __pyx_k_permission_denied[] = "permission_denied";
static char __pyx_k_received_metadata[] = "received_metadata";
static char __pyx_k_transient_failure[] = "transient_failure";
static char __pyx_k_max_message_length[] = "max_message_length";
static char __pyx_k_operation_complete[] = "operation_complete";
static char __pyx_k_received_cancelled[] = "received_cancelled";
static char __pyx_k_resource_exhausted[] = "resource_exhausted";
static char __pyx_k_failed_precondition[] = "failed_precondition";
static char __pyx_k_too_many_operations[] = "too_many_operations";
static char __pyx_k_received_status_code[] = "received_status_code";
static char __pyx_k_request_call_details[] = "request_call_details";
static char __pyx_k_send_initial_metadata[] = "send_initial_metadata";
static char __pyx_k_max_concurrent_streams[] = "max_concurrent_streams";
static char __pyx_k_operation_send_message[] = "operation_send_message";
static char __pyx_k_send_close_from_client[] = "send_close_from_client";
static char __pyx_k_receive_close_on_server[] = "receive_close_on_server";
static char __pyx_k_received_status_details[] = "received_status_details";
static char __pyx_k_send_status_from_server[] = "send_status_from_server";
static char __pyx_k_receive_initial_metadata[] = "receive_initial_metadata";
static char __pyx_k_receive_status_on_client[] = "receive_status_on_client";
static char __pyx_k_received_message_or_none[] = "received_message_or_none";
static char __pyx_k_ssl_target_name_override[] = "ssl_target_name_override";
static char __pyx_k_operation_receive_message[] = "operation_receive_message";
static char __pyx_k_primary_user_agent_string[] = "primary_user_agent_string";
static char __pyx_k_received_metadata_or_none[] = "received_metadata_or_none";
static char __pyx_k_expected_list_of_Metadatum[] = "expected list of Metadatum";
static char __pyx_k_received_cancelled_or_none[] = "received_cancelled_or_none";
static char __pyx_k_expected_list_of_ChannelArg[] = "expected list of ChannelArg";
static char __pyx_k_secondary_user_agent_string[] = "secondary_user_agent_string";
static char __pyx_k_grpc__cython__cygrpc_records[] = "grpc._cython._cygrpc.records";
static char __pyx_k_received_status_code_or_none[] = "received_status_code_or_none";
static char __pyx_k_http2_initial_sequence_number[] = "http2_initial_sequence_number";
static char __pyx_k_index_must_be_0_key_or_1_value[] = "index must be 0 (key) or 1 (value)";
static char __pyx_k_operation_send_initial_metadata[] = "operation_send_initial_metadata";
static char __pyx_k_received_status_details_or_none[] = "received_status_details_or_none";
static char __pyx_k_usr_local_google_home_atash_src[] = "/usr/local/google/home/atash/src/grpc/src/python/grpcio/grpc/_cython/_cygrpc/records.pyx";
static char __pyx_k_expected_a_str_or_bytes_object_f[] = "expected a str or bytes object for details";
static char __pyx_k_expected_certificate_chain_to_be[] = "expected certificate_chain to be of type str or bytes or int";
static char __pyx_k_expected_key_to_be_of_type_str_o[] = "expected key to be of type str or bytes";
static char __pyx_k_expected_operations_to_be_iterab[] = "expected operations to be iterable of Operation";
static char __pyx_k_expected_private_key_to_be_of_ty[] = "expected private_key to be of type str or bytes";
static char __pyx_k_expected_time_to_be_float_int_or[] = "expected time to be float, int, or Timespec, not {}";
static char __pyx_k_expected_value_to_be_of_type_str[] = "expected value to be of type str, bytes, or ByteBuffer, not {}";
static char __pyx_k_operation_receive_close_on_serve[] = "operation_receive_close_on_server";
static char __pyx_k_operation_receive_initial_metada[] = "operation_receive_initial_metadata";
static char __pyx_k_operation_receive_status_on_clie[] = "operation_receive_status_on_client";
static char __pyx_k_operation_send_close_from_client[] = "operation_send_close_from_client";
static char __pyx_k_operation_send_status_from_serve[] = "operation_send_status_from_server";
static char __pyx_k_self_must_be_an_operation_receiv[] = "self must be an operation receiving a message";
static char __pyx_k_expected_value_to_be_of_type_str_2[] = "expected value to be of type str or bytes or int";
static char __pyx_k_expected_value_to_be_of_type_str_3[] = "expected value to be of type str or bytes";
static char __pyx_k_self_must_be_an_operation_receiv_2[] = "self must be an operation receiving metadata";
static char __pyx_k_self_must_be_an_operation_receiv_3[] = "self must be an operation receiving a status code";
static char __pyx_k_self_must_be_an_operation_receiv_4[] = "self must be an operation receiving status details";
static char __pyx_k_self_must_be_an_operation_receiv_5[] = "self must be an operation receiving cancellation information";
static PyObject *__pyx_kp_b_;
static PyObject *__pyx_n_s_CallError;
static PyObject *__pyx_n_s_ChannelArgKey;
static PyObject *__pyx_n_s_CompletionType;
static PyObject *__pyx_n_s_ConnectivityState;
static PyObject *__pyx_n_s_IndexError;
static PyObject *__pyx_n_s_OperationType;
static PyObject *__pyx_n_s_StatusCode;
static PyObject *__pyx_n_s_StopIteration;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_n_s_WriteFlag;
static PyObject *__pyx_n_s_aborted;
static PyObject *__pyx_n_s_already_accepted;
static PyObject *__pyx_n_s_already_exists;
static PyObject *__pyx_n_s_already_finished;
static PyObject *__pyx_n_s_already_invoked;
static PyObject *__pyx_n_s_append;
static PyObject *__pyx_n_s_args;
static PyObject *__pyx_n_s_batch_operations;
static PyObject *__pyx_n_s_buffer_hint;
static PyObject *__pyx_n_s_byte_buffer;
static PyObject *__pyx_n_s_bytes;
static PyObject *__pyx_n_s_cancelled;
static PyObject *__pyx_n_s_certificate_chain;
static PyObject *__pyx_n_s_code;
static PyObject *__pyx_n_s_connecting;
static PyObject *__pyx_n_s_data;
static PyObject *__pyx_n_s_data_loss;
static PyObject *__pyx_n_s_deadline;
static PyObject *__pyx_n_s_deadline_exceeded;
static PyObject *__pyx_n_s_default_authority;
static PyObject *__pyx_n_s_details;
static PyObject *__pyx_n_s_doc;
static PyObject *__pyx_n_s_enable_census;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_error;
static PyObject *__pyx_kp_s_expected_a_str_or_bytes_object_f;
static PyObject *__pyx_kp_s_expected_certificate_chain_to_be;
static PyObject *__pyx_kp_s_expected_key_to_be_of_type_str_o;
static PyObject *__pyx_kp_s_expected_list_of_ChannelArg;
static PyObject *__pyx_kp_s_expected_list_of_Metadatum;
static PyObject *__pyx_kp_s_expected_operations_to_be_iterab;
static PyObject *__pyx_kp_s_expected_private_key_to_be_of_ty;
static PyObject *__pyx_kp_s_expected_time_to_be_float_int_or;
static PyObject *__pyx_kp_s_expected_value_to_be_of_type_str;
static PyObject *__pyx_kp_s_expected_value_to_be_of_type_str_2;
static PyObject *__pyx_kp_s_expected_value_to_be_of_type_str_3;
static PyObject *__pyx_n_s_failed_precondition;
static PyObject *__pyx_n_s_fatal_failure;
static PyObject *__pyx_n_s_format;
static PyObject *__pyx_n_s_grpc__cython__cygrpc_records;
static PyObject *__pyx_n_s_has_status;
static PyObject *__pyx_n_s_host;
static PyObject *__pyx_n_s_http2_initial_sequence_number;
static PyObject *__pyx_n_s_idle;
static PyObject *__pyx_kp_s_index_must_be_0_key_or_1_value;
static PyObject *__pyx_kp_s_inf;
static PyObject *__pyx_kp_s_inf_2;
static PyObject *__pyx_n_s_infinite_future;
static PyObject *__pyx_n_s_infinite_past;
static PyObject *__pyx_n_s_internal;
static PyObject *__pyx_n_s_invalid_argument;
static PyObject *__pyx_n_s_invalid_flags;
static PyObject *__pyx_n_s_invalid_metadata;
static PyObject *__pyx_n_s_is_new_request;
static PyObject *__pyx_n_s_key;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_max_concurrent_streams;
static PyObject *__pyx_n_s_max_message_length;
static PyObject *__pyx_n_s_metaclass;
static PyObject *__pyx_n_s_metadata;
static PyObject *__pyx_n_s_method;
static PyObject *__pyx_n_s_module;
static PyObject *__pyx_n_s_nanoseconds;
static PyObject *__pyx_n_s_no_compress;
static PyObject *__pyx_n_s_not_found;
static PyObject *__pyx_n_s_not_invoked;
static PyObject *__pyx_n_s_not_on_client;
static PyObject *__pyx_n_s_not_on_server;
static PyObject *__pyx_n_s_ok;
static PyObject *__pyx_n_s_op;
static PyObject *__pyx_n_s_operation_call;
static PyObject *__pyx_n_s_operation_complete;
static PyObject *__pyx_n_s_operation_receive_close_on_serve;
static PyObject *__pyx_n_s_operation_receive_initial_metada;
static PyObject *__pyx_n_s_operation_receive_message;
static PyObject *__pyx_n_s_operation_receive_status_on_clie;
static PyObject *__pyx_n_s_operation_send_close_from_client;
static PyObject *__pyx_n_s_operation_send_initial_metadata;
static PyObject *__pyx_n_s_operation_send_message;
static PyObject *__pyx_n_s_operation_send_status_from_serve;
static PyObject *__pyx_n_s_operations;
static PyObject *__pyx_n_s_out_of_range;
static PyObject *__pyx_n_s_permission_denied;
static PyObject *__pyx_n_s_prepare;
static PyObject *__pyx_n_s_primary_user_agent_string;
static PyObject *__pyx_n_s_private_key;
static PyObject *__pyx_n_s_property;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_qualname;
static PyObject *__pyx_n_s_queue_shutdown;
static PyObject *__pyx_n_s_queue_timeout;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_ready;
static PyObject *__pyx_n_s_receive_close_on_server;
static PyObject *__pyx_n_s_receive_initial_metadata;
static PyObject *__pyx_n_s_receive_message;
static PyObject *__pyx_n_s_receive_status_on_client;
static PyObject *__pyx_n_s_received_cancelled;
static PyObject *__pyx_n_s_received_cancelled_or_none;
static PyObject *__pyx_n_s_received_message;
static PyObject *__pyx_n_s_received_message_or_none;
static PyObject *__pyx_n_s_received_metadata;
static PyObject *__pyx_n_s_received_metadata_or_none;
static PyObject *__pyx_n_s_received_status_code;
static PyObject *__pyx_n_s_received_status_code_or_none;
static PyObject *__pyx_n_s_received_status_details;
static PyObject *__pyx_n_s_received_status_details_or_none;
static PyObject *__pyx_n_s_request_call_details;
static PyObject *__pyx_n_s_request_metadata;
static PyObject *__pyx_n_s_resource_exhausted;
static PyObject *__pyx_n_s_secondary_user_agent_string;
static PyObject *__pyx_n_s_seconds;
static PyObject *__pyx_kp_s_self_must_be_an_operation_receiv;
static PyObject *__pyx_kp_s_self_must_be_an_operation_receiv_2;
static PyObject *__pyx_kp_s_self_must_be_an_operation_receiv_3;
static PyObject *__pyx_kp_s_self_must_be_an_operation_receiv_4;
static PyObject *__pyx_kp_s_self_must_be_an_operation_receiv_5;
static PyObject *__pyx_n_s_send_close_from_client;
static PyObject *__pyx_n_s_send_initial_metadata;
static PyObject *__pyx_n_s_send_message;
static PyObject *__pyx_n_s_send_status_from_server;
static PyObject *__pyx_n_s_ssl_target_name_override;
static PyObject *__pyx_n_s_success;
static PyObject *__pyx_n_s_tag;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_time;
static PyObject *__pyx_n_s_too_many_operations;
static PyObject *__pyx_n_s_transient_failure;
static PyObject *__pyx_n_s_type;
static PyObject *__pyx_n_s_unauthenticated;
static PyObject *__pyx_n_s_unavailable;
static PyObject *__pyx_n_s_unimplemented;
static PyObject *__pyx_n_s_unknown;
static PyObject *__pyx_n_s_user_tag;
static PyObject *__pyx_kp_s_usr_local_google_home_atash_src;
static PyObject *__pyx_n_s_value;
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self, PyObject *__pyx_v_time); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_2seconds(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_4nanoseconds(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_6__float__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self); /* proto */
static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_2__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_4method(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_6host(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_8deadline(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_12OperationTag___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *__pyx_v_self, PyObject *__pyx_v_user_tag); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self, grpc_completion_type __pyx_v_type, int __pyx_v_success, PyObject *__pyx_v_tag, struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *__pyx_v_operation_call, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_request_call_details, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_request_metadata, int __pyx_v_is_new_request, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_batch_operations); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_4type___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_7success___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_3tag___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_14operation_call___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_14is_new_request___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_20request_call_details___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_16request_metadata___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_16batch_operations___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_2bytes(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_4__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_6__str__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self); /* proto */
static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_8__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *__pyx_v_self, PyObject *__pyx_v_private_key, PyObject *__pyx_v_certificate_chain); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_11private_key___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_17certificate_chain___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_3key___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_5value___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_2__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_4__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_6__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self, size_t __pyx_v_i); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_2key(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_4value(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_6__len__(CYTHON_UNUSED struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_8__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self, size_t __pyx_v_i); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_10__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *__pyx_v_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_2__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_4__next__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self, PyObject *__pyx_v_metadata); /* proto */
static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_2__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_4__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_6__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self, size_t __pyx_v_i); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_8__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_2type(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_4has_status(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_6received_message(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_8received_message_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_10received_metadata(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_12received_metadata_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_14received_status_code(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_16received_status_code_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_18received_status_details(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_20received_status_details_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_22received_cancelled(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_24received_cancelled_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_26__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_8is_valid___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_operation_send_initial_metadata(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_2operation_send_message(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_4operation_send_close_from_client(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_6operation_send_status_from_server(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata, grpc_status_code __pyx_v_code, PyObject *__pyx_v_details); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8operation_receive_initial_metadata(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10operation_receive_message(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_12operation_receive_status_on_client(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_14operation_receive_close_on_server(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *__pyx_v_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_operations); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_2__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_4__next__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *__pyx_v_self); /* proto */
static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self, PyObject *__pyx_v_operations); /* proto */
static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_2__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_4__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self, size_t __pyx_v_i); /* proto */
static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_6__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_8__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self); /* proto */
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Timespec(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_CallDetails(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_OperationTag(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Event(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ByteBuffer(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ChannelArg(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ChannelArgs(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Metadatum(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Metadata(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Operation(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Operations(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records__MetadataIterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records__OperationsIterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_float_1e9;
static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__3;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__7;
static PyObject *__pyx_tuple__8;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__10;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__14;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_tuple__33;
static PyObject *__pyx_codeobj__20;
static PyObject *__pyx_codeobj__22;
static PyObject *__pyx_codeobj__24;
static PyObject *__pyx_codeobj__26;
static PyObject *__pyx_codeobj__28;
static PyObject *__pyx_codeobj__30;
static PyObject *__pyx_codeobj__32;
static PyObject *__pyx_codeobj__34;

/* "grpc/_cython/_cygrpc/records.pyx":112
 * cdef class Timespec:
 * 
 *   def __cinit__(self, time):             # <<<<<<<<<<<<<<
 *     if time is None:
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_time = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_time,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_time)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_time = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Timespec.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *)__pyx_v_self), __pyx_v_time);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self, PyObject *__pyx_v_time) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  double __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  gpr_int64 __pyx_t_6;
  gpr_int32 __pyx_t_7;
  gpr_timespec __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);
  __Pyx_INCREF(__pyx_v_time);

  /* "grpc/_cython/_cygrpc/records.pyx":113
 * 
 *   def __cinit__(self, time):
 *     if time is None:             # <<<<<<<<<<<<<<
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)
 *       return
 */
  __pyx_t_1 = (__pyx_v_time == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":114
 *   def __cinit__(self, time):
 *     if time is None:
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)             # <<<<<<<<<<<<<<
 *       return
 *     if isinstance(time, int):
 */
    __pyx_v_self->c_time = gpr_now(GPR_CLOCK_REALTIME);

    /* "grpc/_cython/_cygrpc/records.pyx":115
 *     if time is None:
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)
 *       return             # <<<<<<<<<<<<<<
 *     if isinstance(time, int):
 *       time = float(time)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":113
 * 
 *   def __cinit__(self, time):
 *     if time is None:             # <<<<<<<<<<<<<<
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)
 *       return
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":116
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)
 *       return
 *     if isinstance(time, int):             # <<<<<<<<<<<<<<
 *       time = float(time)
 *     if isinstance(time, float):
 */
  __pyx_t_2 = PyInt_Check(__pyx_v_time); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":117
 *       return
 *     if isinstance(time, int):
 *       time = float(time)             # <<<<<<<<<<<<<<
 *     if isinstance(time, float):
 *       if time == float("+inf"):
 */
    __pyx_t_3 = __Pyx_PyObject_AsDouble(__pyx_v_time); if (unlikely(__pyx_t_3 == ((double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_4 = PyFloat_FromDouble(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_time, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":116
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)
 *       return
 *     if isinstance(time, int):             # <<<<<<<<<<<<<<
 *       time = float(time)
 *     if isinstance(time, float):
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":118
 *     if isinstance(time, int):
 *       time = float(time)
 *     if isinstance(time, float):             # <<<<<<<<<<<<<<
 *       if time == float("+inf"):
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)
 */
  __pyx_t_1 = PyFloat_Check(__pyx_v_time); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":119
 *       time = float(time)
 *     if isinstance(time, float):
 *       if time == float("+inf"):             # <<<<<<<<<<<<<<
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)
 *       elif time == float("-inf"):
 */
    __pyx_t_3 = __Pyx_PyObject_AsDouble(__pyx_kp_s_inf); if (unlikely(__pyx_t_3 == ((double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_4 = PyFloat_FromDouble(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_time, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_2) {

      /* "grpc/_cython/_cygrpc/records.pyx":120
 *     if isinstance(time, float):
 *       if time == float("+inf"):
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)             # <<<<<<<<<<<<<<
 *       elif time == float("-inf"):
 *         self.c_time = grpc.gpr_inf_past(grpc.GPR_CLOCK_REALTIME)
 */
      __pyx_v_self->c_time = gpr_inf_future(GPR_CLOCK_REALTIME);

      /* "grpc/_cython/_cygrpc/records.pyx":119
 *       time = float(time)
 *     if isinstance(time, float):
 *       if time == float("+inf"):             # <<<<<<<<<<<<<<
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)
 *       elif time == float("-inf"):
 */
      goto __pyx_L6;
    }

    /* "grpc/_cython/_cygrpc/records.pyx":121
 *       if time == float("+inf"):
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)
 *       elif time == float("-inf"):             # <<<<<<<<<<<<<<
 *         self.c_time = grpc.gpr_inf_past(grpc.GPR_CLOCK_REALTIME)
 *       else:
 */
    __pyx_t_3 = __Pyx_PyObject_AsDouble(__pyx_kp_s_inf_2); if (unlikely(__pyx_t_3 == ((double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_5 = PyFloat_FromDouble(__pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyObject_RichCompare(__pyx_v_time, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (__pyx_t_2) {

      /* "grpc/_cython/_cygrpc/records.pyx":122
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)
 *       elif time == float("-inf"):
 *         self.c_time = grpc.gpr_inf_past(grpc.GPR_CLOCK_REALTIME)             # <<<<<<<<<<<<<<
 *       else:
 *         self.c_time.seconds = time
 */
      __pyx_v_self->c_time = gpr_inf_past(GPR_CLOCK_REALTIME);

      /* "grpc/_cython/_cygrpc/records.pyx":121
 *       if time == float("+inf"):
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)
 *       elif time == float("-inf"):             # <<<<<<<<<<<<<<
 *         self.c_time = grpc.gpr_inf_past(grpc.GPR_CLOCK_REALTIME)
 *       else:
 */
      goto __pyx_L6;
    }

    /* "grpc/_cython/_cygrpc/records.pyx":124
 *         self.c_time = grpc.gpr_inf_past(grpc.GPR_CLOCK_REALTIME)
 *       else:
 *         self.c_time.seconds = time             # <<<<<<<<<<<<<<
 *         self.c_time.nanoseconds = (time - float(self.c_time.seconds)) * 1e9
 *         self.c_time.clock_type = grpc.GPR_CLOCK_REALTIME
 */
    /*else*/ {
      __pyx_t_6 = __Pyx_PyInt_As_gpr_int64(__pyx_v_time); if (unlikely((__pyx_t_6 == (gpr_int64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __pyx_v_self->c_time.tv_sec = __pyx_t_6;

      /* "grpc/_cython/_cygrpc/records.pyx":125
 *       else:
 *         self.c_time.seconds = time
 *         self.c_time.nanoseconds = (time - float(self.c_time.seconds)) * 1e9             # <<<<<<<<<<<<<<
 *         self.c_time.clock_type = grpc.GPR_CLOCK_REALTIME
 *     elif isinstance(time, Timespec):
 */
      __pyx_t_4 = PyFloat_FromDouble(((double)__pyx_v_self->c_time.tv_sec)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PyNumber_Subtract(__pyx_v_time, __pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyNumber_Multiply(__pyx_t_5, __pyx_float_1e9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = __Pyx_PyInt_As_gpr_int32(__pyx_t_4); if (unlikely((__pyx_t_7 == (gpr_int32)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_v_self->c_time.tv_nsec = __pyx_t_7;

      /* "grpc/_cython/_cygrpc/records.pyx":126
 *         self.c_time.seconds = time
 *         self.c_time.nanoseconds = (time - float(self.c_time.seconds)) * 1e9
 *         self.c_time.clock_type = grpc.GPR_CLOCK_REALTIME             # <<<<<<<<<<<<<<
 *     elif isinstance(time, Timespec):
 *       self.c_time = (<Timespec>time).c_time
 */
      __pyx_v_self->c_time.clock_type = GPR_CLOCK_REALTIME;
    }
    __pyx_L6:;

    /* "grpc/_cython/_cygrpc/records.pyx":118
 *     if isinstance(time, int):
 *       time = float(time)
 *     if isinstance(time, float):             # <<<<<<<<<<<<<<
 *       if time == float("+inf"):
 *         self.c_time = grpc.gpr_inf_future(grpc.GPR_CLOCK_REALTIME)
 */
    goto __pyx_L5;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":127
 *         self.c_time.nanoseconds = (time - float(self.c_time.seconds)) * 1e9
 *         self.c_time.clock_type = grpc.GPR_CLOCK_REALTIME
 *     elif isinstance(time, Timespec):             # <<<<<<<<<<<<<<
 *       self.c_time = (<Timespec>time).c_time
 *     else:
 */
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_time, __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":128
 *         self.c_time.clock_type = grpc.GPR_CLOCK_REALTIME
 *     elif isinstance(time, Timespec):
 *       self.c_time = (<Timespec>time).c_time             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected time to be float, int, or Timespec, not {}"
 */
    __pyx_t_8 = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *)__pyx_v_time)->c_time;
    __pyx_v_self->c_time = __pyx_t_8;

    /* "grpc/_cython/_cygrpc/records.pyx":127
 *         self.c_time.nanoseconds = (time - float(self.c_time.seconds)) * 1e9
 *         self.c_time.clock_type = grpc.GPR_CLOCK_REALTIME
 *     elif isinstance(time, Timespec):             # <<<<<<<<<<<<<<
 *       self.c_time = (<Timespec>time).c_time
 *     else:
 */
    goto __pyx_L5;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":130
 *       self.c_time = (<Timespec>time).c_time
 *     else:
 *       raise TypeError("expected time to be float, int, or Timespec, not {}"             # <<<<<<<<<<<<<<
 *                           .format(type(time)))
 * 
 */
  /*else*/ {

    /* "grpc/_cython/_cygrpc/records.pyx":131
 *     else:
 *       raise TypeError("expected time to be float, int, or Timespec, not {}"
 *                           .format(type(time)))             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_expected_time_to_be_float_int_or, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_9 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    if (!__pyx_t_9) {
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, ((PyObject *)Py_TYPE(__pyx_v_time))); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
    } else {
      __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL;
      __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_time)));
      __Pyx_GIVEREF(((PyObject *)Py_TYPE(__pyx_v_time)));
      PyTuple_SET_ITEM(__pyx_t_10, 0+1, ((PyObject *)Py_TYPE(__pyx_v_time)));
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":130
 *       self.c_time = (<Timespec>time).c_time
 *     else:
 *       raise TypeError("expected time to be float, int, or Timespec, not {}"             # <<<<<<<<<<<<<<
 *                           .format(type(time)))
 * 
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L5:;

  /* "grpc/_cython/_cygrpc/records.pyx":112
 * cdef class Timespec:
 * 
 *   def __cinit__(self, time):             # <<<<<<<<<<<<<<
 *     if time is None:
 *       self.c_time = grpc.gpr_now(grpc.GPR_CLOCK_REALTIME)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Timespec.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_time);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":134
 * 
 *   @property
 *   def seconds(self):             # <<<<<<<<<<<<<<
 *     # TODO(atash) ensure that everywhere a Timespec is created that it's
 *     # converted to GPR_CLOCK_REALTIME then and not every time someone wants to
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_3seconds(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_3seconds(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("seconds (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_2seconds(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_2seconds(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self) {
  gpr_timespec __pyx_v_real_time;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("seconds", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":139
 *     # read values off in Python.
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))             # <<<<<<<<<<<<<<
 *     return real_time.seconds
 * 
 */
  __pyx_v_real_time = gpr_convert_clock_type(__pyx_v_self->c_time, GPR_CLOCK_REALTIME);

  /* "grpc/_cython/_cygrpc/records.pyx":140
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 *     return real_time.seconds             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_gpr_int64(__pyx_v_real_time.tv_sec); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":134
 * 
 *   @property
 *   def seconds(self):             # <<<<<<<<<<<<<<
 *     # TODO(atash) ensure that everywhere a Timespec is created that it's
 *     # converted to GPR_CLOCK_REALTIME then and not every time someone wants to
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Timespec.seconds", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":143
 * 
 *   @property
 *   def nanoseconds(self):             # <<<<<<<<<<<<<<
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_5nanoseconds(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_5nanoseconds(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("nanoseconds (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_4nanoseconds(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_4nanoseconds(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self) {
  gpr_timespec __pyx_v_real_time;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("nanoseconds", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":145
 *   def nanoseconds(self):
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))             # <<<<<<<<<<<<<<
 *     return real_time.nanoseconds
 * 
 */
  __pyx_v_real_time = gpr_convert_clock_type(__pyx_v_self->c_time, GPR_CLOCK_REALTIME);

  /* "grpc/_cython/_cygrpc/records.pyx":146
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 *     return real_time.nanoseconds             # <<<<<<<<<<<<<<
 * 
 *   def __float__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_gpr_int32(__pyx_v_real_time.tv_nsec); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":143
 * 
 *   @property
 *   def nanoseconds(self):             # <<<<<<<<<<<<<<
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Timespec.nanoseconds", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":148
 *     return real_time.nanoseconds
 * 
 *   def __float__(self):             # <<<<<<<<<<<<<<
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_7__float__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_7__float__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__float__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_6__float__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Timespec_6__float__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_self) {
  gpr_timespec __pyx_v_real_time;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__float__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":150
 *   def __float__(self):
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))             # <<<<<<<<<<<<<<
 *     return <double>real_time.seconds + <double>real_time.nanoseconds / 1e9
 * 
 */
  __pyx_v_real_time = gpr_convert_clock_type(__pyx_v_self->c_time, GPR_CLOCK_REALTIME);

  /* "grpc/_cython/_cygrpc/records.pyx":151
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 *     return <double>real_time.seconds + <double>real_time.nanoseconds / 1e9             # <<<<<<<<<<<<<<
 * 
 *   infinite_future = Timespec(float("+inf"))
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble((((double)__pyx_v_real_time.tv_sec) + (((double)__pyx_v_real_time.tv_nsec) / 1e9))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":148
 *     return real_time.nanoseconds
 * 
 *   def __float__(self):             # <<<<<<<<<<<<<<
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Timespec.__float__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":159
 * cdef class CallDetails:
 * 
 *   def __cinit__(self):             # <<<<<<<<<<<<<<
 *     grpc.grpc_call_details_init(&self.c_details)
 * 
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":160
 * 
 *   def __cinit__(self):
 *     grpc.grpc_call_details_init(&self.c_details)             # <<<<<<<<<<<<<<
 * 
 *   def __dealloc__(self):
 */
  grpc_call_details_init((&__pyx_v_self->c_details));

  /* "grpc/_cython/_cygrpc/records.pyx":159
 * cdef class CallDetails:
 * 
 *   def __cinit__(self):             # <<<<<<<<<<<<<<
 *     grpc.grpc_call_details_init(&self.c_details)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":162
 *     grpc.grpc_call_details_init(&self.c_details)
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     grpc.grpc_call_details_destroy(&self.c_details)
 * 
 */

/* Python wrapper */
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_2__dealloc__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_2__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":163
 * 
 *   def __dealloc__(self):
 *     grpc.grpc_call_details_destroy(&self.c_details)             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  grpc_call_details_destroy((&__pyx_v_self->c_details));

  /* "grpc/_cython/_cygrpc/records.pyx":162
 *     grpc.grpc_call_details_init(&self.c_details)
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     grpc.grpc_call_details_destroy(&self.c_details)
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "grpc/_cython/_cygrpc/records.pyx":166
 * 
 *   @property
 *   def method(self):             # <<<<<<<<<<<<<<
 *     if self.c_details.method != NULL:
 *       return <bytes>self.c_details.method
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_5method(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_5method(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("method (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_4method(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_4method(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("method", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":167
 *   @property
 *   def method(self):
 *     if self.c_details.method != NULL:             # <<<<<<<<<<<<<<
 *       return <bytes>self.c_details.method
 *     else:
 */
  __pyx_t_1 = ((__pyx_v_self->c_details.method != NULL) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":168
 *   def method(self):
 *     if self.c_details.method != NULL:
 *       return <bytes>self.c_details.method             # <<<<<<<<<<<<<<
 *     else:
 *       return None
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->c_details.method); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject*)__pyx_t_2));
    __pyx_r = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":167
 *   @property
 *   def method(self):
 *     if self.c_details.method != NULL:             # <<<<<<<<<<<<<<
 *       return <bytes>self.c_details.method
 *     else:
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":170
 *       return <bytes>self.c_details.method
 *     else:
 *       return None             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":166
 * 
 *   @property
 *   def method(self):             # <<<<<<<<<<<<<<
 *     if self.c_details.method != NULL:
 *       return <bytes>self.c_details.method
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.CallDetails.method", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":173
 * 
 *   @property
 *   def host(self):             # <<<<<<<<<<<<<<
 *     if self.c_details.host != NULL:
 *       return <bytes>self.c_details.host
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_7host(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_7host(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("host (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_6host(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_6host(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("host", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":174
 *   @property
 *   def host(self):
 *     if self.c_details.host != NULL:             # <<<<<<<<<<<<<<
 *       return <bytes>self.c_details.host
 *     else:
 */
  __pyx_t_1 = ((__pyx_v_self->c_details.host != NULL) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":175
 *   def host(self):
 *     if self.c_details.host != NULL:
 *       return <bytes>self.c_details.host             # <<<<<<<<<<<<<<
 *     else:
 *       return None
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->c_details.host); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject*)__pyx_t_2));
    __pyx_r = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":174
 *   @property
 *   def host(self):
 *     if self.c_details.host != NULL:             # <<<<<<<<<<<<<<
 *       return <bytes>self.c_details.host
 *     else:
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":177
 *       return <bytes>self.c_details.host
 *     else:
 *       return None             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":173
 * 
 *   @property
 *   def host(self):             # <<<<<<<<<<<<<<
 *     if self.c_details.host != NULL:
 *       return <bytes>self.c_details.host
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.CallDetails.host", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":180
 * 
 *   @property
 *   def deadline(self):             # <<<<<<<<<<<<<<
 *     timespec = Timespec(float("-inf"))
 *     timespec.c_time = self.c_details.deadline
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_9deadline(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_9deadline(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("deadline (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_8deadline(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11CallDetails_8deadline(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_self) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *__pyx_v_timespec = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  gpr_timespec __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("deadline", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":181
 *   @property
 *   def deadline(self):
 *     timespec = Timespec(float("-inf"))             # <<<<<<<<<<<<<<
 *     timespec.c_time = self.c_details.deadline
 *     return timespec
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_kp_s_inf_2); if (unlikely(__pyx_t_1 == ((double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_2 = PyFloat_FromDouble(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_timespec = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":182
 *   def deadline(self):
 *     timespec = Timespec(float("-inf"))
 *     timespec.c_time = self.c_details.deadline             # <<<<<<<<<<<<<<
 *     return timespec
 * 
 */
  __pyx_t_4 = __pyx_v_self->c_details.deadline;
  __pyx_v_timespec->c_time = __pyx_t_4;

  /* "grpc/_cython/_cygrpc/records.pyx":183
 *     timespec = Timespec(float("-inf"))
 *     timespec.c_time = self.c_details.deadline
 *     return timespec             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_timespec));
  __pyx_r = ((PyObject *)__pyx_v_timespec);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":180
 * 
 *   @property
 *   def deadline(self):             # <<<<<<<<<<<<<<
 *     timespec = Timespec(float("-inf"))
 *     timespec.c_time = self.c_details.deadline
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.CallDetails.deadline", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_timespec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":188
 * cdef class OperationTag:
 * 
 *   def __cinit__(self, user_tag):             # <<<<<<<<<<<<<<
 *     self.user_tag = user_tag
 *     self.references = []
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_12OperationTag_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_12OperationTag_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_user_tag = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_user_tag,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_user_tag)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_user_tag = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.OperationTag.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_12OperationTag___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *)__pyx_v_self), __pyx_v_user_tag);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_12OperationTag___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *__pyx_v_self, PyObject *__pyx_v_user_tag) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":189
 * 
 *   def __cinit__(self, user_tag):
 *     self.user_tag = user_tag             # <<<<<<<<<<<<<<
 *     self.references = []
 * 
 */
  __Pyx_INCREF(__pyx_v_user_tag);
  __Pyx_GIVEREF(__pyx_v_user_tag);
  __Pyx_GOTREF(__pyx_v_self->user_tag);
  __Pyx_DECREF(__pyx_v_self->user_tag);
  __pyx_v_self->user_tag = __pyx_v_user_tag;

  /* "grpc/_cython/_cygrpc/records.pyx":190
 *   def __cinit__(self, user_tag):
 *     self.user_tag = user_tag
 *     self.references = []             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->references);
  __Pyx_DECREF(__pyx_v_self->references);
  __pyx_v_self->references = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":188
 * cdef class OperationTag:
 * 
 *   def __cinit__(self, user_tag):             # <<<<<<<<<<<<<<
 *     self.user_tag = user_tag
 *     self.references = []
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.OperationTag.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":195
 * cdef class Event:
 * 
 *   def __cinit__(self, grpc.grpc_completion_type type, bint success,             # <<<<<<<<<<<<<<
 *                 object tag, call.Call operation_call,
 *                 CallDetails request_call_details,
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  grpc_completion_type __pyx_v_type;
  int __pyx_v_success;
  PyObject *__pyx_v_tag = 0;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *__pyx_v_operation_call = 0;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_request_call_details = 0;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_request_metadata = 0;
  int __pyx_v_is_new_request;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_batch_operations = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_success,&__pyx_n_s_tag,&__pyx_n_s_operation_call,&__pyx_n_s_request_call_details,&__pyx_n_s_request_metadata,&__pyx_n_s_is_new_request,&__pyx_n_s_batch_operations,0};
    PyObject* values[8] = {0,0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_success)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_tag)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operation_call)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  4:
        if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_request_call_details)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, 4); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  5:
        if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_request_metadata)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, 5); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  6:
        if (likely((values[6] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_is_new_request)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, 6); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  7:
        if (likely((values[7] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_batch_operations)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, 7); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
      values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
    }
    __pyx_v_type = ((grpc_completion_type)__Pyx_PyInt_As_grpc_completion_type(values[0])); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_success = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_success == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_tag = values[2];
    __pyx_v_operation_call = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *)values[3]);
    __pyx_v_request_call_details = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)values[4]);
    __pyx_v_request_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)values[5]);
    __pyx_v_is_new_request = __Pyx_PyObject_IsTrue(values[6]); if (unlikely((__pyx_v_is_new_request == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_batch_operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)values[7]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Event.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_operation_call), __pyx_ptype_4grpc_7_cython_7_cygrpc_4call_Call, 1, "operation_call", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_request_call_details), __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails, 1, "request_call_details", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_request_metadata), __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata, 1, "request_metadata", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_batch_operations), __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operations, 1, "batch_operations", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self), __pyx_v_type, __pyx_v_success, __pyx_v_tag, __pyx_v_operation_call, __pyx_v_request_call_details, __pyx_v_request_metadata, __pyx_v_is_new_request, __pyx_v_batch_operations);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self, grpc_completion_type __pyx_v_type, int __pyx_v_success, PyObject *__pyx_v_tag, struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *__pyx_v_operation_call, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *__pyx_v_request_call_details, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_request_metadata, int __pyx_v_is_new_request, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_batch_operations) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":201
 *                 bint is_new_request,
 *                 Operations batch_operations):
 *     self.type = type             # <<<<<<<<<<<<<<
 *     self.success = success
 *     self.tag = tag
 */
  __pyx_v_self->type = __pyx_v_type;

  /* "grpc/_cython/_cygrpc/records.pyx":202
 *                 Operations batch_operations):
 *     self.type = type
 *     self.success = success             # <<<<<<<<<<<<<<
 *     self.tag = tag
 *     self.operation_call = operation_call
 */
  __pyx_v_self->success = __pyx_v_success;

  /* "grpc/_cython/_cygrpc/records.pyx":203
 *     self.type = type
 *     self.success = success
 *     self.tag = tag             # <<<<<<<<<<<<<<
 *     self.operation_call = operation_call
 *     self.request_call_details = request_call_details
 */
  __Pyx_INCREF(__pyx_v_tag);
  __Pyx_GIVEREF(__pyx_v_tag);
  __Pyx_GOTREF(__pyx_v_self->tag);
  __Pyx_DECREF(__pyx_v_self->tag);
  __pyx_v_self->tag = __pyx_v_tag;

  /* "grpc/_cython/_cygrpc/records.pyx":204
 *     self.success = success
 *     self.tag = tag
 *     self.operation_call = operation_call             # <<<<<<<<<<<<<<
 *     self.request_call_details = request_call_details
 *     self.request_metadata = request_metadata
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_operation_call));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_operation_call));
  __Pyx_GOTREF(__pyx_v_self->operation_call);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->operation_call));
  __pyx_v_self->operation_call = __pyx_v_operation_call;

  /* "grpc/_cython/_cygrpc/records.pyx":205
 *     self.tag = tag
 *     self.operation_call = operation_call
 *     self.request_call_details = request_call_details             # <<<<<<<<<<<<<<
 *     self.request_metadata = request_metadata
 *     self.batch_operations = batch_operations
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_request_call_details));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_request_call_details));
  __Pyx_GOTREF(__pyx_v_self->request_call_details);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->request_call_details));
  __pyx_v_self->request_call_details = __pyx_v_request_call_details;

  /* "grpc/_cython/_cygrpc/records.pyx":206
 *     self.operation_call = operation_call
 *     self.request_call_details = request_call_details
 *     self.request_metadata = request_metadata             # <<<<<<<<<<<<<<
 *     self.batch_operations = batch_operations
 *     self.is_new_request = is_new_request
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_request_metadata));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_request_metadata));
  __Pyx_GOTREF(__pyx_v_self->request_metadata);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->request_metadata));
  __pyx_v_self->request_metadata = __pyx_v_request_metadata;

  /* "grpc/_cython/_cygrpc/records.pyx":207
 *     self.request_call_details = request_call_details
 *     self.request_metadata = request_metadata
 *     self.batch_operations = batch_operations             # <<<<<<<<<<<<<<
 *     self.is_new_request = is_new_request
 * 
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_batch_operations));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_batch_operations));
  __Pyx_GOTREF(__pyx_v_self->batch_operations);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->batch_operations));
  __pyx_v_self->batch_operations = __pyx_v_batch_operations;

  /* "grpc/_cython/_cygrpc/records.pyx":208
 *     self.request_metadata = request_metadata
 *     self.batch_operations = batch_operations
 *     self.is_new_request = is_new_request             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->is_new_request = __pyx_v_is_new_request;

  /* "grpc/_cython/_cygrpc/records.pyx":195
 * cdef class Event:
 * 
 *   def __cinit__(self, grpc.grpc_completion_type type, bint success,             # <<<<<<<<<<<<<<
 *                 object tag, call.Call operation_call,
 *                 CallDetails request_call_details,
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":61
 * cdef class Event:
 * 
 *   cdef readonly grpc.grpc_completion_type type             # <<<<<<<<<<<<<<
 *   cdef readonly bint success
 *   cdef readonly object tag
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_4type_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_4type___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_4type___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_grpc_completion_type(__pyx_v_self->type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Event.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":62
 * 
 *   cdef readonly grpc.grpc_completion_type type
 *   cdef readonly bint success             # <<<<<<<<<<<<<<
 *   cdef readonly object tag
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_7success_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_7success_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_7success___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_7success___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->success); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Event.success.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":63
 *   cdef readonly grpc.grpc_completion_type type
 *   cdef readonly bint success
 *   cdef readonly object tag             # <<<<<<<<<<<<<<
 * 
 *   # For operations with calls
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_3tag_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_3tag_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_3tag___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_3tag___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->tag);
  __pyx_r = __pyx_v_self->tag;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":66
 * 
 *   # For operations with calls
 *   cdef readonly call.Call operation_call             # <<<<<<<<<<<<<<
 * 
 *   # For Server.request_call
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_14operation_call_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_14operation_call_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_14operation_call___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_14operation_call___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->operation_call));
  __pyx_r = ((PyObject *)__pyx_v_self->operation_call);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":69
 * 
 *   # For Server.request_call
 *   cdef readonly bint is_new_request             # <<<<<<<<<<<<<<
 *   cdef readonly CallDetails request_call_details
 *   cdef readonly Metadata request_metadata
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_14is_new_request_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_14is_new_request_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_14is_new_request___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_14is_new_request___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->is_new_request); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Event.is_new_request.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":70
 *   # For Server.request_call
 *   cdef readonly bint is_new_request
 *   cdef readonly CallDetails request_call_details             # <<<<<<<<<<<<<<
 *   cdef readonly Metadata request_metadata
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_20request_call_details_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_20request_call_details_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_20request_call_details___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_20request_call_details___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->request_call_details));
  __pyx_r = ((PyObject *)__pyx_v_self->request_call_details);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":71
 *   cdef readonly bint is_new_request
 *   cdef readonly CallDetails request_call_details
 *   cdef readonly Metadata request_metadata             # <<<<<<<<<<<<<<
 * 
 *   # For Call.start_batch
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_16request_metadata_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_16request_metadata_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_16request_metadata___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_16request_metadata___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->request_metadata));
  __pyx_r = ((PyObject *)__pyx_v_self->request_metadata);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":74
 * 
 *   # For Call.start_batch
 *   cdef readonly Operations batch_operations             # <<<<<<<<<<<<<<
 * 
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_16batch_operations_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_16batch_operations_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_16batch_operations___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_5Event_16batch_operations___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->batch_operations));
  __pyx_r = ((PyObject *)__pyx_v_self->batch_operations);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":213
 * cdef class ByteBuffer:
 * 
 *   def __cinit__(self, data):             # <<<<<<<<<<<<<<
 *     if data is None:
 *       self.c_byte_buffer = NULL
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_data = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_data = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ByteBuffer.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)__pyx_v_self), __pyx_v_data);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self, PyObject *__pyx_v_data) {
  char *__pyx_v_c_data;
  gpr_slice __pyx_v_data_slice;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  char *__pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);
  __Pyx_INCREF(__pyx_v_data);

  /* "grpc/_cython/_cygrpc/records.pyx":214
 * 
 *   def __cinit__(self, data):
 *     if data is None:             # <<<<<<<<<<<<<<
 *       self.c_byte_buffer = NULL
 *       return
 */
  __pyx_t_1 = (__pyx_v_data == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":215
 *   def __cinit__(self, data):
 *     if data is None:
 *       self.c_byte_buffer = NULL             # <<<<<<<<<<<<<<
 *       return
 *     if isinstance(data, bytes):
 */
    __pyx_v_self->c_byte_buffer = NULL;

    /* "grpc/_cython/_cygrpc/records.pyx":216
 *     if data is None:
 *       self.c_byte_buffer = NULL
 *       return             # <<<<<<<<<<<<<<
 *     if isinstance(data, bytes):
 *       pass
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":214
 * 
 *   def __cinit__(self, data):
 *     if data is None:             # <<<<<<<<<<<<<<
 *       self.c_byte_buffer = NULL
 *       return
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":217
 *       self.c_byte_buffer = NULL
 *       return
 *     if isinstance(data, bytes):             # <<<<<<<<<<<<<<
 *       pass
 *     elif isinstance(data, basestring):
 */
  __pyx_t_2 = PyBytes_Check(__pyx_v_data); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":219
 *     if isinstance(data, bytes):
 *       pass
 *     elif isinstance(data, basestring):             # <<<<<<<<<<<<<<
 *       data = data.encode()
 *     elif isinstance(data, ByteBuffer):
 */
  __pyx_t_1 = __Pyx_PyBaseString_Check(__pyx_v_data); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":220
 *       pass
 *     elif isinstance(data, basestring):
 *       data = data.encode()             # <<<<<<<<<<<<<<
 *     elif isinstance(data, ByteBuffer):
 *       data = (<ByteBuffer>data).bytes()
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":219
 *     if isinstance(data, bytes):
 *       pass
 *     elif isinstance(data, basestring):             # <<<<<<<<<<<<<<
 *       data = data.encode()
 *     elif isinstance(data, ByteBuffer):
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":221
 *     elif isinstance(data, basestring):
 *       data = data.encode()
 *     elif isinstance(data, ByteBuffer):             # <<<<<<<<<<<<<<
 *       data = (<ByteBuffer>data).bytes()
 *       if data is None:
 */
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_data, __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ByteBuffer); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":222
 *       data = data.encode()
 *     elif isinstance(data, ByteBuffer):
 *       data = (<ByteBuffer>data).bytes()             # <<<<<<<<<<<<<<
 *       if data is None:
 *         self.c_byte_buffer = NULL
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_bytes); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":223
 *     elif isinstance(data, ByteBuffer):
 *       data = (<ByteBuffer>data).bytes()
 *       if data is None:             # <<<<<<<<<<<<<<
 *         self.c_byte_buffer = NULL
 *         return
 */
    __pyx_t_1 = (__pyx_v_data == Py_None);
    __pyx_t_2 = (__pyx_t_1 != 0);
    if (__pyx_t_2) {

      /* "grpc/_cython/_cygrpc/records.pyx":224
 *       data = (<ByteBuffer>data).bytes()
 *       if data is None:
 *         self.c_byte_buffer = NULL             # <<<<<<<<<<<<<<
 *         return
 *     else:
 */
      __pyx_v_self->c_byte_buffer = NULL;

      /* "grpc/_cython/_cygrpc/records.pyx":225
 *       if data is None:
 *         self.c_byte_buffer = NULL
 *         return             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected value to be of type str, bytes, or "
 */
      __pyx_r = 0;
      goto __pyx_L0;

      /* "grpc/_cython/_cygrpc/records.pyx":223
 *     elif isinstance(data, ByteBuffer):
 *       data = (<ByteBuffer>data).bytes()
 *       if data is None:             # <<<<<<<<<<<<<<
 *         self.c_byte_buffer = NULL
 *         return
 */
    }

    /* "grpc/_cython/_cygrpc/records.pyx":221
 *     elif isinstance(data, basestring):
 *       data = data.encode()
 *     elif isinstance(data, ByteBuffer):             # <<<<<<<<<<<<<<
 *       data = (<ByteBuffer>data).bytes()
 *       if data is None:
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":227
 *         return
 *     else:
 *       raise TypeError("expected value to be of type str, bytes, or "             # <<<<<<<<<<<<<<
 *                       "ByteBuffer, not {}".format(type(data)))
 * 
 */
  /*else*/ {

    /* "grpc/_cython/_cygrpc/records.pyx":228
 *     else:
 *       raise TypeError("expected value to be of type str, bytes, or "
 *                       "ByteBuffer, not {}".format(type(data)))             # <<<<<<<<<<<<<<
 * 
 *     cdef char *c_data = data
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_expected_value_to_be_of_type_str, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (!__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)Py_TYPE(__pyx_v_data))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
    } else {
      __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
      __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_data)));
      __Pyx_GIVEREF(((PyObject *)Py_TYPE(__pyx_v_data)));
      PyTuple_SET_ITEM(__pyx_t_6, 0+1, ((PyObject *)Py_TYPE(__pyx_v_data)));
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":227
 *         return
 *     else:
 *       raise TypeError("expected value to be of type str, bytes, or "             # <<<<<<<<<<<<<<
 *                       "ByteBuffer, not {}".format(type(data)))
 * 
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L4:;

  /* "grpc/_cython/_cygrpc/records.pyx":230
 *                       "ByteBuffer, not {}".format(type(data)))
 * 
 *     cdef char *c_data = data             # <<<<<<<<<<<<<<
 *     data_slice = grpc.gpr_slice_from_copied_buffer(c_data, len(data))
 *     self.c_byte_buffer = grpc.grpc_raw_byte_buffer_create(
 */
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_data); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_c_data = __pyx_t_7;

  /* "grpc/_cython/_cygrpc/records.pyx":231
 * 
 *     cdef char *c_data = data
 *     data_slice = grpc.gpr_slice_from_copied_buffer(c_data, len(data))             # <<<<<<<<<<<<<<
 *     self.c_byte_buffer = grpc.grpc_raw_byte_buffer_create(
 *         &data_slice, 1)
 */
  __pyx_t_8 = PyObject_Length(__pyx_v_data); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_data_slice = gpr_slice_from_copied_buffer(__pyx_v_c_data, __pyx_t_8);

  /* "grpc/_cython/_cygrpc/records.pyx":232
 *     cdef char *c_data = data
 *     data_slice = grpc.gpr_slice_from_copied_buffer(c_data, len(data))
 *     self.c_byte_buffer = grpc.grpc_raw_byte_buffer_create(             # <<<<<<<<<<<<<<
 *         &data_slice, 1)
 *     grpc.gpr_slice_unref(data_slice)
 */
  __pyx_v_self->c_byte_buffer = grpc_raw_byte_buffer_create((&__pyx_v_data_slice), 1);

  /* "grpc/_cython/_cygrpc/records.pyx":234
 *     self.c_byte_buffer = grpc.grpc_raw_byte_buffer_create(
 *         &data_slice, 1)
 *     grpc.gpr_slice_unref(data_slice)             # <<<<<<<<<<<<<<
 * 
 *   def bytes(self):
 */
  gpr_slice_unref(__pyx_v_data_slice);

  /* "grpc/_cython/_cygrpc/records.pyx":213
 * cdef class ByteBuffer:
 * 
 *   def __cinit__(self, data):             # <<<<<<<<<<<<<<
 *     if data is None:
 *       self.c_byte_buffer = NULL
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ByteBuffer.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_data);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":236
 *     grpc.gpr_slice_unref(data_slice)
 * 
 *   def bytes(self):             # <<<<<<<<<<<<<<
 *     cdef grpc.grpc_byte_buffer_reader reader
 *     cdef grpc.gpr_slice data_slice
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_3bytes(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_3bytes(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("bytes (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_2bytes(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_2bytes(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self) {
  struct grpc_byte_buffer_reader __pyx_v_reader;
  gpr_slice __pyx_v_data_slice;
  size_t __pyx_v_data_slice_length;
  void *__pyx_v_data_slice_pointer;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("bytes", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":241
 *     cdef size_t data_slice_length
 *     cdef void *data_slice_pointer
 *     if self.c_byte_buffer != NULL:             # <<<<<<<<<<<<<<
 *       grpc.grpc_byte_buffer_reader_init(&reader, self.c_byte_buffer)
 *       result = b""
 */
  __pyx_t_1 = ((__pyx_v_self->c_byte_buffer != NULL) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":242
 *     cdef void *data_slice_pointer
 *     if self.c_byte_buffer != NULL:
 *       grpc.grpc_byte_buffer_reader_init(&reader, self.c_byte_buffer)             # <<<<<<<<<<<<<<
 *       result = b""
 *       while grpc.grpc_byte_buffer_reader_next(&reader, &data_slice):
 */
    grpc_byte_buffer_reader_init((&__pyx_v_reader), __pyx_v_self->c_byte_buffer);

    /* "grpc/_cython/_cygrpc/records.pyx":243
 *     if self.c_byte_buffer != NULL:
 *       grpc.grpc_byte_buffer_reader_init(&reader, self.c_byte_buffer)
 *       result = b""             # <<<<<<<<<<<<<<
 *       while grpc.grpc_byte_buffer_reader_next(&reader, &data_slice):
 *         data_slice_pointer = grpc.gpr_slice_start_ptr(data_slice)
 */
    __Pyx_INCREF(__pyx_kp_b_);
    __pyx_v_result = __pyx_kp_b_;

    /* "grpc/_cython/_cygrpc/records.pyx":244
 *       grpc.grpc_byte_buffer_reader_init(&reader, self.c_byte_buffer)
 *       result = b""
 *       while grpc.grpc_byte_buffer_reader_next(&reader, &data_slice):             # <<<<<<<<<<<<<<
 *         data_slice_pointer = grpc.gpr_slice_start_ptr(data_slice)
 *         data_slice_length = grpc.gpr_slice_length(data_slice)
 */
    while (1) {
      __pyx_t_1 = (grpc_byte_buffer_reader_next((&__pyx_v_reader), (&__pyx_v_data_slice)) != 0);
      if (!__pyx_t_1) break;

      /* "grpc/_cython/_cygrpc/records.pyx":245
 *       result = b""
 *       while grpc.grpc_byte_buffer_reader_next(&reader, &data_slice):
 *         data_slice_pointer = grpc.gpr_slice_start_ptr(data_slice)             # <<<<<<<<<<<<<<
 *         data_slice_length = grpc.gpr_slice_length(data_slice)
 *         result += (<char *>data_slice_pointer)[:data_slice_length]
 */
      __pyx_v_data_slice_pointer = GPR_SLICE_START_PTR(__pyx_v_data_slice);

      /* "grpc/_cython/_cygrpc/records.pyx":246
 *       while grpc.grpc_byte_buffer_reader_next(&reader, &data_slice):
 *         data_slice_pointer = grpc.gpr_slice_start_ptr(data_slice)
 *         data_slice_length = grpc.gpr_slice_length(data_slice)             # <<<<<<<<<<<<<<
 *         result += (<char *>data_slice_pointer)[:data_slice_length]
 *       grpc.grpc_byte_buffer_reader_destroy(&reader)
 */
      __pyx_v_data_slice_length = GPR_SLICE_LENGTH(__pyx_v_data_slice);

      /* "grpc/_cython/_cygrpc/records.pyx":247
 *         data_slice_pointer = grpc.gpr_slice_start_ptr(data_slice)
 *         data_slice_length = grpc.gpr_slice_length(data_slice)
 *         result += (<char *>data_slice_pointer)[:data_slice_length]             # <<<<<<<<<<<<<<
 *       grpc.grpc_byte_buffer_reader_destroy(&reader)
 *       return result
 */
      __pyx_t_2 = __Pyx_PyBytes_FromStringAndSize(((char *)__pyx_v_data_slice_pointer) + 0, __pyx_v_data_slice_length - 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_result, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;
    }

    /* "grpc/_cython/_cygrpc/records.pyx":248
 *         data_slice_length = grpc.gpr_slice_length(data_slice)
 *         result += (<char *>data_slice_pointer)[:data_slice_length]
 *       grpc.grpc_byte_buffer_reader_destroy(&reader)             # <<<<<<<<<<<<<<
 *       return result
 *     else:
 */
    grpc_byte_buffer_reader_destroy((&__pyx_v_reader));

    /* "grpc/_cython/_cygrpc/records.pyx":249
 *         result += (<char *>data_slice_pointer)[:data_slice_length]
 *       grpc.grpc_byte_buffer_reader_destroy(&reader)
 *       return result             # <<<<<<<<<<<<<<
 *     else:
 *       return None
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_result);
    __pyx_r = __pyx_v_result;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":241
 *     cdef size_t data_slice_length
 *     cdef void *data_slice_pointer
 *     if self.c_byte_buffer != NULL:             # <<<<<<<<<<<<<<
 *       grpc.grpc_byte_buffer_reader_init(&reader, self.c_byte_buffer)
 *       result = b""
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":251
 *       return result
 *     else:
 *       return None             # <<<<<<<<<<<<<<
 * 
 *   def __len__(self):
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":236
 *     grpc.gpr_slice_unref(data_slice)
 * 
 *   def bytes(self):             # <<<<<<<<<<<<<<
 *     cdef grpc.grpc_byte_buffer_reader reader
 *     cdef grpc.gpr_slice data_slice
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ByteBuffer.bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":253
 *       return None
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     if self.c_byte_buffer != NULL:
 *       return grpc.grpc_byte_buffer_length(self.c_byte_buffer)
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_5__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_5__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_4__len__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_4__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":254
 * 
 *   def __len__(self):
 *     if self.c_byte_buffer != NULL:             # <<<<<<<<<<<<<<
 *       return grpc.grpc_byte_buffer_length(self.c_byte_buffer)
 *     else:
 */
  __pyx_t_1 = ((__pyx_v_self->c_byte_buffer != NULL) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":255
 *   def __len__(self):
 *     if self.c_byte_buffer != NULL:
 *       return grpc.grpc_byte_buffer_length(self.c_byte_buffer)             # <<<<<<<<<<<<<<
 *     else:
 *       return 0
 */
    __pyx_r = grpc_byte_buffer_length(__pyx_v_self->c_byte_buffer);
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":254
 * 
 *   def __len__(self):
 *     if self.c_byte_buffer != NULL:             # <<<<<<<<<<<<<<
 *       return grpc.grpc_byte_buffer_length(self.c_byte_buffer)
 *     else:
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":257
 *       return grpc.grpc_byte_buffer_length(self.c_byte_buffer)
 *     else:
 *       return 0             # <<<<<<<<<<<<<<
 * 
 *   def __str__(self):
 */
  /*else*/ {
    __pyx_r = 0;
    goto __pyx_L0;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":253
 *       return None
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     if self.c_byte_buffer != NULL:
 *       return grpc.grpc_byte_buffer_length(self.c_byte_buffer)
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":259
 *       return 0
 * 
 *   def __str__(self):             # <<<<<<<<<<<<<<
 *     return self.bytes()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_7__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_7__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_6__str__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_6__str__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":260
 * 
 *   def __str__(self):
 *     return self.bytes()             # <<<<<<<<<<<<<<
 * 
 *   def __dealloc__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bytes); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":259
 *       return 0
 * 
 *   def __str__(self):             # <<<<<<<<<<<<<<
 *     return self.bytes()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ByteBuffer.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":262
 *     return self.bytes()
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     if self.c_byte_buffer != NULL:
 *       grpc.grpc_byte_buffer_destroy(self.c_byte_buffer)
 */

/* Python wrapper */
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_9__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_9__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_8__dealloc__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_8__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":263
 * 
 *   def __dealloc__(self):
 *     if self.c_byte_buffer != NULL:             # <<<<<<<<<<<<<<
 *       grpc.grpc_byte_buffer_destroy(self.c_byte_buffer)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->c_byte_buffer != NULL) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":264
 *   def __dealloc__(self):
 *     if self.c_byte_buffer != NULL:
 *       grpc.grpc_byte_buffer_destroy(self.c_byte_buffer)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    grpc_byte_buffer_destroy(__pyx_v_self->c_byte_buffer);

    /* "grpc/_cython/_cygrpc/records.pyx":263
 * 
 *   def __dealloc__(self):
 *     if self.c_byte_buffer != NULL:             # <<<<<<<<<<<<<<
 *       grpc.grpc_byte_buffer_destroy(self.c_byte_buffer)
 * 
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":262
 *     return self.bytes()
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     if self.c_byte_buffer != NULL:
 *       grpc.grpc_byte_buffer_destroy(self.c_byte_buffer)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "grpc/_cython/_cygrpc/records.pyx":269
 * cdef class SslPemKeyCertPair:
 * 
 *   def __cinit__(self, private_key, certificate_chain):             # <<<<<<<<<<<<<<
 *     if isinstance(private_key, bytes):
 *       self.private_key = private_key
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_private_key = 0;
  PyObject *__pyx_v_certificate_chain = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_private_key,&__pyx_n_s_certificate_chain,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_private_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_certificate_chain)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_private_key = values[0];
    __pyx_v_certificate_chain = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.SslPemKeyCertPair.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *)__pyx_v_self), __pyx_v_private_key, __pyx_v_certificate_chain);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *__pyx_v_self, PyObject *__pyx_v_private_key, PyObject *__pyx_v_certificate_chain) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  char const *__pyx_t_6;
  char const *__pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":270
 * 
 *   def __cinit__(self, private_key, certificate_chain):
 *     if isinstance(private_key, bytes):             # <<<<<<<<<<<<<<
 *       self.private_key = private_key
 *     elif isinstance(private_key, basestring):
 */
  __pyx_t_1 = PyBytes_Check(__pyx_v_private_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":271
 *   def __cinit__(self, private_key, certificate_chain):
 *     if isinstance(private_key, bytes):
 *       self.private_key = private_key             # <<<<<<<<<<<<<<
 *     elif isinstance(private_key, basestring):
 *       self.private_key = private_key.encode()
 */
    __Pyx_INCREF(__pyx_v_private_key);
    __Pyx_GIVEREF(__pyx_v_private_key);
    __Pyx_GOTREF(__pyx_v_self->private_key);
    __Pyx_DECREF(__pyx_v_self->private_key);
    __pyx_v_self->private_key = __pyx_v_private_key;

    /* "grpc/_cython/_cygrpc/records.pyx":270
 * 
 *   def __cinit__(self, private_key, certificate_chain):
 *     if isinstance(private_key, bytes):             # <<<<<<<<<<<<<<
 *       self.private_key = private_key
 *     elif isinstance(private_key, basestring):
 */
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":272
 *     if isinstance(private_key, bytes):
 *       self.private_key = private_key
 *     elif isinstance(private_key, basestring):             # <<<<<<<<<<<<<<
 *       self.private_key = private_key.encode()
 *     else:
 */
  __pyx_t_2 = __Pyx_PyBaseString_Check(__pyx_v_private_key); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":273
 *       self.private_key = private_key
 *     elif isinstance(private_key, basestring):
 *       self.private_key = private_key.encode()             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected private_key to be of type str or bytes")
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_private_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->private_key);
    __Pyx_DECREF(__pyx_v_self->private_key);
    __pyx_v_self->private_key = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":272
 *     if isinstance(private_key, bytes):
 *       self.private_key = private_key
 *     elif isinstance(private_key, basestring):             # <<<<<<<<<<<<<<
 *       self.private_key = private_key.encode()
 *     else:
 */
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":275
 *       self.private_key = private_key.encode()
 *     else:
 *       raise TypeError("expected private_key to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     if isinstance(certificate_chain, bytes):
 *       self.certificate_chain = certificate_chain
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L3:;

  /* "grpc/_cython/_cygrpc/records.pyx":276
 *     else:
 *       raise TypeError("expected private_key to be of type str or bytes")
 *     if isinstance(certificate_chain, bytes):             # <<<<<<<<<<<<<<
 *       self.certificate_chain = certificate_chain
 *     elif isinstance(certificate_chain, basestring):
 */
  __pyx_t_1 = PyBytes_Check(__pyx_v_certificate_chain); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":277
 *       raise TypeError("expected private_key to be of type str or bytes")
 *     if isinstance(certificate_chain, bytes):
 *       self.certificate_chain = certificate_chain             # <<<<<<<<<<<<<<
 *     elif isinstance(certificate_chain, basestring):
 *       self.certificate_chain = certificate_chain.encode()
 */
    __Pyx_INCREF(__pyx_v_certificate_chain);
    __Pyx_GIVEREF(__pyx_v_certificate_chain);
    __Pyx_GOTREF(__pyx_v_self->certificate_chain);
    __Pyx_DECREF(__pyx_v_self->certificate_chain);
    __pyx_v_self->certificate_chain = __pyx_v_certificate_chain;

    /* "grpc/_cython/_cygrpc/records.pyx":276
 *     else:
 *       raise TypeError("expected private_key to be of type str or bytes")
 *     if isinstance(certificate_chain, bytes):             # <<<<<<<<<<<<<<
 *       self.certificate_chain = certificate_chain
 *     elif isinstance(certificate_chain, basestring):
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":278
 *     if isinstance(certificate_chain, bytes):
 *       self.certificate_chain = certificate_chain
 *     elif isinstance(certificate_chain, basestring):             # <<<<<<<<<<<<<<
 *       self.certificate_chain = certificate_chain.encode()
 *     else:
 */
  __pyx_t_2 = __Pyx_PyBaseString_Check(__pyx_v_certificate_chain); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":279
 *       self.certificate_chain = certificate_chain
 *     elif isinstance(certificate_chain, basestring):
 *       self.certificate_chain = certificate_chain.encode()             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected certificate_chain to be of type str or bytes "
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_certificate_chain, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->certificate_chain);
    __Pyx_DECREF(__pyx_v_self->certificate_chain);
    __pyx_v_self->certificate_chain = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":278
 *     if isinstance(certificate_chain, bytes):
 *       self.certificate_chain = certificate_chain
 *     elif isinstance(certificate_chain, basestring):             # <<<<<<<<<<<<<<
 *       self.certificate_chain = certificate_chain.encode()
 *     else:
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":281
 *       self.certificate_chain = certificate_chain.encode()
 *     else:
 *       raise TypeError("expected certificate_chain to be of type str or bytes "             # <<<<<<<<<<<<<<
 *                       "or int")
 *     self.c_pair.private_key = self.private_key
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L4:;

  /* "grpc/_cython/_cygrpc/records.pyx":283
 *       raise TypeError("expected certificate_chain to be of type str or bytes "
 *                       "or int")
 *     self.c_pair.private_key = self.private_key             # <<<<<<<<<<<<<<
 *     self.c_pair.certificate_chain = self.certificate_chain
 * 
 */
  __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_self->private_key); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_self->c_pair.private_key = __pyx_t_6;

  /* "grpc/_cython/_cygrpc/records.pyx":284
 *                       "or int")
 *     self.c_pair.private_key = self.private_key
 *     self.c_pair.certificate_chain = self.certificate_chain             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_self->certificate_chain); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_self->c_pair.cert_chain = __pyx_t_7;

  /* "grpc/_cython/_cygrpc/records.pyx":269
 * cdef class SslPemKeyCertPair:
 * 
 *   def __cinit__(self, private_key, certificate_chain):             # <<<<<<<<<<<<<<
 *     if isinstance(private_key, bytes):
 *       self.private_key = private_key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.SslPemKeyCertPair.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":85
 * 
 *   cdef grpc.grpc_ssl_pem_key_cert_pair c_pair
 *   cdef readonly object private_key, certificate_chain             # <<<<<<<<<<<<<<
 * 
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_11private_key_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_11private_key_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_11private_key___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_11private_key___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->private_key);
  __pyx_r = __pyx_v_self->private_key;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_17certificate_chain_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_17certificate_chain_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_17certificate_chain___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_17certificate_chain___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->certificate_chain);
  __pyx_r = __pyx_v_self->certificate_chain;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":289
 * cdef class ChannelArg:
 * 
 *   def __cinit__(self, key, value):             # <<<<<<<<<<<<<<
 *     if isinstance(key, bytes):
 *       self.key = key
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_value = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_key = values[0];
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ChannelArg.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)__pyx_v_self), __pyx_v_key, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  char *__pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":290
 * 
 *   def __cinit__(self, key, value):
 *     if isinstance(key, bytes):             # <<<<<<<<<<<<<<
 *       self.key = key
 *     elif isinstance(key, basestring):
 */
  __pyx_t_1 = PyBytes_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":291
 *   def __cinit__(self, key, value):
 *     if isinstance(key, bytes):
 *       self.key = key             # <<<<<<<<<<<<<<
 *     elif isinstance(key, basestring):
 *       self.key = key.encode()
 */
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    __Pyx_GOTREF(__pyx_v_self->key);
    __Pyx_DECREF(__pyx_v_self->key);
    __pyx_v_self->key = __pyx_v_key;

    /* "grpc/_cython/_cygrpc/records.pyx":290
 * 
 *   def __cinit__(self, key, value):
 *     if isinstance(key, bytes):             # <<<<<<<<<<<<<<
 *       self.key = key
 *     elif isinstance(key, basestring):
 */
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":292
 *     if isinstance(key, bytes):
 *       self.key = key
 *     elif isinstance(key, basestring):             # <<<<<<<<<<<<<<
 *       self.key = key.encode()
 *     else:
 */
  __pyx_t_2 = __Pyx_PyBaseString_Check(__pyx_v_key); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":293
 *       self.key = key
 *     elif isinstance(key, basestring):
 *       self.key = key.encode()             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->key);
    __Pyx_DECREF(__pyx_v_self->key);
    __pyx_v_self->key = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":292
 *     if isinstance(key, bytes):
 *       self.key = key
 *     elif isinstance(key, basestring):             # <<<<<<<<<<<<<<
 *       self.key = key.encode()
 *     else:
 */
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":295
 *       self.key = key.encode()
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     if isinstance(value, bytes):
 *       self.value = value
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L3:;

  /* "grpc/_cython/_cygrpc/records.pyx":296
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")
 *     if isinstance(value, bytes):             # <<<<<<<<<<<<<<
 *       self.value = value
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 */
  __pyx_t_1 = PyBytes_Check(__pyx_v_value); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":297
 *       raise TypeError("expected key to be of type str or bytes")
 *     if isinstance(value, bytes):
 *       self.value = value             # <<<<<<<<<<<<<<
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value
 */
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_GOTREF(__pyx_v_self->value);
    __Pyx_DECREF(__pyx_v_self->value);
    __pyx_v_self->value = __pyx_v_value;

    /* "grpc/_cython/_cygrpc/records.pyx":298
 *     if isinstance(value, bytes):
 *       self.value = value
 *       self.c_arg.type = grpc.GRPC_ARG_STRING             # <<<<<<<<<<<<<<
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, basestring):
 */
    __pyx_v_self->c_arg.type = GRPC_ARG_STRING;

    /* "grpc/_cython/_cygrpc/records.pyx":299
 *       self.value = value
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value             # <<<<<<<<<<<<<<
 *     elif isinstance(value, basestring):
 *       self.value = value.encode()
 */
    __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_self->value); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_v_self->c_arg.value.string = __pyx_t_6;

    /* "grpc/_cython/_cygrpc/records.pyx":296
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")
 *     if isinstance(value, bytes):             # <<<<<<<<<<<<<<
 *       self.value = value
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":300
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, basestring):             # <<<<<<<<<<<<<<
 *       self.value = value.encode()
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 */
  __pyx_t_2 = __Pyx_PyBaseString_Check(__pyx_v_value); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":301
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, basestring):
 *       self.value = value.encode()             # <<<<<<<<<<<<<<
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->value);
    __Pyx_DECREF(__pyx_v_self->value);
    __pyx_v_self->value = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":302
 *     elif isinstance(value, basestring):
 *       self.value = value.encode()
 *       self.c_arg.type = grpc.GRPC_ARG_STRING             # <<<<<<<<<<<<<<
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, int):
 */
    __pyx_v_self->c_arg.type = GRPC_ARG_STRING;

    /* "grpc/_cython/_cygrpc/records.pyx":303
 *       self.value = value.encode()
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value             # <<<<<<<<<<<<<<
 *     elif isinstance(value, int):
 *       self.value = int(value)
 */
    __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_self->value); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_v_self->c_arg.value.string = __pyx_t_6;

    /* "grpc/_cython/_cygrpc/records.pyx":300
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, basestring):             # <<<<<<<<<<<<<<
 *       self.value = value.encode()
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":304
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, int):             # <<<<<<<<<<<<<<
 *       self.value = int(value)
 *       self.c_arg.type = grpc.GRPC_ARG_INTEGER
 */
  __pyx_t_1 = PyInt_Check(__pyx_v_value); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":305
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, int):
 *       self.value = int(value)             # <<<<<<<<<<<<<<
 *       self.c_arg.type = grpc.GRPC_ARG_INTEGER
 *       self.c_arg.value.integer = self.value
 */
    __pyx_t_3 = PyNumber_Int(__pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->value);
    __Pyx_DECREF(__pyx_v_self->value);
    __pyx_v_self->value = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":306
 *     elif isinstance(value, int):
 *       self.value = int(value)
 *       self.c_arg.type = grpc.GRPC_ARG_INTEGER             # <<<<<<<<<<<<<<
 *       self.c_arg.value.integer = self.value
 *     else:
 */
    __pyx_v_self->c_arg.type = GRPC_ARG_INTEGER;

    /* "grpc/_cython/_cygrpc/records.pyx":307
 *       self.value = int(value)
 *       self.c_arg.type = grpc.GRPC_ARG_INTEGER
 *       self.c_arg.value.integer = self.value             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected value to be of type str or bytes or int")
 */
    __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_self->value); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_v_self->c_arg.value.integer = __pyx_t_7;

    /* "grpc/_cython/_cygrpc/records.pyx":304
 *       self.c_arg.type = grpc.GRPC_ARG_STRING
 *       self.c_arg.value.string = self.value
 *     elif isinstance(value, int):             # <<<<<<<<<<<<<<
 *       self.value = int(value)
 *       self.c_arg.type = grpc.GRPC_ARG_INTEGER
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":309
 *       self.c_arg.value.integer = self.value
 *     else:
 *       raise TypeError("expected value to be of type str or bytes or int")             # <<<<<<<<<<<<<<
 *     self.c_arg.key = self.key
 * 
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L4:;

  /* "grpc/_cython/_cygrpc/records.pyx":310
 *     else:
 *       raise TypeError("expected value to be of type str or bytes or int")
 *     self.c_arg.key = self.key             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_self->key); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_self->c_arg.key = __pyx_t_6;

  /* "grpc/_cython/_cygrpc/records.pyx":289
 * cdef class ChannelArg:
 * 
 *   def __cinit__(self, key, value):             # <<<<<<<<<<<<<<
 *     if isinstance(key, bytes):
 *       self.key = key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ChannelArg.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pxd":91
 * 
 *   cdef grpc.grpc_arg c_arg
 *   cdef readonly object key, value             # <<<<<<<<<<<<<<
 * 
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_3key_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_3key_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_3key___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_3key___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->key);
  __pyx_r = __pyx_v_self->key;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_5value___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_5value___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->value);
  __pyx_r = __pyx_v_self->value;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":315
 * cdef class ChannelArgs:
 * 
 *   def __cinit__(self, args):             # <<<<<<<<<<<<<<
 *     self.args = list(args)
 *     for arg in self.args:
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_args,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_args)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_args = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ChannelArgs.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self, PyObject *__pyx_v_args) {
  PyObject *__pyx_v_arg = NULL;
  size_t __pyx_v_i;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  size_t __pyx_t_6;
  size_t __pyx_t_7;
  grpc_arg __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":316
 * 
 *   def __cinit__(self, args):
 *     self.args = list(args)             # <<<<<<<<<<<<<<
 *     for arg in self.args:
 *       if not isinstance(arg, ChannelArg):
 */
  __pyx_t_1 = PySequence_List(__pyx_v_args); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->args);
  __Pyx_DECREF(__pyx_v_self->args);
  __pyx_v_self->args = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":317
 *   def __cinit__(self, args):
 *     self.args = list(args)
 *     for arg in self.args:             # <<<<<<<<<<<<<<
 *       if not isinstance(arg, ChannelArg):
 *         raise TypeError("expected list of ChannelArg")
 */
  if (unlikely(__pyx_v_self->args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_t_1 = __pyx_v_self->args; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_COMPILING_IN_CPYTHON
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_arg, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":318
 *     self.args = list(args)
 *     for arg in self.args:
 *       if not isinstance(arg, ChannelArg):             # <<<<<<<<<<<<<<
 *         raise TypeError("expected list of ChannelArg")
 *     self.c_args.arguments_length = len(self.args)
 */
    __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_arg, __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ChannelArg); 
    __pyx_t_5 = ((!(__pyx_t_4 != 0)) != 0);
    if (__pyx_t_5) {

      /* "grpc/_cython/_cygrpc/records.pyx":319
 *     for arg in self.args:
 *       if not isinstance(arg, ChannelArg):
 *         raise TypeError("expected list of ChannelArg")             # <<<<<<<<<<<<<<
 *     self.c_args.arguments_length = len(self.args)
 *     self.c_args.arguments = <grpc.grpc_arg *>grpc.gpr_malloc(
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

      /* "grpc/_cython/_cygrpc/records.pyx":318
 *     self.args = list(args)
 *     for arg in self.args:
 *       if not isinstance(arg, ChannelArg):             # <<<<<<<<<<<<<<
 *         raise TypeError("expected list of ChannelArg")
 *     self.c_args.arguments_length = len(self.args)
 */
    }

    /* "grpc/_cython/_cygrpc/records.pyx":317
 *   def __cinit__(self, args):
 *     self.args = list(args)
 *     for arg in self.args:             # <<<<<<<<<<<<<<
 *       if not isinstance(arg, ChannelArg):
 *         raise TypeError("expected list of ChannelArg")
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":320
 *       if not isinstance(arg, ChannelArg):
 *         raise TypeError("expected list of ChannelArg")
 *     self.c_args.arguments_length = len(self.args)             # <<<<<<<<<<<<<<
 *     self.c_args.arguments = <grpc.grpc_arg *>grpc.gpr_malloc(
 *         self.c_args.arguments_length*sizeof(grpc.grpc_arg)
 */
  __pyx_t_1 = __pyx_v_self->args;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_t_2 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_args.num_args = __pyx_t_2;

  /* "grpc/_cython/_cygrpc/records.pyx":321
 *         raise TypeError("expected list of ChannelArg")
 *     self.c_args.arguments_length = len(self.args)
 *     self.c_args.arguments = <grpc.grpc_arg *>grpc.gpr_malloc(             # <<<<<<<<<<<<<<
 *         self.c_args.arguments_length*sizeof(grpc.grpc_arg)
 *     )
 */
  __pyx_v_self->c_args.args = ((grpc_arg *)gpr_malloc((__pyx_v_self->c_args.num_args * (sizeof(grpc_arg)))));

  /* "grpc/_cython/_cygrpc/records.pyx":324
 *         self.c_args.arguments_length*sizeof(grpc.grpc_arg)
 *     )
 *     for i in range(self.c_args.arguments_length):             # <<<<<<<<<<<<<<
 *       self.c_args.arguments[i] = (<ChannelArg>self.args[i]).c_arg
 * 
 */
  __pyx_t_6 = __pyx_v_self->c_args.num_args;
  for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
    __pyx_v_i = __pyx_t_7;

    /* "grpc/_cython/_cygrpc/records.pyx":325
 *     )
 *     for i in range(self.c_args.arguments_length):
 *       self.c_args.arguments[i] = (<ChannelArg>self.args[i]).c_arg             # <<<<<<<<<<<<<<
 * 
 *   def __dealloc__(self):
 */
    if (unlikely(__pyx_v_self->args == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->args, __pyx_v_i, size_t, 0, __Pyx_PyInt_FromSize_t, 1, 0, 1); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)__pyx_t_1)->c_arg;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    (__pyx_v_self->c_args.args[__pyx_v_i]) = __pyx_t_8;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":315
 * cdef class ChannelArgs:
 * 
 *   def __cinit__(self, args):             # <<<<<<<<<<<<<<
 *     self.args = list(args)
 *     for arg in self.args:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ChannelArgs.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arg);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":327
 *       self.c_args.arguments[i] = (<ChannelArg>self.args[i]).c_arg
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     grpc.gpr_free(self.c_args.arguments)
 * 
 */

/* Python wrapper */
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_2__dealloc__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_2__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":328
 * 
 *   def __dealloc__(self):
 *     grpc.gpr_free(self.c_args.arguments)             # <<<<<<<<<<<<<<
 * 
 *   def __len__(self):
 */
  gpr_free(__pyx_v_self->c_args.args);

  /* "grpc/_cython/_cygrpc/records.pyx":327
 *       self.c_args.arguments[i] = (<ChannelArg>self.args[i]).c_arg
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     grpc.gpr_free(self.c_args.arguments)
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "grpc/_cython/_cygrpc/records.pyx":330
 *     grpc.gpr_free(self.c_args.arguments)
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     # self.args is never stale; it's only updated from this file
 *     return len(self.args)
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_5__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_5__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_4__len__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_4__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":332
 *   def __len__(self):
 *     # self.args is never stale; it's only updated from this file
 *     return len(self.args)             # <<<<<<<<<<<<<<
 * 
 *   def __getitem__(self, size_t i):
 */
  __pyx_t_1 = __pyx_v_self->args;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_t_2 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":330
 *     grpc.gpr_free(self.c_args.arguments)
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     # self.args is never stale; it's only updated from this file
 *     return len(self.args)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ChannelArgs.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":334
 *     return len(self.args)
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     # self.args is never stale; it's only updated from this file
 *     return self.args[i]
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i) {
  size_t __pyx_v_i;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  assert(__pyx_arg_i); {
    __pyx_v_i = __Pyx_PyInt_As_size_t(__pyx_arg_i); if (unlikely((__pyx_v_i == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ChannelArgs.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_6__getitem__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)__pyx_v_self), ((size_t)__pyx_v_i));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_6__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *__pyx_v_self, size_t __pyx_v_i) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":336
 *   def __getitem__(self, size_t i):
 *     # self.args is never stale; it's only updated from this file
 *     return self.args[i]             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_self->args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->args, __pyx_v_i, size_t, 0, __Pyx_PyInt_FromSize_t, 1, 0, 1); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":334
 *     return len(self.args)
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     # self.args is never stale; it's only updated from this file
 *     return self.args[i]
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.ChannelArgs.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":341
 * cdef class Metadatum:
 * 
 *   def __cinit__(self, key, value):             # <<<<<<<<<<<<<<
 *     if isinstance(key, bytes):
 *       self._key = key
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_value = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_key = values[0];
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadatum.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)__pyx_v_self), __pyx_v_key, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  char const *__pyx_t_6;
  char const *__pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":342
 * 
 *   def __cinit__(self, key, value):
 *     if isinstance(key, bytes):             # <<<<<<<<<<<<<<
 *       self._key = key
 *     elif isinstance(key, basestring):
 */
  __pyx_t_1 = PyBytes_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":343
 *   def __cinit__(self, key, value):
 *     if isinstance(key, bytes):
 *       self._key = key             # <<<<<<<<<<<<<<
 *     elif isinstance(key, basestring):
 *       self._key = key.encode()
 */
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    __Pyx_GOTREF(__pyx_v_self->_key);
    __Pyx_DECREF(__pyx_v_self->_key);
    __pyx_v_self->_key = __pyx_v_key;

    /* "grpc/_cython/_cygrpc/records.pyx":342
 * 
 *   def __cinit__(self, key, value):
 *     if isinstance(key, bytes):             # <<<<<<<<<<<<<<
 *       self._key = key
 *     elif isinstance(key, basestring):
 */
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":344
 *     if isinstance(key, bytes):
 *       self._key = key
 *     elif isinstance(key, basestring):             # <<<<<<<<<<<<<<
 *       self._key = key.encode()
 *     else:
 */
  __pyx_t_2 = __Pyx_PyBaseString_Check(__pyx_v_key); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":345
 *       self._key = key
 *     elif isinstance(key, basestring):
 *       self._key = key.encode()             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->_key);
    __Pyx_DECREF(__pyx_v_self->_key);
    __pyx_v_self->_key = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":344
 *     if isinstance(key, bytes):
 *       self._key = key
 *     elif isinstance(key, basestring):             # <<<<<<<<<<<<<<
 *       self._key = key.encode()
 *     else:
 */
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":347
 *       self._key = key.encode()
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     if isinstance(value, bytes):
 *       self._value = value
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L3:;

  /* "grpc/_cython/_cygrpc/records.pyx":348
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")
 *     if isinstance(value, bytes):             # <<<<<<<<<<<<<<
 *       self._value = value
 *     elif isinstance(value, basestring):
 */
  __pyx_t_1 = PyBytes_Check(__pyx_v_value); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "grpc/_cython/_cygrpc/records.pyx":349
 *       raise TypeError("expected key to be of type str or bytes")
 *     if isinstance(value, bytes):
 *       self._value = value             # <<<<<<<<<<<<<<
 *     elif isinstance(value, basestring):
 *       self._value = value.encode()
 */
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_GOTREF(__pyx_v_self->_value);
    __Pyx_DECREF(__pyx_v_self->_value);
    __pyx_v_self->_value = __pyx_v_value;

    /* "grpc/_cython/_cygrpc/records.pyx":348
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")
 *     if isinstance(value, bytes):             # <<<<<<<<<<<<<<
 *       self._value = value
 *     elif isinstance(value, basestring):
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":350
 *     if isinstance(value, bytes):
 *       self._value = value
 *     elif isinstance(value, basestring):             # <<<<<<<<<<<<<<
 *       self._value = value.encode()
 *     else:
 */
  __pyx_t_2 = __Pyx_PyBaseString_Check(__pyx_v_value); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":351
 *       self._value = value
 *     elif isinstance(value, basestring):
 *       self._value = value.encode()             # <<<<<<<<<<<<<<
 *     else:
 *       raise TypeError("expected value to be of type str or bytes")
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->_value);
    __Pyx_DECREF(__pyx_v_self->_value);
    __pyx_v_self->_value = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":350
 *     if isinstance(value, bytes):
 *       self._value = value
 *     elif isinstance(value, basestring):             # <<<<<<<<<<<<<<
 *       self._value = value.encode()
 *     else:
 */
    goto __pyx_L4;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":353
 *       self._value = value.encode()
 *     else:
 *       raise TypeError("expected value to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     self.c_metadata.key = self._key
 *     self.c_metadata.value = self._value
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L4:;

  /* "grpc/_cython/_cygrpc/records.pyx":354
 *     else:
 *       raise TypeError("expected value to be of type str or bytes")
 *     self.c_metadata.key = self._key             # <<<<<<<<<<<<<<
 *     self.c_metadata.value = self._value
 *     self.c_metadata.value_length = len(self._value)
 */
  __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_self->_key); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_self->c_metadata.key = __pyx_t_6;

  /* "grpc/_cython/_cygrpc/records.pyx":355
 *       raise TypeError("expected value to be of type str or bytes")
 *     self.c_metadata.key = self._key
 *     self.c_metadata.value = self._value             # <<<<<<<<<<<<<<
 *     self.c_metadata.value_length = len(self._value)
 * 
 */
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_self->_value); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_self->c_metadata.value = __pyx_t_7;

  /* "grpc/_cython/_cygrpc/records.pyx":356
 *     self.c_metadata.key = self._key
 *     self.c_metadata.value = self._value
 *     self.c_metadata.value_length = len(self._value)             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __pyx_t_3 = __pyx_v_self->_value;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_8 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_self->c_metadata.value_length = __pyx_t_8;

  /* "grpc/_cython/_cygrpc/records.pyx":341
 * cdef class Metadatum:
 * 
 *   def __cinit__(self, key, value):             # <<<<<<<<<<<<<<
 *     if isinstance(key, bytes):
 *       self._key = key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadatum.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":359
 * 
 *   @property
 *   def key(self):             # <<<<<<<<<<<<<<
 *     return <bytes>self.c_metadata.key
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_3key(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_3key(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("key (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_2key(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_2key(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("key", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":360
 *   @property
 *   def key(self):
 *     return <bytes>self.c_metadata.key             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->c_metadata.key); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject*)__pyx_t_1));
  __pyx_r = __pyx_t_1;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":359
 * 
 *   @property
 *   def key(self):             # <<<<<<<<<<<<<<
 *     return <bytes>self.c_metadata.key
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadatum.key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":363
 * 
 *   @property
 *   def value(self):             # <<<<<<<<<<<<<<
 *     return <bytes>self.c_metadata.value[:self.c_metadata.value_length]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_5value(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_5value(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("value (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_4value(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_4value(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("value", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":364
 *   @property
 *   def value(self):
 *     return <bytes>self.c_metadata.value[:self.c_metadata.value_length]             # <<<<<<<<<<<<<<
 * 
 *   def __len__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_self->c_metadata.value + 0, __pyx_v_self->c_metadata.value_length - 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject*)__pyx_t_1));
  __pyx_r = __pyx_t_1;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":363
 * 
 *   @property
 *   def value(self):             # <<<<<<<<<<<<<<
 *     return <bytes>self.c_metadata.value[:self.c_metadata.value_length]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadatum.value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":366
 *     return <bytes>self.c_metadata.value[:self.c_metadata.value_length]
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     return 2
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_7__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_7__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_6__len__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_6__len__(CYTHON_UNUSED struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":367
 * 
 *   def __len__(self):
 *     return 2             # <<<<<<<<<<<<<<
 * 
 *   def __getitem__(self, size_t i):
 */
  __pyx_r = 2;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":366
 *     return <bytes>self.c_metadata.value[:self.c_metadata.value_length]
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     return 2
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":369
 *     return 2
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     if i == 0:
 *       return self.key
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_9__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_9__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i) {
  size_t __pyx_v_i;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  assert(__pyx_arg_i); {
    __pyx_v_i = __Pyx_PyInt_As_size_t(__pyx_arg_i); if (unlikely((__pyx_v_i == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadatum.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_8__getitem__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)__pyx_v_self), ((size_t)__pyx_v_i));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_8__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self, size_t __pyx_v_i) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":370
 * 
 *   def __getitem__(self, size_t i):
 *     if i == 0:             # <<<<<<<<<<<<<<
 *       return self.key
 *     elif i == 1:
 */
  switch (__pyx_v_i) {
    case 0:

    /* "grpc/_cython/_cygrpc/records.pyx":371
 *   def __getitem__(self, size_t i):
 *     if i == 0:
 *       return self.key             # <<<<<<<<<<<<<<
 *     elif i == 1:
 *       return self.value
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_key); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":370
 * 
 *   def __getitem__(self, size_t i):
 *     if i == 0:             # <<<<<<<<<<<<<<
 *       return self.key
 *     elif i == 1:
 */
    break;

    /* "grpc/_cython/_cygrpc/records.pyx":372
 *     if i == 0:
 *       return self.key
 *     elif i == 1:             # <<<<<<<<<<<<<<
 *       return self.value
 *     else:
 */
    case 1:

    /* "grpc/_cython/_cygrpc/records.pyx":373
 *       return self.key
 *     elif i == 1:
 *       return self.value             # <<<<<<<<<<<<<<
 *     else:
 *       raise IndexError("index must be 0 (key) or 1 (value)")
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":372
 *     if i == 0:
 *       return self.key
 *     elif i == 1:             # <<<<<<<<<<<<<<
 *       return self.value
 *     else:
 */
    break;
    default:

    /* "grpc/_cython/_cygrpc/records.pyx":375
 *       return self.value
 *     else:
 *       raise IndexError("index must be 0 (key) or 1 (value)")             # <<<<<<<<<<<<<<
 * 
 *   def __iter__(self):
 */
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    break;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":369
 *     return 2
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     if i == 0:
 *       return self.key
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadatum.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":377
 *       raise IndexError("index must be 0 (key) or 1 (value)")
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return iter((self.key, self.value))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_11__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_11__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_10__iter__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Metadatum_10__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":378
 * 
 *   def __iter__(self):
 *     return iter((self.key, self.value))             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_key); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":377
 *       raise IndexError("index must be 0 (key) or 1 (value)")
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return iter((self.key, self.value))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadatum.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":386
 *   cdef Metadata metadata
 * 
 *   def __cinit__(self, Metadata metadata not None):             # <<<<<<<<<<<<<<
 *     self.i = 0
 *     self.metadata = metadata
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_metadata,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_metadata)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)values[0]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records._MetadataIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metadata), __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata, 0, "metadata", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *)__pyx_v_self), __pyx_v_metadata);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *__pyx_v_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":387
 * 
 *   def __cinit__(self, Metadata metadata not None):
 *     self.i = 0             # <<<<<<<<<<<<<<
 *     self.metadata = metadata
 * 
 */
  __pyx_v_self->i = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":388
 *   def __cinit__(self, Metadata metadata not None):
 *     self.i = 0
 *     self.metadata = metadata             # <<<<<<<<<<<<<<
 * 
 *   def __iter__(self):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_metadata));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_metadata));
  __Pyx_GOTREF(__pyx_v_self->metadata);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->metadata));
  __pyx_v_self->metadata = __pyx_v_metadata;

  /* "grpc/_cython/_cygrpc/records.pyx":386
 *   cdef Metadata metadata
 * 
 *   def __cinit__(self, Metadata metadata not None):             # <<<<<<<<<<<<<<
 *     self.i = 0
 *     self.metadata = metadata
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":390
 *     self.metadata = metadata
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_3__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_3__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_2__iter__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_2__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":391
 * 
 *   def __iter__(self):
 *     return self             # <<<<<<<<<<<<<<
 * 
 *   def __next__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":390
 *     self.metadata = metadata
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":393
 *     return self
 * 
 *   def __next__(self):             # <<<<<<<<<<<<<<
 *     if self.i < len(self.metadata):
 *       result = self.metadata[self.i]
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_5__next__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_5__next__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__next__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_4__next__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_4__next__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *__pyx_v_self) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__next__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":394
 * 
 *   def __next__(self):
 *     if self.i < len(self.metadata):             # <<<<<<<<<<<<<<
 *       result = self.metadata[self.i]
 *       self.i = self.i + 1
 */
  __pyx_t_1 = ((PyObject *)__pyx_v_self->metadata);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = ((__pyx_v_self->i < __pyx_t_2) != 0);
  if (__pyx_t_3) {

    /* "grpc/_cython/_cygrpc/records.pyx":395
 *   def __next__(self):
 *     if self.i < len(self.metadata):
 *       result = self.metadata[self.i]             # <<<<<<<<<<<<<<
 *       self.i = self.i + 1
 *       return result
 */
    __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_self->metadata), __pyx_v_self->i, size_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_result = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":396
 *     if self.i < len(self.metadata):
 *       result = self.metadata[self.i]
 *       self.i = self.i + 1             # <<<<<<<<<<<<<<
 *       return result
 *     else:
 */
    __pyx_v_self->i = (__pyx_v_self->i + 1);

    /* "grpc/_cython/_cygrpc/records.pyx":397
 *       result = self.metadata[self.i]
 *       self.i = self.i + 1
 *       return result             # <<<<<<<<<<<<<<
 *     else:
 *       raise StopIteration
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_result);
    __pyx_r = __pyx_v_result;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":394
 * 
 *   def __next__(self):
 *     if self.i < len(self.metadata):             # <<<<<<<<<<<<<<
 *       result = self.metadata[self.i]
 *       self.i = self.i + 1
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":399
 *       return result
 *     else:
 *       raise StopIteration             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }

  /* "grpc/_cython/_cygrpc/records.pyx":393
 *     return self
 * 
 *   def __next__(self):             # <<<<<<<<<<<<<<
 *     if self.i < len(self.metadata):
 *       result = self.metadata[self.i]
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records._MetadataIterator.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":404
 * cdef class Metadata:
 * 
 *   def __cinit__(self, metadata):             # <<<<<<<<<<<<<<
 *     self.metadata = list(metadata)
 *     for metadatum in metadata:
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_metadata = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_metadata,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_metadata)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_metadata = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadata.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_v_self), __pyx_v_metadata);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self, PyObject *__pyx_v_metadata) {
  PyObject *__pyx_v_metadatum = NULL;
  size_t __pyx_v_i;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  size_t __pyx_t_7;
  size_t __pyx_t_8;
  grpc_metadata __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":405
 * 
 *   def __cinit__(self, metadata):
 *     self.metadata = list(metadata)             # <<<<<<<<<<<<<<
 *     for metadatum in metadata:
 *       if not isinstance(metadatum, Metadatum):
 */
  __pyx_t_1 = PySequence_List(__pyx_v_metadata); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->metadata);
  __Pyx_DECREF(__pyx_v_self->metadata);
  __pyx_v_self->metadata = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":406
 *   def __cinit__(self, metadata):
 *     self.metadata = list(metadata)
 *     for metadatum in metadata:             # <<<<<<<<<<<<<<
 *       if not isinstance(metadatum, Metadatum):
 *         raise TypeError("expected list of Metadatum")
 */
  if (likely(PyList_CheckExact(__pyx_v_metadata)) || PyTuple_CheckExact(__pyx_v_metadata)) {
    __pyx_t_1 = __pyx_v_metadata; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_metadata); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_COMPILING_IN_CPYTHON
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_COMPILING_IN_CPYTHON
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_metadatum, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":407
 *     self.metadata = list(metadata)
 *     for metadatum in metadata:
 *       if not isinstance(metadatum, Metadatum):             # <<<<<<<<<<<<<<
 *         raise TypeError("expected list of Metadatum")
 *     grpc.grpc_metadata_array_init(&self.c_metadata_array)
 */
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_v_metadatum, __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum); 
    __pyx_t_6 = ((!(__pyx_t_5 != 0)) != 0);
    if (__pyx_t_6) {

      /* "grpc/_cython/_cygrpc/records.pyx":408
 *     for metadatum in metadata:
 *       if not isinstance(metadatum, Metadatum):
 *         raise TypeError("expected list of Metadatum")             # <<<<<<<<<<<<<<
 *     grpc.grpc_metadata_array_init(&self.c_metadata_array)
 *     self.c_metadata_array.count = len(self.metadata)
 */
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

      /* "grpc/_cython/_cygrpc/records.pyx":407
 *     self.metadata = list(metadata)
 *     for metadatum in metadata:
 *       if not isinstance(metadatum, Metadatum):             # <<<<<<<<<<<<<<
 *         raise TypeError("expected list of Metadatum")
 *     grpc.grpc_metadata_array_init(&self.c_metadata_array)
 */
    }

    /* "grpc/_cython/_cygrpc/records.pyx":406
 *   def __cinit__(self, metadata):
 *     self.metadata = list(metadata)
 *     for metadatum in metadata:             # <<<<<<<<<<<<<<
 *       if not isinstance(metadatum, Metadatum):
 *         raise TypeError("expected list of Metadatum")
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":409
 *       if not isinstance(metadatum, Metadatum):
 *         raise TypeError("expected list of Metadatum")
 *     grpc.grpc_metadata_array_init(&self.c_metadata_array)             # <<<<<<<<<<<<<<
 *     self.c_metadata_array.count = len(self.metadata)
 *     self.c_metadata_array.capacity = len(self.metadata)
 */
  grpc_metadata_array_init((&__pyx_v_self->c_metadata_array));

  /* "grpc/_cython/_cygrpc/records.pyx":410
 *         raise TypeError("expected list of Metadatum")
 *     grpc.grpc_metadata_array_init(&self.c_metadata_array)
 *     self.c_metadata_array.count = len(self.metadata)             # <<<<<<<<<<<<<<
 *     self.c_metadata_array.capacity = len(self.metadata)
 *     self.c_metadata_array.metadata = <grpc.grpc_metadata *>grpc.gpr_malloc(
 */
  __pyx_t_1 = __pyx_v_self->metadata;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_metadata_array.count = __pyx_t_2;

  /* "grpc/_cython/_cygrpc/records.pyx":411
 *     grpc.grpc_metadata_array_init(&self.c_metadata_array)
 *     self.c_metadata_array.count = len(self.metadata)
 *     self.c_metadata_array.capacity = len(self.metadata)             # <<<<<<<<<<<<<<
 *     self.c_metadata_array.metadata = <grpc.grpc_metadata *>grpc.gpr_malloc(
 *         self.c_metadata_array.count*sizeof(grpc.grpc_metadata)
 */
  __pyx_t_1 = __pyx_v_self->metadata;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_metadata_array.capacity = __pyx_t_2;

  /* "grpc/_cython/_cygrpc/records.pyx":412
 *     self.c_metadata_array.count = len(self.metadata)
 *     self.c_metadata_array.capacity = len(self.metadata)
 *     self.c_metadata_array.metadata = <grpc.grpc_metadata *>grpc.gpr_malloc(             # <<<<<<<<<<<<<<
 *         self.c_metadata_array.count*sizeof(grpc.grpc_metadata)
 *     )
 */
  __pyx_v_self->c_metadata_array.metadata = ((grpc_metadata *)gpr_malloc((__pyx_v_self->c_metadata_array.count * (sizeof(grpc_metadata)))));

  /* "grpc/_cython/_cygrpc/records.pyx":415
 *         self.c_metadata_array.count*sizeof(grpc.grpc_metadata)
 *     )
 *     for i in range(self.c_metadata_array.count):             # <<<<<<<<<<<<<<
 *       self.c_metadata_array.metadata[i] = (
 *           (<Metadatum>self.metadata[i]).c_metadata)
 */
  __pyx_t_7 = __pyx_v_self->c_metadata_array.count;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v_i = __pyx_t_8;

    /* "grpc/_cython/_cygrpc/records.pyx":417
 *     for i in range(self.c_metadata_array.count):
 *       self.c_metadata_array.metadata[i] = (
 *           (<Metadatum>self.metadata[i]).c_metadata)             # <<<<<<<<<<<<<<
 * 
 *   def __dealloc__(self):
 */
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_self->metadata, __pyx_v_i, size_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)__pyx_t_1)->c_metadata;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":416
 *     )
 *     for i in range(self.c_metadata_array.count):
 *       self.c_metadata_array.metadata[i] = (             # <<<<<<<<<<<<<<
 *           (<Metadatum>self.metadata[i]).c_metadata)
 * 
 */
    (__pyx_v_self->c_metadata_array.metadata[__pyx_v_i]) = __pyx_t_9;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":404
 * cdef class Metadata:
 * 
 *   def __cinit__(self, metadata):             # <<<<<<<<<<<<<<
 *     self.metadata = list(metadata)
 *     for metadatum in metadata:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadata.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_metadatum);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":419
 *           (<Metadatum>self.metadata[i]).c_metadata)
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     # this frees the allocated memory for the grpc_metadata_array (although
 *     # it'd be nice if that were documented somewhere...) TODO(atash): document
 */

/* Python wrapper */
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_2__dealloc__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_2__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":423
 *     # it'd be nice if that were documented somewhere...) TODO(atash): document
 *     # this in the C core
 *     grpc.grpc_metadata_array_destroy(&self.c_metadata_array)             # <<<<<<<<<<<<<<
 * 
 *   def __len__(self):
 */
  grpc_metadata_array_destroy((&__pyx_v_self->c_metadata_array));

  /* "grpc/_cython/_cygrpc/records.pyx":419
 *           (<Metadatum>self.metadata[i]).c_metadata)
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     # this frees the allocated memory for the grpc_metadata_array (although
 *     # it'd be nice if that were documented somewhere...) TODO(atash): document
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "grpc/_cython/_cygrpc/records.pyx":425
 *     grpc.grpc_metadata_array_destroy(&self.c_metadata_array)
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     return self.c_metadata_array.count
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_5__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_5__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_4__len__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_4__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":426
 * 
 *   def __len__(self):
 *     return self.c_metadata_array.count             # <<<<<<<<<<<<<<
 * 
 *   def __getitem__(self, size_t i):
 */
  __pyx_r = __pyx_v_self->c_metadata_array.count;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":425
 *     grpc.grpc_metadata_array_destroy(&self.c_metadata_array)
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     return self.c_metadata_array.count
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":428
 *     return self.c_metadata_array.count
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     return Metadatum(
 *         key=<bytes>self.c_metadata_array.metadata[i].key,
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i) {
  size_t __pyx_v_i;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  assert(__pyx_arg_i); {
    __pyx_v_i = __Pyx_PyInt_As_size_t(__pyx_arg_i); if (unlikely((__pyx_v_i == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadata.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_6__getitem__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_v_self), ((size_t)__pyx_v_i));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_6__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self, size_t __pyx_v_i) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":429
 * 
 *   def __getitem__(self, size_t i):
 *     return Metadatum(             # <<<<<<<<<<<<<<
 *         key=<bytes>self.c_metadata_array.metadata[i].key,
 *         value=<bytes>self.c_metadata_array.metadata[i].value[
 */
  __Pyx_XDECREF(__pyx_r);

  /* "grpc/_cython/_cygrpc/records.pyx":430
 *   def __getitem__(self, size_t i):
 *     return Metadatum(
 *         key=<bytes>self.c_metadata_array.metadata[i].key,             # <<<<<<<<<<<<<<
 *         value=<bytes>self.c_metadata_array.metadata[i].value[
 *             :self.c_metadata_array.metadata[i].value_length])
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBytes_FromString((__pyx_v_self->c_metadata_array.metadata[__pyx_v_i]).key); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_key, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":431
 *     return Metadatum(
 *         key=<bytes>self.c_metadata_array.metadata[i].key,
 *         value=<bytes>self.c_metadata_array.metadata[i].value[             # <<<<<<<<<<<<<<
 *             :self.c_metadata_array.metadata[i].value_length])
 * 
 */
  __pyx_t_2 = __Pyx_PyBytes_FromStringAndSize((__pyx_v_self->c_metadata_array.metadata[__pyx_v_i]).value + 0, (__pyx_v_self->c_metadata_array.metadata[__pyx_v_i]).value_length - 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_value, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":429
 * 
 *   def __getitem__(self, size_t i):
 *     return Metadatum(             # <<<<<<<<<<<<<<
 *         key=<bytes>self.c_metadata_array.metadata[i].key,
 *         value=<bytes>self.c_metadata_array.metadata[i].value[
 */
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":428
 *     return self.c_metadata_array.count
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     return Metadatum(
 *         key=<bytes>self.c_metadata_array.metadata[i].key,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadata.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":434
 *             :self.c_metadata_array.metadata[i].value_length])
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return _MetadataIterator(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_9__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_9__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_8__iter__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8Metadata_8__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":435
 * 
 *   def __iter__(self):
 *     return _MetadataIterator(self)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records__MetadataIterator), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":434
 *             :self.c_metadata_array.metadata[i].value_length])
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return _MetadataIterator(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Metadata.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":440
 * cdef class Operation:
 * 
 *   def __cinit__(self):             # <<<<<<<<<<<<<<
 *     self.references = []
 *     self._received_status_details = NULL
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":441
 * 
 *   def __cinit__(self):
 *     self.references = []             # <<<<<<<<<<<<<<
 *     self._received_status_details = NULL
 *     self._received_status_details_capacity = 0
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->references);
  __Pyx_DECREF(__pyx_v_self->references);
  __pyx_v_self->references = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":442
 *   def __cinit__(self):
 *     self.references = []
 *     self._received_status_details = NULL             # <<<<<<<<<<<<<<
 *     self._received_status_details_capacity = 0
 *     self.is_valid = False
 */
  __pyx_v_self->_received_status_details = NULL;

  /* "grpc/_cython/_cygrpc/records.pyx":443
 *     self.references = []
 *     self._received_status_details = NULL
 *     self._received_status_details_capacity = 0             # <<<<<<<<<<<<<<
 *     self.is_valid = False
 * 
 */
  __pyx_v_self->_received_status_details_capacity = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":444
 *     self._received_status_details = NULL
 *     self._received_status_details_capacity = 0
 *     self.is_valid = False             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __pyx_v_self->is_valid = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":440
 * cdef class Operation:
 * 
 *   def __cinit__(self):             # <<<<<<<<<<<<<<
 *     self.references = []
 *     self._received_status_details = NULL
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":447
 * 
 *   @property
 *   def type(self):             # <<<<<<<<<<<<<<
 *     return self.c_op.type
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_3type(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_3type(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("type (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_2type(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_2type(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("type", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":448
 *   @property
 *   def type(self):
 *     return self.c_op.type             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_grpc_op_type(__pyx_v_self->c_op.op); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":447
 * 
 *   @property
 *   def type(self):             # <<<<<<<<<<<<<<
 *     return self.c_op.type
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.type", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":451
 * 
 *   @property
 *   def has_status(self):             # <<<<<<<<<<<<<<
 *     return self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_5has_status(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_5has_status(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("has_status (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_4has_status(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_4has_status(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("has_status", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":452
 *   @property
 *   def has_status(self):
 *     return self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->c_op.op == GRPC_OP_RECV_STATUS_ON_CLIENT)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":451
 * 
 *   @property
 *   def has_status(self):             # <<<<<<<<<<<<<<
 *     return self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.has_status", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":455
 * 
 *   @property
 *   def received_message(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       raise TypeError("self must be an operation receiving a message")
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_7received_message(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_7received_message(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_message (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_6received_message(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_6received_message(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("received_message", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":456
 *   @property
 *   def received_message(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving a message")
 *     return self._received_message
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_MESSAGE) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":457
 *   def received_message(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       raise TypeError("self must be an operation receiving a message")             # <<<<<<<<<<<<<<
 *     return self._received_message
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

    /* "grpc/_cython/_cygrpc/records.pyx":456
 *   @property
 *   def received_message(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving a message")
 *     return self._received_message
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":458
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       raise TypeError("self must be an operation receiving a message")
 *     return self._received_message             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->_received_message));
  __pyx_r = ((PyObject *)__pyx_v_self->_received_message);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":455
 * 
 *   @property
 *   def received_message(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       raise TypeError("self must be an operation receiving a message")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.received_message", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":461
 * 
 *   @property
 *   def received_message_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       return None
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_9received_message_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_9received_message_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_message_or_none (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_8received_message_or_none(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_8received_message_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("received_message_or_none", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":462
 *   @property
 *   def received_message_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:             # <<<<<<<<<<<<<<
 *       return None
 *     return self._received_message
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_MESSAGE) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":463
 *   def received_message_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       return None             # <<<<<<<<<<<<<<
 *     return self._received_message
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":462
 *   @property
 *   def received_message_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:             # <<<<<<<<<<<<<<
 *       return None
 *     return self._received_message
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":464
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       return None
 *     return self._received_message             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->_received_message));
  __pyx_r = ((PyObject *)__pyx_v_self->_received_message);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":461
 * 
 *   @property
 *   def received_message_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       return None
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":467
 * 
 *   @property
 *   def received_metadata(self):             # <<<<<<<<<<<<<<
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_11received_metadata(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_11received_metadata(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_metadata (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_10received_metadata(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_10received_metadata(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("received_metadata", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":468
 *   @property
 *   def received_metadata(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and             # <<<<<<<<<<<<<<
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       raise TypeError("self must be an operation receiving metadata")
 */
  switch (__pyx_v_self->c_op.op) {
    case GRPC_OP_RECV_INITIAL_METADATA:

    /* "grpc/_cython/_cygrpc/records.pyx":469
 *   def received_metadata(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving metadata")
 *     return self._received_metadata
 */
    case GRPC_OP_RECV_STATUS_ON_CLIENT:

    /* "grpc/_cython/_cygrpc/records.pyx":468
 *   @property
 *   def received_metadata(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and             # <<<<<<<<<<<<<<
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       raise TypeError("self must be an operation receiving metadata")
 */
    __pyx_t_1 = 0;
    break;
    default:
    __pyx_t_1 = 1;
    break;
  }
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":470
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       raise TypeError("self must be an operation receiving metadata")             # <<<<<<<<<<<<<<
 *     return self._received_metadata
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

    /* "grpc/_cython/_cygrpc/records.pyx":468
 *   @property
 *   def received_metadata(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and             # <<<<<<<<<<<<<<
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       raise TypeError("self must be an operation receiving metadata")
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":471
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       raise TypeError("self must be an operation receiving metadata")
 *     return self._received_metadata             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->_received_metadata));
  __pyx_r = ((PyObject *)__pyx_v_self->_received_metadata);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":467
 * 
 *   @property
 *   def received_metadata(self):             # <<<<<<<<<<<<<<
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.received_metadata", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":474
 * 
 *   @property
 *   def received_metadata_or_none(self):             # <<<<<<<<<<<<<<
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_13received_metadata_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_13received_metadata_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_metadata_or_none (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_12received_metadata_or_none(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_12received_metadata_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("received_metadata_or_none", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":475
 *   @property
 *   def received_metadata_or_none(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and             # <<<<<<<<<<<<<<
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       return None
 */
  switch (__pyx_v_self->c_op.op) {
    case GRPC_OP_RECV_INITIAL_METADATA:

    /* "grpc/_cython/_cygrpc/records.pyx":476
 *   def received_metadata_or_none(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):             # <<<<<<<<<<<<<<
 *       return None
 *     return self._received_metadata
 */
    case GRPC_OP_RECV_STATUS_ON_CLIENT:

    /* "grpc/_cython/_cygrpc/records.pyx":475
 *   @property
 *   def received_metadata_or_none(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and             # <<<<<<<<<<<<<<
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       return None
 */
    __pyx_t_1 = 0;
    break;
    default:
    __pyx_t_1 = 1;
    break;
  }
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":477
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       return None             # <<<<<<<<<<<<<<
 *     return self._received_metadata
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":475
 *   @property
 *   def received_metadata_or_none(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and             # <<<<<<<<<<<<<<
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       return None
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":478
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       return None
 *     return self._received_metadata             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->_received_metadata));
  __pyx_r = ((PyObject *)__pyx_v_self->_received_metadata);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":474
 * 
 *   @property
 *   def received_metadata_or_none(self):             # <<<<<<<<<<<<<<
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":481
 * 
 *   @property
 *   def received_status_code(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving a status code")
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_15received_status_code(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_15received_status_code(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_status_code (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_14received_status_code(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_14received_status_code(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("received_status_code", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":482
 *   @property
 *   def received_status_code(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving a status code")
 *     return self._received_status_code
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_STATUS_ON_CLIENT) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":483
 *   def received_status_code(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving a status code")             # <<<<<<<<<<<<<<
 *     return self._received_status_code
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

    /* "grpc/_cython/_cygrpc/records.pyx":482
 *   @property
 *   def received_status_code(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving a status code")
 *     return self._received_status_code
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":484
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving a status code")
 *     return self._received_status_code             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(__pyx_v_self->_received_status_code); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":481
 * 
 *   @property
 *   def received_status_code(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving a status code")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.received_status_code", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":487
 * 
 *   @property
 *   def received_status_code_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_17received_status_code_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_17received_status_code_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_status_code_or_none (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_16received_status_code_or_none(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_16received_status_code_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("received_status_code_or_none", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":488
 *   @property
 *   def received_status_code_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       return None
 *     return self._received_status_code
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_STATUS_ON_CLIENT) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":489
 *   def received_status_code_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None             # <<<<<<<<<<<<<<
 *     return self._received_status_code
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":488
 *   @property
 *   def received_status_code_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       return None
 *     return self._received_status_code
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":490
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 *     return self._received_status_code             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(__pyx_v_self->_received_status_code); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":487
 * 
 *   @property
 *   def received_status_code_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.received_status_code_or_none", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":493
 * 
 *   @property
 *   def received_status_details(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving status details")
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_19received_status_details(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_19received_status_details(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_status_details (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_18received_status_details(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_18received_status_details(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("received_status_details", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":494
 *   @property
 *   def received_status_details(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving status details")
 *     if self._received_status_details:
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_STATUS_ON_CLIENT) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":495
 *   def received_status_details(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving status details")             # <<<<<<<<<<<<<<
 *     if self._received_status_details:
 *       return self._received_status_details
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

    /* "grpc/_cython/_cygrpc/records.pyx":494
 *   @property
 *   def received_status_details(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving status details")
 *     if self._received_status_details:
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":496
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving status details")
 *     if self._received_status_details:             # <<<<<<<<<<<<<<
 *       return self._received_status_details
 *     else:
 */
  __pyx_t_1 = (__pyx_v_self->_received_status_details != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":497
 *       raise TypeError("self must be an operation receiving status details")
 *     if self._received_status_details:
 *       return self._received_status_details             # <<<<<<<<<<<<<<
 *     else:
 *       return None
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->_received_status_details); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":496
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving status details")
 *     if self._received_status_details:             # <<<<<<<<<<<<<<
 *       return self._received_status_details
 *     else:
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":499
 *       return self._received_status_details
 *     else:
 *       return None             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":493
 * 
 *   @property
 *   def received_status_details(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving status details")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.received_status_details", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":502
 * 
 *   @property
 *   def received_status_details_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_21received_status_details_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_21received_status_details_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_status_details_or_none (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_20received_status_details_or_none(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_20received_status_details_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("received_status_details_or_none", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":503
 *   @property
 *   def received_status_details_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       return None
 *     if self._received_status_details:
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_STATUS_ON_CLIENT) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":504
 *   def received_status_details_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None             # <<<<<<<<<<<<<<
 *     if self._received_status_details:
 *       return self._received_status_details
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":503
 *   @property
 *   def received_status_details_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       return None
 *     if self._received_status_details:
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":505
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 *     if self._received_status_details:             # <<<<<<<<<<<<<<
 *       return self._received_status_details
 *     else:
 */
  __pyx_t_1 = (__pyx_v_self->_received_status_details != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":506
 *       return None
 *     if self._received_status_details:
 *       return self._received_status_details             # <<<<<<<<<<<<<<
 *     else:
 *       return None
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->_received_status_details); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":505
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 *     if self._received_status_details:             # <<<<<<<<<<<<<<
 *       return self._received_status_details
 *     else:
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":508
 *       return self._received_status_details
 *     else:
 *       return None             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":502
 * 
 *   @property
 *   def received_status_details_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.received_status_details_or_none", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":511
 * 
 *   @property
 *   def received_cancelled(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       raise TypeError("self must be an operation receiving cancellation "
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_23received_cancelled(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_23received_cancelled(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_cancelled (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_22received_cancelled(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_22received_cancelled(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("received_cancelled", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":512
 *   @property
 *   def received_cancelled(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving cancellation "
 *                       "information")
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_CLOSE_ON_SERVER) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":513
 *   def received_cancelled(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       raise TypeError("self must be an operation receiving cancellation "             # <<<<<<<<<<<<<<
 *                       "information")
 *     return False if self._received_cancelled == 0 else True
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

    /* "grpc/_cython/_cygrpc/records.pyx":512
 *   @property
 *   def received_cancelled(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:             # <<<<<<<<<<<<<<
 *       raise TypeError("self must be an operation receiving cancellation "
 *                       "information")
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":515
 *       raise TypeError("self must be an operation receiving cancellation "
 *                       "information")
 *     return False if self._received_cancelled == 0 else True             # <<<<<<<<<<<<<<
 * 
 *   @property
 */
  __Pyx_XDECREF(__pyx_r);
  if (((__pyx_v_self->_received_cancelled == 0) != 0)) {
    __Pyx_INCREF(Py_False);
    __pyx_t_2 = Py_False;
  } else {
    __Pyx_INCREF(Py_True);
    __pyx_t_2 = Py_True;
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":511
 * 
 *   @property
 *   def received_cancelled(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       raise TypeError("self must be an operation receiving cancellation "
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.received_cancelled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":518
 * 
 *   @property
 *   def received_cancelled_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       return None
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_25received_cancelled_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_25received_cancelled_or_none(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("received_cancelled_or_none (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_24received_cancelled_or_none(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_24received_cancelled_or_none(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("received_cancelled_or_none", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":519
 *   @property
 *   def received_cancelled_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:             # <<<<<<<<<<<<<<
 *       return None
 *     return False if self._received_cancelled == 0 else True
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op != GRPC_OP_RECV_CLOSE_ON_SERVER) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":520
 *   def received_cancelled_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       return None             # <<<<<<<<<<<<<<
 *     return False if self._received_cancelled == 0 else True
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":519
 *   @property
 *   def received_cancelled_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:             # <<<<<<<<<<<<<<
 *       return None
 *     return False if self._received_cancelled == 0 else True
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":521
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       return None
 *     return False if self._received_cancelled == 0 else True             # <<<<<<<<<<<<<<
 * 
 *   def __dealloc__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  if (((__pyx_v_self->_received_cancelled == 0) != 0)) {
    __Pyx_INCREF(Py_False);
    __pyx_t_2 = Py_False;
  } else {
    __Pyx_INCREF(Py_True);
    __pyx_t_2 = Py_True;
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":518
 * 
 *   @property
 *   def received_cancelled_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       return None
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":523
 *     return False if self._received_cancelled == 0 else True
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     # We *almost* don't need to do anything; most of the objects are handled by
 *     # Python. The remaining one(s) are primitive fields filled in by GRPC core.
 */

/* Python wrapper */
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_27__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_27__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_26__dealloc__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_26__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":527
 *     # Python. The remaining one(s) are primitive fields filled in by GRPC core.
 *     # This means that we need to clean up after receive_status_on_client.
 *     if self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       grpc.gpr_free(self._received_status_details)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->c_op.op == GRPC_OP_RECV_STATUS_ON_CLIENT) != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":528
 *     # This means that we need to clean up after receive_status_on_client.
 *     if self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       grpc.gpr_free(self._received_status_details)             # <<<<<<<<<<<<<<
 * 
 * def operation_send_initial_metadata(Metadata metadata):
 */
    gpr_free(__pyx_v_self->_received_status_details);

    /* "grpc/_cython/_cygrpc/records.pyx":527
 *     # Python. The remaining one(s) are primitive fields filled in by GRPC core.
 *     # This means that we need to clean up after receive_status_on_client.
 *     if self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:             # <<<<<<<<<<<<<<
 *       grpc.gpr_free(self._received_status_details)
 * 
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":523
 *     return False if self._received_cancelled == 0 else True
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     # We *almost* don't need to do anything; most of the objects are handled by
 *     # Python. The remaining one(s) are primitive fields filled in by GRPC core.
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "grpc/_cython/_cygrpc/records.pxd":121
 *   cdef size_t _received_status_details_capacity
 *   cdef int _received_cancelled
 *   cdef readonly bint is_valid             # <<<<<<<<<<<<<<
 *   cdef object references
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_8is_valid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_8is_valid_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_8is_valid___get__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_9Operation_8is_valid___get__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->is_valid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operation.is_valid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":530
 *       grpc.gpr_free(self._received_status_details)
 * 
 * def operation_send_initial_metadata(Metadata metadata):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_1operation_send_initial_metadata(PyObject *__pyx_self, PyObject *__pyx_v_metadata); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_1operation_send_initial_metadata = {"operation_send_initial_metadata", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_1operation_send_initial_metadata, METH_O, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_1operation_send_initial_metadata(PyObject *__pyx_self, PyObject *__pyx_v_metadata) {
  CYTHON_UNUSED int __pyx_lineno = 0;
  CYTHON_UNUSED const char *__pyx_filename = NULL;
  CYTHON_UNUSED int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_send_initial_metadata (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metadata), __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata, 1, "metadata", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_operation_send_initial_metadata(__pyx_self, ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_v_metadata));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_operation_send_initial_metadata(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  grpc_metadata *__pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_send_initial_metadata", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":531
 * 
 * def operation_send_initial_metadata(Metadata metadata):
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA
 *   op.c_op.data.send_initial_metadata.count = metadata.c_metadata_array.count
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":532
 * def operation_send_initial_metadata(Metadata metadata):
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA             # <<<<<<<<<<<<<<
 *   op.c_op.data.send_initial_metadata.count = metadata.c_metadata_array.count
 *   op.c_op.data.send_initial_metadata.metadata = (
 */
  __pyx_v_op->c_op.op = GRPC_OP_SEND_INITIAL_METADATA;

  /* "grpc/_cython/_cygrpc/records.pyx":533
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA
 *   op.c_op.data.send_initial_metadata.count = metadata.c_metadata_array.count             # <<<<<<<<<<<<<<
 *   op.c_op.data.send_initial_metadata.metadata = (
 *       metadata.c_metadata_array.metadata)
 */
  __pyx_t_2 = __pyx_v_metadata->c_metadata_array.count;
  __pyx_v_op->c_op.data.send_initial_metadata.count = __pyx_t_2;

  /* "grpc/_cython/_cygrpc/records.pyx":535
 *   op.c_op.data.send_initial_metadata.count = metadata.c_metadata_array.count
 *   op.c_op.data.send_initial_metadata.metadata = (
 *       metadata.c_metadata_array.metadata)             # <<<<<<<<<<<<<<
 *   op.references.append(metadata)
 *   op.is_valid = True
 */
  __pyx_t_3 = __pyx_v_metadata->c_metadata_array.metadata;

  /* "grpc/_cython/_cygrpc/records.pyx":534
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA
 *   op.c_op.data.send_initial_metadata.count = metadata.c_metadata_array.count
 *   op.c_op.data.send_initial_metadata.metadata = (             # <<<<<<<<<<<<<<
 *       metadata.c_metadata_array.metadata)
 *   op.references.append(metadata)
 */
  __pyx_v_op->c_op.data.send_initial_metadata.metadata = __pyx_t_3;

  /* "grpc/_cython/_cygrpc/records.pyx":536
 *   op.c_op.data.send_initial_metadata.metadata = (
 *       metadata.c_metadata_array.metadata)
 *   op.references.append(metadata)             # <<<<<<<<<<<<<<
 *   op.is_valid = True
 *   return op
 */
  __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_op->references, ((PyObject *)__pyx_v_metadata)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":537
 *       metadata.c_metadata_array.metadata)
 *   op.references.append(metadata)
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":538
 *   op.references.append(metadata)
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * def operation_send_message(data):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":530
 *       grpc.gpr_free(self._received_status_details)
 * 
 * def operation_send_initial_metadata(Metadata metadata):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_send_initial_metadata", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":540
 *   return op
 * 
 * def operation_send_message(data):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_3operation_send_message(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_3operation_send_message = {"operation_send_message", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_3operation_send_message, METH_O, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_3operation_send_message(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_send_message (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_2operation_send_message(__pyx_self, ((PyObject *)__pyx_v_data));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_2operation_send_message(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *__pyx_v_byte_buffer = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  grpc_byte_buffer *__pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_send_message", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":541
 * 
 * def operation_send_message(data):
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE
 *   byte_buffer = ByteBuffer(data)
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":542
 * def operation_send_message(data):
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE             # <<<<<<<<<<<<<<
 *   byte_buffer = ByteBuffer(data)
 *   op.c_op.data.send_message = byte_buffer.c_byte_buffer
 */
  __pyx_v_op->c_op.op = GRPC_OP_SEND_MESSAGE;

  /* "grpc/_cython/_cygrpc/records.pyx":543
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE
 *   byte_buffer = ByteBuffer(data)             # <<<<<<<<<<<<<<
 *   op.c_op.data.send_message = byte_buffer.c_byte_buffer
 *   op.references.append(byte_buffer)
 */
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_data);
  __Pyx_GIVEREF(__pyx_v_data);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_data);
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ByteBuffer), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_byte_buffer = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":544
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE
 *   byte_buffer = ByteBuffer(data)
 *   op.c_op.data.send_message = byte_buffer.c_byte_buffer             # <<<<<<<<<<<<<<
 *   op.references.append(byte_buffer)
 *   op.is_valid = True
 */
  __pyx_t_3 = __pyx_v_byte_buffer->c_byte_buffer;
  __pyx_v_op->c_op.data.send_message = __pyx_t_3;

  /* "grpc/_cython/_cygrpc/records.pyx":545
 *   byte_buffer = ByteBuffer(data)
 *   op.c_op.data.send_message = byte_buffer.c_byte_buffer
 *   op.references.append(byte_buffer)             # <<<<<<<<<<<<<<
 *   op.is_valid = True
 *   return op
 */
  __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_op->references, ((PyObject *)__pyx_v_byte_buffer)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":546
 *   op.c_op.data.send_message = byte_buffer.c_byte_buffer
 *   op.references.append(byte_buffer)
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":547
 *   op.references.append(byte_buffer)
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * def operation_send_close_from_client():
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":540
 *   return op
 * 
 * def operation_send_message(data):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_send_message", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XDECREF((PyObject *)__pyx_v_byte_buffer);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":549
 *   return op
 * 
 * def operation_send_close_from_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5operation_send_close_from_client(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_5operation_send_close_from_client = {"operation_send_close_from_client", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5operation_send_close_from_client, METH_NOARGS, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5operation_send_close_from_client(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_send_close_from_client (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_4operation_send_close_from_client(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_4operation_send_close_from_client(CYTHON_UNUSED PyObject *__pyx_self) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_send_close_from_client", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":550
 * 
 * def operation_send_close_from_client():
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 *   op.is_valid = True
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":551
 * def operation_send_close_from_client():
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT             # <<<<<<<<<<<<<<
 *   op.is_valid = True
 *   return op
 */
  __pyx_v_op->c_op.op = GRPC_OP_SEND_CLOSE_FROM_CLIENT;

  /* "grpc/_cython/_cygrpc/records.pyx":552
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":553
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * def operation_send_status_from_server(
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":549
 *   return op
 * 
 * def operation_send_close_from_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_send_close_from_client", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":555
 *   return op
 * 
 * def operation_send_status_from_server(             # <<<<<<<<<<<<<<
 *     Metadata metadata, grpc.grpc_status_code code, details):
 *   if isinstance(details, bytes):
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_7operation_send_status_from_server(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_7operation_send_status_from_server = {"operation_send_status_from_server", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_7operation_send_status_from_server, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_7operation_send_status_from_server(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata = 0;
  grpc_status_code __pyx_v_code;
  PyObject *__pyx_v_details = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_send_status_from_server (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_metadata,&__pyx_n_s_code,&__pyx_n_s_details,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_metadata)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("operation_send_status_from_server", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_details)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("operation_send_status_from_server", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "operation_send_status_from_server") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)values[0]);
    __pyx_v_code = ((grpc_status_code)__Pyx_PyInt_As_grpc_status_code(values[1])); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_details = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("operation_send_status_from_server", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_send_status_from_server", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metadata), __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata, 1, "metadata", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_6operation_send_status_from_server(__pyx_self, __pyx_v_metadata, __pyx_v_code, __pyx_v_details);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_6operation_send_status_from_server(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *__pyx_v_metadata, grpc_status_code __pyx_v_code, PyObject *__pyx_v_details) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  grpc_metadata *__pyx_t_7;
  char const *__pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_send_status_from_server", 0);
  __Pyx_INCREF(__pyx_v_details);

  /* "grpc/_cython/_cygrpc/records.pyx":557
 * def operation_send_status_from_server(
 *     Metadata metadata, grpc.grpc_status_code code, details):
 *   if isinstance(details, bytes):             # <<<<<<<<<<<<<<
 *     pass
 *   elif isinstance(details, basestring):
 */
  __pyx_t_1 = PyBytes_Check(__pyx_v_details); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":559
 *   if isinstance(details, bytes):
 *     pass
 *   elif isinstance(details, basestring):             # <<<<<<<<<<<<<<
 *     details = details.encode()
 *   else:
 */
  __pyx_t_2 = __Pyx_PyBaseString_Check(__pyx_v_details); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "grpc/_cython/_cygrpc/records.pyx":560
 *     pass
 *   elif isinstance(details, basestring):
 *     details = details.encode()             # <<<<<<<<<<<<<<
 *   else:
 *     raise TypeError("expected a str or bytes object for details")
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_details, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_details, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":559
 *   if isinstance(details, bytes):
 *     pass
 *   elif isinstance(details, basestring):             # <<<<<<<<<<<<<<
 *     details = details.encode()
 *   else:
 */
    goto __pyx_L3;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":562
 *     details = details.encode()
 *   else:
 *     raise TypeError("expected a str or bytes object for details")             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L3:;

  /* "grpc/_cython/_cygrpc/records.pyx":563
 *   else:
 *     raise TypeError("expected a str or bytes object for details")
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 *   op.c_op.data.send_status_from_server.trailing_metadata_count = (
 */
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":564
 *     raise TypeError("expected a str or bytes object for details")
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER             # <<<<<<<<<<<<<<
 *   op.c_op.data.send_status_from_server.trailing_metadata_count = (
 *       metadata.c_metadata_array.count)
 */
  __pyx_v_op->c_op.op = GRPC_OP_SEND_STATUS_FROM_SERVER;

  /* "grpc/_cython/_cygrpc/records.pyx":566
 *   op.c_op.type = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 *   op.c_op.data.send_status_from_server.trailing_metadata_count = (
 *       metadata.c_metadata_array.count)             # <<<<<<<<<<<<<<
 *   op.c_op.data.send_status_from_server.trailing_metadata = (
 *       metadata.c_metadata_array.metadata)
 */
  __pyx_t_6 = __pyx_v_metadata->c_metadata_array.count;

  /* "grpc/_cython/_cygrpc/records.pyx":565
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 *   op.c_op.data.send_status_from_server.trailing_metadata_count = (             # <<<<<<<<<<<<<<
 *       metadata.c_metadata_array.count)
 *   op.c_op.data.send_status_from_server.trailing_metadata = (
 */
  __pyx_v_op->c_op.data.send_status_from_server.trailing_metadata_count = __pyx_t_6;

  /* "grpc/_cython/_cygrpc/records.pyx":568
 *       metadata.c_metadata_array.count)
 *   op.c_op.data.send_status_from_server.trailing_metadata = (
 *       metadata.c_metadata_array.metadata)             # <<<<<<<<<<<<<<
 *   op.c_op.data.send_status_from_server.status = code
 *   op.c_op.data.send_status_from_server.status_details = details
 */
  __pyx_t_7 = __pyx_v_metadata->c_metadata_array.metadata;

  /* "grpc/_cython/_cygrpc/records.pyx":567
 *   op.c_op.data.send_status_from_server.trailing_metadata_count = (
 *       metadata.c_metadata_array.count)
 *   op.c_op.data.send_status_from_server.trailing_metadata = (             # <<<<<<<<<<<<<<
 *       metadata.c_metadata_array.metadata)
 *   op.c_op.data.send_status_from_server.status = code
 */
  __pyx_v_op->c_op.data.send_status_from_server.trailing_metadata = __pyx_t_7;

  /* "grpc/_cython/_cygrpc/records.pyx":569
 *   op.c_op.data.send_status_from_server.trailing_metadata = (
 *       metadata.c_metadata_array.metadata)
 *   op.c_op.data.send_status_from_server.status = code             # <<<<<<<<<<<<<<
 *   op.c_op.data.send_status_from_server.status_details = details
 *   op.references.append(metadata)
 */
  __pyx_v_op->c_op.data.send_status_from_server.status = __pyx_v_code;

  /* "grpc/_cython/_cygrpc/records.pyx":570
 *       metadata.c_metadata_array.metadata)
 *   op.c_op.data.send_status_from_server.status = code
 *   op.c_op.data.send_status_from_server.status_details = details             # <<<<<<<<<<<<<<
 *   op.references.append(metadata)
 *   op.references.append(details)
 */
  __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_details); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_v_op->c_op.data.send_status_from_server.status_details = __pyx_t_8;

  /* "grpc/_cython/_cygrpc/records.pyx":571
 *   op.c_op.data.send_status_from_server.status = code
 *   op.c_op.data.send_status_from_server.status_details = details
 *   op.references.append(metadata)             # <<<<<<<<<<<<<<
 *   op.references.append(details)
 *   op.is_valid = True
 */
  __pyx_t_9 = __Pyx_PyObject_Append(__pyx_v_op->references, ((PyObject *)__pyx_v_metadata)); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":572
 *   op.c_op.data.send_status_from_server.status_details = details
 *   op.references.append(metadata)
 *   op.references.append(details)             # <<<<<<<<<<<<<<
 *   op.is_valid = True
 *   return op
 */
  __pyx_t_9 = __Pyx_PyObject_Append(__pyx_v_op->references, __pyx_v_details); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":573
 *   op.references.append(metadata)
 *   op.references.append(details)
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":574
 *   op.references.append(details)
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * def operation_receive_initial_metadata():
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":555
 *   return op
 * 
 * def operation_send_status_from_server(             # <<<<<<<<<<<<<<
 *     Metadata metadata, grpc.grpc_status_code code, details):
 *   if isinstance(details, bytes):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_send_status_from_server", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XDECREF(__pyx_v_details);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":576
 *   return op
 * 
 * def operation_receive_initial_metadata():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9operation_receive_initial_metadata(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_9operation_receive_initial_metadata = {"operation_receive_initial_metadata", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9operation_receive_initial_metadata, METH_NOARGS, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9operation_receive_initial_metadata(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_receive_initial_metadata (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_8operation_receive_initial_metadata(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_8operation_receive_initial_metadata(CYTHON_UNUSED PyObject *__pyx_self) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_receive_initial_metadata", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":577
 * 
 * def operation_receive_initial_metadata():
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA
 *   op._received_metadata = Metadata([])
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":578
 * def operation_receive_initial_metadata():
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA             # <<<<<<<<<<<<<<
 *   op._received_metadata = Metadata([])
 *   op.c_op.data.receive_initial_metadata = (
 */
  __pyx_v_op->c_op.op = GRPC_OP_RECV_INITIAL_METADATA;

  /* "grpc/_cython/_cygrpc/records.pyx":579
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA
 *   op._received_metadata = Metadata([])             # <<<<<<<<<<<<<<
 *   op.c_op.data.receive_initial_metadata = (
 *       &op._received_metadata.c_metadata_array)
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_op->_received_metadata);
  __Pyx_DECREF(((PyObject *)__pyx_v_op->_received_metadata));
  __pyx_v_op->_received_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":580
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA
 *   op._received_metadata = Metadata([])
 *   op.c_op.data.receive_initial_metadata = (             # <<<<<<<<<<<<<<
 *       &op._received_metadata.c_metadata_array)
 *   op.is_valid = True
 */
  __pyx_v_op->c_op.data.recv_initial_metadata = (&__pyx_v_op->_received_metadata->c_metadata_array);

  /* "grpc/_cython/_cygrpc/records.pyx":582
 *   op.c_op.data.receive_initial_metadata = (
 *       &op._received_metadata.c_metadata_array)
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":583
 *       &op._received_metadata.c_metadata_array)
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * def operation_receive_message():
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":576
 *   return op
 * 
 * def operation_receive_initial_metadata():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_receive_initial_metadata", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":585
 *   return op
 * 
 * def operation_receive_message():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11operation_receive_message(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_11operation_receive_message = {"operation_receive_message", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11operation_receive_message, METH_NOARGS, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11operation_receive_message(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_receive_message (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10operation_receive_message(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10operation_receive_message(CYTHON_UNUSED PyObject *__pyx_self) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_receive_message", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":586
 * 
 * def operation_receive_message():
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE
 *   op._received_message = ByteBuffer(None)
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":587
 * def operation_receive_message():
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE             # <<<<<<<<<<<<<<
 *   op._received_message = ByteBuffer(None)
 *   # n.b. the c_op.data.receive_message field needs to be deleted by us,
 */
  __pyx_v_op->c_op.op = GRPC_OP_RECV_MESSAGE;

  /* "grpc/_cython/_cygrpc/records.pyx":588
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE
 *   op._received_message = ByteBuffer(None)             # <<<<<<<<<<<<<<
 *   # n.b. the c_op.data.receive_message field needs to be deleted by us,
 *   # anyway, so we just let that be handled by the ByteBuffer() we allocated
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ByteBuffer), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_op->_received_message);
  __Pyx_DECREF(((PyObject *)__pyx_v_op->_received_message));
  __pyx_v_op->_received_message = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":592
 *   # anyway, so we just let that be handled by the ByteBuffer() we allocated
 *   # the line before.
 *   op.c_op.data.receive_message = &op._received_message.c_byte_buffer             # <<<<<<<<<<<<<<
 *   op.is_valid = True
 *   return op
 */
  __pyx_v_op->c_op.data.recv_message = (&__pyx_v_op->_received_message->c_byte_buffer);

  /* "grpc/_cython/_cygrpc/records.pyx":593
 *   # the line before.
 *   op.c_op.data.receive_message = &op._received_message.c_byte_buffer
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":594
 *   op.c_op.data.receive_message = &op._received_message.c_byte_buffer
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * def operation_receive_status_on_client():
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":585
 *   return op
 * 
 * def operation_receive_message():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_receive_message", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":596
 *   return op
 * 
 * def operation_receive_status_on_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_13operation_receive_status_on_client(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_13operation_receive_status_on_client = {"operation_receive_status_on_client", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_13operation_receive_status_on_client, METH_NOARGS, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_13operation_receive_status_on_client(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_receive_status_on_client (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_12operation_receive_status_on_client(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_12operation_receive_status_on_client(CYTHON_UNUSED PyObject *__pyx_self) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_receive_status_on_client", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":597
 * 
 * def operation_receive_status_on_client():
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 *   op._received_metadata = Metadata([])
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":598
 * def operation_receive_status_on_client():
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT             # <<<<<<<<<<<<<<
 *   op._received_metadata = Metadata([])
 *   op.c_op.data.receive_status_on_client.trailing_metadata = (
 */
  __pyx_v_op->c_op.op = GRPC_OP_RECV_STATUS_ON_CLIENT;

  /* "grpc/_cython/_cygrpc/records.pyx":599
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 *   op._received_metadata = Metadata([])             # <<<<<<<<<<<<<<
 *   op.c_op.data.receive_status_on_client.trailing_metadata = (
 *       &op._received_metadata.c_metadata_array)
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_op->_received_metadata);
  __Pyx_DECREF(((PyObject *)__pyx_v_op->_received_metadata));
  __pyx_v_op->_received_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":600
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 *   op._received_metadata = Metadata([])
 *   op.c_op.data.receive_status_on_client.trailing_metadata = (             # <<<<<<<<<<<<<<
 *       &op._received_metadata.c_metadata_array)
 *   op.c_op.data.receive_status_on_client.status = (
 */
  __pyx_v_op->c_op.data.recv_status_on_client.trailing_metadata = (&__pyx_v_op->_received_metadata->c_metadata_array);

  /* "grpc/_cython/_cygrpc/records.pyx":602
 *   op.c_op.data.receive_status_on_client.trailing_metadata = (
 *       &op._received_metadata.c_metadata_array)
 *   op.c_op.data.receive_status_on_client.status = (             # <<<<<<<<<<<<<<
 *       &op._received_status_code)
 *   op.c_op.data.receive_status_on_client.status_details = (
 */
  __pyx_v_op->c_op.data.recv_status_on_client.status = (&__pyx_v_op->_received_status_code);

  /* "grpc/_cython/_cygrpc/records.pyx":604
 *   op.c_op.data.receive_status_on_client.status = (
 *       &op._received_status_code)
 *   op.c_op.data.receive_status_on_client.status_details = (             # <<<<<<<<<<<<<<
 *       &op._received_status_details)
 *   op.c_op.data.receive_status_on_client.status_details_capacity = (
 */
  __pyx_v_op->c_op.data.recv_status_on_client.status_details = (&__pyx_v_op->_received_status_details);

  /* "grpc/_cython/_cygrpc/records.pyx":606
 *   op.c_op.data.receive_status_on_client.status_details = (
 *       &op._received_status_details)
 *   op.c_op.data.receive_status_on_client.status_details_capacity = (             # <<<<<<<<<<<<<<
 *       &op._received_status_details_capacity)
 *   op.is_valid = True
 */
  __pyx_v_op->c_op.data.recv_status_on_client.status_details_capacity = (&__pyx_v_op->_received_status_details_capacity);

  /* "grpc/_cython/_cygrpc/records.pyx":608
 *   op.c_op.data.receive_status_on_client.status_details_capacity = (
 *       &op._received_status_details_capacity)
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":609
 *       &op._received_status_details_capacity)
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * def operation_receive_close_on_server():
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":596
 *   return op
 * 
 * def operation_receive_status_on_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_receive_status_on_client", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":611
 *   return op
 * 
 * def operation_receive_close_on_server():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_15operation_receive_close_on_server(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4grpc_7_cython_7_cygrpc_7records_15operation_receive_close_on_server = {"operation_receive_close_on_server", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_15operation_receive_close_on_server, METH_NOARGS, 0};
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_15operation_receive_close_on_server(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("operation_receive_close_on_server (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_14operation_receive_close_on_server(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_14operation_receive_close_on_server(CYTHON_UNUSED PyObject *__pyx_self) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *__pyx_v_op = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("operation_receive_close_on_server", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":612
 * 
 * def operation_receive_close_on_server():
 *   cdef Operation op = Operation()             # <<<<<<<<<<<<<<
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 *   op.c_op.data.receive_close_on_server.cancelled = &op._received_cancelled
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_op = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":613
 * def operation_receive_close_on_server():
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER             # <<<<<<<<<<<<<<
 *   op.c_op.data.receive_close_on_server.cancelled = &op._received_cancelled
 *   op.is_valid = True
 */
  __pyx_v_op->c_op.op = GRPC_OP_RECV_CLOSE_ON_SERVER;

  /* "grpc/_cython/_cygrpc/records.pyx":614
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 *   op.c_op.data.receive_close_on_server.cancelled = &op._received_cancelled             # <<<<<<<<<<<<<<
 *   op.is_valid = True
 *   return op
 */
  __pyx_v_op->c_op.data.recv_close_on_server.cancelled = (&__pyx_v_op->_received_cancelled);

  /* "grpc/_cython/_cygrpc/records.pyx":615
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 *   op.c_op.data.receive_close_on_server.cancelled = &op._received_cancelled
 *   op.is_valid = True             # <<<<<<<<<<<<<<
 *   return op
 * 
 */
  __pyx_v_op->is_valid = 1;

  /* "grpc/_cython/_cygrpc/records.pyx":616
 *   op.c_op.data.receive_close_on_server.cancelled = &op._received_cancelled
 *   op.is_valid = True
 *   return op             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_op));
  __pyx_r = ((PyObject *)__pyx_v_op);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":611
 *   return op
 * 
 * def operation_receive_close_on_server():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.operation_receive_close_on_server", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_op);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":624
 *   cdef Operations operations
 * 
 *   def __cinit__(self, Operations operations not None):             # <<<<<<<<<<<<<<
 *     self.i = 0
 *     self.operations = operations
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_operations = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_operations,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operations)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)values[0]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records._OperationsIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_operations), __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operations, 0, "operations", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *)__pyx_v_self), __pyx_v_operations);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *__pyx_v_self, struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_operations) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":625
 * 
 *   def __cinit__(self, Operations operations not None):
 *     self.i = 0             # <<<<<<<<<<<<<<
 *     self.operations = operations
 * 
 */
  __pyx_v_self->i = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":626
 *   def __cinit__(self, Operations operations not None):
 *     self.i = 0
 *     self.operations = operations             # <<<<<<<<<<<<<<
 * 
 *   def __iter__(self):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_operations));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_operations));
  __Pyx_GOTREF(__pyx_v_self->operations);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->operations));
  __pyx_v_self->operations = __pyx_v_operations;

  /* "grpc/_cython/_cygrpc/records.pyx":624
 *   cdef Operations operations
 * 
 *   def __cinit__(self, Operations operations not None):             # <<<<<<<<<<<<<<
 *     self.i = 0
 *     self.operations = operations
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":628
 *     self.operations = operations
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_3__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_3__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_2__iter__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_2__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":629
 * 
 *   def __iter__(self):
 *     return self             # <<<<<<<<<<<<<<
 * 
 *   def __next__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":628
 *     self.operations = operations
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":631
 *     return self
 * 
 *   def __next__(self):             # <<<<<<<<<<<<<<
 *     if self.i < len(self.operations):
 *       result = self.operations[self.i]
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_5__next__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_5__next__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__next__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_4__next__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_4__next__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *__pyx_v_self) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__next__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":632
 * 
 *   def __next__(self):
 *     if self.i < len(self.operations):             # <<<<<<<<<<<<<<
 *       result = self.operations[self.i]
 *       self.i = self.i + 1
 */
  __pyx_t_1 = ((PyObject *)__pyx_v_self->operations);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = ((__pyx_v_self->i < __pyx_t_2) != 0);
  if (__pyx_t_3) {

    /* "grpc/_cython/_cygrpc/records.pyx":633
 *   def __next__(self):
 *     if self.i < len(self.operations):
 *       result = self.operations[self.i]             # <<<<<<<<<<<<<<
 *       self.i = self.i + 1
 *       return result
 */
    __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_self->operations), __pyx_v_self->i, size_t, 0, __Pyx_PyInt_FromSize_t, 0, 0, 1); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_result = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":634
 *     if self.i < len(self.operations):
 *       result = self.operations[self.i]
 *       self.i = self.i + 1             # <<<<<<<<<<<<<<
 *       return result
 *     else:
 */
    __pyx_v_self->i = (__pyx_v_self->i + 1);

    /* "grpc/_cython/_cygrpc/records.pyx":635
 *       result = self.operations[self.i]
 *       self.i = self.i + 1
 *       return result             # <<<<<<<<<<<<<<
 *     else:
 *       raise StopIteration
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_result);
    __pyx_r = __pyx_v_result;
    goto __pyx_L0;

    /* "grpc/_cython/_cygrpc/records.pyx":632
 * 
 *   def __next__(self):
 *     if self.i < len(self.operations):             # <<<<<<<<<<<<<<
 *       result = self.operations[self.i]
 *       self.i = self.i + 1
 */
  }

  /* "grpc/_cython/_cygrpc/records.pyx":637
 *       return result
 *     else:
 *       raise StopIteration             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }

  /* "grpc/_cython/_cygrpc/records.pyx":631
 *     return self
 * 
 *   def __next__(self):             # <<<<<<<<<<<<<<
 *     if self.i < len(self.operations):
 *       result = self.operations[self.i]
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records._OperationsIterator.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":642
 * cdef class Operations:
 * 
 *   def __cinit__(self, operations):             # <<<<<<<<<<<<<<
 *     self.operations = list(operations)  # normalize iterable
 *     self.c_ops = NULL
 */

/* Python wrapper */
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_operations = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_operations,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operations)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_operations = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operations.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations___cinit__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)__pyx_v_self), __pyx_v_operations);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations___cinit__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self, PyObject *__pyx_v_operations) {
  PyObject *__pyx_v_operation = NULL;
  size_t __pyx_v_i;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  size_t __pyx_t_6;
  size_t __pyx_t_7;
  grpc_op __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":643
 * 
 *   def __cinit__(self, operations):
 *     self.operations = list(operations)  # normalize iterable             # <<<<<<<<<<<<<<
 *     self.c_ops = NULL
 *     self.c_nops = 0
 */
  __pyx_t_1 = PySequence_List(__pyx_v_operations); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->operations);
  __Pyx_DECREF(__pyx_v_self->operations);
  __pyx_v_self->operations = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":644
 *   def __cinit__(self, operations):
 *     self.operations = list(operations)  # normalize iterable
 *     self.c_ops = NULL             # <<<<<<<<<<<<<<
 *     self.c_nops = 0
 *     for operation in self.operations:
 */
  __pyx_v_self->c_ops = NULL;

  /* "grpc/_cython/_cygrpc/records.pyx":645
 *     self.operations = list(operations)  # normalize iterable
 *     self.c_ops = NULL
 *     self.c_nops = 0             # <<<<<<<<<<<<<<
 *     for operation in self.operations:
 *       if not isinstance(operation, Operation):
 */
  __pyx_v_self->c_nops = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":646
 *     self.c_ops = NULL
 *     self.c_nops = 0
 *     for operation in self.operations:             # <<<<<<<<<<<<<<
 *       if not isinstance(operation, Operation):
 *         raise TypeError("expected operations to be iterable of Operation")
 */
  if (unlikely(__pyx_v_self->operations == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_t_1 = __pyx_v_self->operations; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_COMPILING_IN_CPYTHON
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_operation, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "grpc/_cython/_cygrpc/records.pyx":647
 *     self.c_nops = 0
 *     for operation in self.operations:
 *       if not isinstance(operation, Operation):             # <<<<<<<<<<<<<<
 *         raise TypeError("expected operations to be iterable of Operation")
 *     self.c_nops = len(self.operations)
 */
    __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_operation, __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation); 
    __pyx_t_5 = ((!(__pyx_t_4 != 0)) != 0);
    if (__pyx_t_5) {

      /* "grpc/_cython/_cygrpc/records.pyx":648
 *     for operation in self.operations:
 *       if not isinstance(operation, Operation):
 *         raise TypeError("expected operations to be iterable of Operation")             # <<<<<<<<<<<<<<
 *     self.c_nops = len(self.operations)
 *     self.c_ops = <grpc.grpc_op *>grpc.gpr_malloc(
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

      /* "grpc/_cython/_cygrpc/records.pyx":647
 *     self.c_nops = 0
 *     for operation in self.operations:
 *       if not isinstance(operation, Operation):             # <<<<<<<<<<<<<<
 *         raise TypeError("expected operations to be iterable of Operation")
 *     self.c_nops = len(self.operations)
 */
    }

    /* "grpc/_cython/_cygrpc/records.pyx":646
 *     self.c_ops = NULL
 *     self.c_nops = 0
 *     for operation in self.operations:             # <<<<<<<<<<<<<<
 *       if not isinstance(operation, Operation):
 *         raise TypeError("expected operations to be iterable of Operation")
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":649
 *       if not isinstance(operation, Operation):
 *         raise TypeError("expected operations to be iterable of Operation")
 *     self.c_nops = len(self.operations)             # <<<<<<<<<<<<<<
 *     self.c_ops = <grpc.grpc_op *>grpc.gpr_malloc(
 *         sizeof(grpc.grpc_op)*self.c_nops)
 */
  __pyx_t_1 = __pyx_v_self->operations;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_t_2 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_nops = __pyx_t_2;

  /* "grpc/_cython/_cygrpc/records.pyx":650
 *         raise TypeError("expected operations to be iterable of Operation")
 *     self.c_nops = len(self.operations)
 *     self.c_ops = <grpc.grpc_op *>grpc.gpr_malloc(             # <<<<<<<<<<<<<<
 *         sizeof(grpc.grpc_op)*self.c_nops)
 *     for i in range(self.c_nops):
 */
  __pyx_v_self->c_ops = ((grpc_op *)gpr_malloc(((sizeof(grpc_op)) * __pyx_v_self->c_nops)));

  /* "grpc/_cython/_cygrpc/records.pyx":652
 *     self.c_ops = <grpc.grpc_op *>grpc.gpr_malloc(
 *         sizeof(grpc.grpc_op)*self.c_nops)
 *     for i in range(self.c_nops):             # <<<<<<<<<<<<<<
 *       self.c_ops[i] = (<Operation>(self.operations[i])).c_op
 * 
 */
  __pyx_t_6 = __pyx_v_self->c_nops;
  for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
    __pyx_v_i = __pyx_t_7;

    /* "grpc/_cython/_cygrpc/records.pyx":653
 *         sizeof(grpc.grpc_op)*self.c_nops)
 *     for i in range(self.c_nops):
 *       self.c_ops[i] = (<Operation>(self.operations[i])).c_op             # <<<<<<<<<<<<<<
 * 
 *   def __len__(self):
 */
    if (unlikely(__pyx_v_self->operations == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->operations, __pyx_v_i, size_t, 0, __Pyx_PyInt_FromSize_t, 1, 0, 1); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)__pyx_t_1)->c_op;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    (__pyx_v_self->c_ops[__pyx_v_i]) = __pyx_t_8;
  }

  /* "grpc/_cython/_cygrpc/records.pyx":642
 * cdef class Operations:
 * 
 *   def __cinit__(self, operations):             # <<<<<<<<<<<<<<
 *     self.operations = list(operations)  # normalize iterable
 *     self.c_ops = NULL
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operations.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_operation);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":655
 *       self.c_ops[i] = (<Operation>(self.operations[i])).c_op
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     return self.c_nops
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_3__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_3__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_2__len__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_2__len__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":656
 * 
 *   def __len__(self):
 *     return self.c_nops             # <<<<<<<<<<<<<<
 * 
 *   def __getitem__(self, size_t i):
 */
  __pyx_r = __pyx_v_self->c_nops;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":655
 *       self.c_ops[i] = (<Operation>(self.operations[i])).c_op
 * 
 *   def __len__(self):             # <<<<<<<<<<<<<<
 *     return self.c_nops
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":658
 *     return self.c_nops
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     # self.operations is never stale; it's only updated from this file
 *     return self.operations[i]
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_5__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_5__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i) {
  size_t __pyx_v_i;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  assert(__pyx_arg_i); {
    __pyx_v_i = __Pyx_PyInt_As_size_t(__pyx_arg_i); if (unlikely((__pyx_v_i == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operations.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_4__getitem__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)__pyx_v_self), ((size_t)__pyx_v_i));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_4__getitem__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self, size_t __pyx_v_i) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":660
 *   def __getitem__(self, size_t i):
 *     # self.operations is never stale; it's only updated from this file
 *     return self.operations[i]             # <<<<<<<<<<<<<<
 * 
 *   def __dealloc__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_self->operations == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->operations, __pyx_v_i, size_t, 0, __Pyx_PyInt_FromSize_t, 1, 0, 1); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":658
 *     return self.c_nops
 * 
 *   def __getitem__(self, size_t i):             # <<<<<<<<<<<<<<
 *     # self.operations is never stale; it's only updated from this file
 *     return self.operations[i]
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operations.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "grpc/_cython/_cygrpc/records.pyx":662
 *     return self.operations[i]
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     grpc.gpr_free(self.c_ops)
 * 
 */

/* Python wrapper */
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_7__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_7__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_6__dealloc__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_6__dealloc__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":663
 * 
 *   def __dealloc__(self):
 *     grpc.gpr_free(self.c_ops)             # <<<<<<<<<<<<<<
 * 
 *   def __iter__(self):
 */
  gpr_free(__pyx_v_self->c_ops);

  /* "grpc/_cython/_cygrpc/records.pyx":662
 *     return self.operations[i]
 * 
 *   def __dealloc__(self):             # <<<<<<<<<<<<<<
 *     grpc.gpr_free(self.c_ops)
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "grpc/_cython/_cygrpc/records.pyx":665
 *     grpc.gpr_free(self.c_ops)
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return _OperationsIterator(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_9__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_9__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_8__iter__(((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4grpc_7_cython_7_cygrpc_7records_10Operations_8__iter__(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":666
 * 
 *   def __iter__(self):
 *     return _OperationsIterator(self)             # <<<<<<<<<<<<<<
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records__OperationsIterator), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "grpc/_cython/_cygrpc/records.pyx":665
 *     grpc.gpr_free(self.c_ops)
 * 
 *   def __iter__(self):             # <<<<<<<<<<<<<<
 *     return _OperationsIterator(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("grpc._cython._cygrpc.records.Operations.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Timespec(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Timespec(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Timespec[] = {
  {"seconds", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_3seconds, METH_NOARGS, 0},
  {"nanoseconds", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_5nanoseconds, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_Timespec = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Timespec_7__float__, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_Timespec = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.Timespec", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Timespec), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Timespec, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_Timespec, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Timespec, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Timespec, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_CallDetails(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_CallDetails(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_CallDetails[] = {
  {"method", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_5method, METH_NOARGS, 0},
  {"host", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_7host, METH_NOARGS, 0},
  {"deadline", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11CallDetails_9deadline, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_CallDetails = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.CallDetails", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_CallDetails, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_CallDetails, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_CallDetails, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_OperationTag(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *)o);
  p->user_tag = Py_None; Py_INCREF(Py_None);
  p->references = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->shutting_down_server = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_6server_Server *)Py_None); Py_INCREF(Py_None);
  p->operation_call = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *)Py_None); Py_INCREF(Py_None);
  p->request_call_details = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)Py_None); Py_INCREF(Py_None);
  p->request_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  p->batch_operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_12OperationTag_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_OperationTag(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->user_tag);
  Py_CLEAR(p->references);
  Py_CLEAR(p->shutting_down_server);
  Py_CLEAR(p->operation_call);
  Py_CLEAR(p->request_call_details);
  Py_CLEAR(p->request_metadata);
  Py_CLEAR(p->batch_operations);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_OperationTag(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *)o;
  if (p->user_tag) {
    e = (*v)(p->user_tag, a); if (e) return e;
  }
  if (p->references) {
    e = (*v)(p->references, a); if (e) return e;
  }
  if (p->shutting_down_server) {
    e = (*v)(((PyObject*)p->shutting_down_server), a); if (e) return e;
  }
  if (p->operation_call) {
    e = (*v)(((PyObject*)p->operation_call), a); if (e) return e;
  }
  if (p->request_call_details) {
    e = (*v)(((PyObject*)p->request_call_details), a); if (e) return e;
  }
  if (p->request_metadata) {
    e = (*v)(((PyObject*)p->request_metadata), a); if (e) return e;
  }
  if (p->batch_operations) {
    e = (*v)(((PyObject*)p->batch_operations), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_OperationTag(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag *)o;
  tmp = ((PyObject*)p->user_tag);
  p->user_tag = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->references);
  p->references = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->shutting_down_server);
  p->shutting_down_server = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_6server_Server *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->operation_call);
  p->operation_call = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->request_call_details);
  p->request_call_details = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->request_metadata);
  p->request_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->batch_operations);
  p->batch_operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_OperationTag[] = {
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_OperationTag = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.OperationTag", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_OperationTag), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_OperationTag, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_OperationTag, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_OperationTag, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_OperationTag, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_OperationTag, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Event(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)o);
  p->tag = Py_None; Py_INCREF(Py_None);
  p->operation_call = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *)Py_None); Py_INCREF(Py_None);
  p->request_call_details = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)Py_None); Py_INCREF(Py_None);
  p->request_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  p->batch_operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Event(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->tag);
  Py_CLEAR(p->operation_call);
  Py_CLEAR(p->request_call_details);
  Py_CLEAR(p->request_metadata);
  Py_CLEAR(p->batch_operations);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Event(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)o;
  if (p->tag) {
    e = (*v)(p->tag, a); if (e) return e;
  }
  if (p->operation_call) {
    e = (*v)(((PyObject*)p->operation_call), a); if (e) return e;
  }
  if (p->request_call_details) {
    e = (*v)(((PyObject*)p->request_call_details), a); if (e) return e;
  }
  if (p->request_metadata) {
    e = (*v)(((PyObject*)p->request_metadata), a); if (e) return e;
  }
  if (p->batch_operations) {
    e = (*v)(((PyObject*)p->batch_operations), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Event(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event *)o;
  tmp = ((PyObject*)p->tag);
  p->tag = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->operation_call);
  p->operation_call = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->request_call_details);
  p->request_call_details = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_CallDetails *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->request_metadata);
  p->request_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->batch_operations);
  p->batch_operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_4type_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_success(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_7success_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_tag(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_3tag_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_operation_call(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_14operation_call_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_is_new_request(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_14is_new_request_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_request_call_details(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_20request_call_details_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_request_metadata(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_16request_metadata_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_batch_operations(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_5Event_16batch_operations_1__get__(o);
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Event[] = {
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_Event[] = {
  {(char *)"type", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_type, 0, 0, 0},
  {(char *)"success", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_success, 0, 0, 0},
  {(char *)"tag", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_tag, 0, 0, 0},
  {(char *)"operation_call", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_operation_call, 0, 0, 0},
  {(char *)"is_new_request", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_is_new_request, 0, 0, 0},
  {(char *)"request_call_details", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_request_call_details, 0, 0, 0},
  {(char *)"request_metadata", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_request_metadata, 0, 0, 0},
  {(char *)"batch_operations", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_5Event_batch_operations, 0, 0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_Event = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.Event", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Event), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Event, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Event, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Event, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Event, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_Event, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Event, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ByteBuffer(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_ByteBuffer(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_9__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_ByteBuffer[] = {
  {"bytes", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_3bytes, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_ByteBuffer = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_5__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ByteBuffer = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_5__len__, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_ByteBuffer = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.ByteBuffer", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_ByteBuffer, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_ByteBuffer, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ByteBuffer, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ByteBuffer_7__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_ByteBuffer, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ByteBuffer, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *)o);
  p->private_key = Py_None; Py_INCREF(Py_None);
  p->certificate_chain = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->private_key);
  Py_CLEAR(p->certificate_chain);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *)o;
  if (p->private_key) {
    e = (*v)(p->private_key, a); if (e) return e;
  }
  if (p->certificate_chain) {
    e = (*v)(p->certificate_chain, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair *)o;
  tmp = ((PyObject*)p->private_key);
  p->private_key = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->certificate_chain);
  p->certificate_chain = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_private_key(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_11private_key_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_certificate_chain(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_17certificate_chain_1__get__(o);
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair[] = {
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair[] = {
  {(char *)"private_key", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_private_key, 0, 0, 0},
  {(char *)"certificate_chain", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_17SslPemKeyCertPair_certificate_chain, 0, 0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.SslPemKeyCertPair", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ChannelArg(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)o);
  p->key = Py_None; Py_INCREF(Py_None);
  p->value = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_ChannelArg(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->key);
  Py_CLEAR(p->value);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_ChannelArg(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)o;
  if (p->key) {
    e = (*v)(p->key, a); if (e) return e;
  }
  if (p->value) {
    e = (*v)(p->value, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_ChannelArg(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg *)o;
  tmp = ((PyObject*)p->key);
  p->key = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->value);
  p->value = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_key(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_3key_1__get__(o);
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_5value_1__get__(o);
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_ChannelArg[] = {
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_ChannelArg[] = {
  {(char *)"key", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_key, 0, 0, 0},
  {(char *)"value", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_10ChannelArg_value, 0, 0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArg = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.ChannelArg", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArg), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_ChannelArg, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_ChannelArg, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_ChannelArg, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_ChannelArg, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_ChannelArg, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ChannelArg, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ChannelArgs(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)o);
  p->args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_ChannelArgs(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->args);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_ChannelArgs(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)o;
  if (p->args) {
    e = (*v)(p->args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_ChannelArgs(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs *)o;
  tmp = ((PyObject*)p->args);
  p->args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
static PyObject *__pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_ChannelArgs(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_ChannelArgs[] = {
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_ChannelArgs = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_5__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_ChannelArgs, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ChannelArgs = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_5__len__, /*mp_length*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_11ChannelArgs_7__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArgs = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.ChannelArgs", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ChannelArgs), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_ChannelArgs, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_ChannelArgs, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ChannelArgs, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_ChannelArgs, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_ChannelArgs, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_ChannelArgs, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_ChannelArgs, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Metadatum(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)o);
  p->_key = Py_None; Py_INCREF(Py_None);
  p->_value = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Metadatum(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->_key);
  Py_CLEAR(p->_value);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Metadatum(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)o;
  if (p->_key) {
    e = (*v)(p->_key, a); if (e) return e;
  }
  if (p->_value) {
    e = (*v)(p->_value, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Metadatum(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum *)o;
  tmp = ((PyObject*)p->_key);
  p->_key = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_value);
  p->_value = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
static PyObject *__pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_Metadatum(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Metadatum[] = {
  {"key", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_3key, METH_NOARGS, 0},
  {"value", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_5value, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_Metadatum = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_7__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_Metadatum, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Metadatum = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_7__len__, /*mp_length*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_9__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadatum = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.Metadatum", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadatum), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Metadatum, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_Metadatum, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Metadatum, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Metadatum, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Metadatum, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Metadatum_11__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Metadatum, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Metadatum, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Metadata(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)o);
  p->metadata = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Metadata(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->metadata);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Metadata(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)o;
  if (p->metadata) {
    e = (*v)(p->metadata, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Metadata(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)o;
  tmp = ((PyObject*)p->metadata);
  p->metadata = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
static PyObject *__pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_Metadata(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Metadata[] = {
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_Metadata = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_5__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_Metadata, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Metadata = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_5__len__, /*mp_length*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_7__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadata = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.Metadata", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Metadata, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_Metadata, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Metadata, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Metadata, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Metadata, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_8Metadata_9__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Metadata, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Metadata, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Operation(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)o);
  p->_received_message = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)Py_None); Py_INCREF(Py_None);
  p->_received_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  p->references = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Operation(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_27__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_received_message);
  Py_CLEAR(p->_received_metadata);
  Py_CLEAR(p->references);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Operation(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)o;
  if (p->_received_message) {
    e = (*v)(((PyObject*)p->_received_message), a); if (e) return e;
  }
  if (p->_received_metadata) {
    e = (*v)(((PyObject*)p->_received_metadata), a); if (e) return e;
  }
  if (p->references) {
    e = (*v)(p->references, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Operation(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation *)o;
  tmp = ((PyObject*)p->_received_message);
  p->_received_message = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_ByteBuffer *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_received_metadata);
  p->_received_metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->references);
  p->references = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4grpc_7_cython_7_cygrpc_7records_9Operation_is_valid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_8is_valid_1__get__(o);
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Operation[] = {
  {"type", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_3type, METH_NOARGS, 0},
  {"has_status", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_5has_status, METH_NOARGS, 0},
  {"received_message", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_7received_message, METH_NOARGS, 0},
  {"received_message_or_none", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_9received_message_or_none, METH_NOARGS, 0},
  {"received_metadata", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_11received_metadata, METH_NOARGS, 0},
  {"received_metadata_or_none", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_13received_metadata_or_none, METH_NOARGS, 0},
  {"received_status_code", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_15received_status_code, METH_NOARGS, 0},
  {"received_status_code_or_none", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_17received_status_code_or_none, METH_NOARGS, 0},
  {"received_status_details", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_19received_status_details, METH_NOARGS, 0},
  {"received_status_details_or_none", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_21received_status_details_or_none, METH_NOARGS, 0},
  {"received_cancelled", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_23received_cancelled, METH_NOARGS, 0},
  {"received_cancelled_or_none", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_9Operation_25received_cancelled_or_none, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_Operation[] = {
  {(char *)"is_valid", __pyx_getprop_4grpc_7_cython_7_cygrpc_7records_9Operation_is_valid, 0, 0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_Operation = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.Operation", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operation), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Operation, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Operation, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Operation, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Operation, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4grpc_7_cython_7_cygrpc_7records_Operation, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Operation, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Operations(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)o);
  p->operations = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Operations(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_7__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->operations);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Operations(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)o;
  if (p->operations) {
    e = (*v)(p->operations, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Operations(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)o;
  tmp = ((PyObject*)p->operations);
  p->operations = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
static PyObject *__pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_Operations(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Operations[] = {
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_Operations = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_3__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_4grpc_7_cython_7_cygrpc_7records_Operations, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Operations = {
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_3__len__, /*mp_length*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_5__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records_Operations = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records.Operations", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records_Operations, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_Operations, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Operations, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records_Operations, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records_Operations, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_10Operations_9__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records_Operations, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records_Operations, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records__MetadataIterator(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *)o);
  p->metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records__MetadataIterator(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->metadata);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records__MetadataIterator(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *)o;
  if (p->metadata) {
    e = (*v)(((PyObject*)p->metadata), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records__MetadataIterator(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator *)o;
  tmp = ((PyObject*)p->metadata);
  p->metadata = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Metadata *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records__MetadataIterator[] = {
  {"__next__", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_5__next__, METH_NOARGS|METH_COEXIST, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records__MetadataIterator = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records._MetadataIterator", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__MetadataIterator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records__MetadataIterator, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records__MetadataIterator, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records__MetadataIterator, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_3__iter__, /*tp_iter*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_17_MetadataIterator_5__next__, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records__MetadataIterator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records__MetadataIterator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_4grpc_7_cython_7_cygrpc_7records__OperationsIterator(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *)o);
  p->operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_1__cinit__(o, a, k) < 0)) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records__OperationsIterator(PyObject *o) {
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->operations);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records__OperationsIterator(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *)o;
  if (p->operations) {
    e = (*v)(((PyObject*)p->operations), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records__OperationsIterator(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *p = (struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator *)o;
  tmp = ((PyObject*)p->operations);
  p->operations = ((struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records_Operations *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_4grpc_7_cython_7_cygrpc_7records__OperationsIterator[] = {
  {"__next__", (PyCFunction)__pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_5__next__, METH_NOARGS|METH_COEXIST, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4grpc_7_cython_7_cygrpc_7records__OperationsIterator = {
  PyVarObject_HEAD_INIT(0, 0)
  "grpc._cython._cygrpc.records._OperationsIterator", /*tp_name*/
  sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_7records__OperationsIterator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4grpc_7_cython_7_cygrpc_7records__OperationsIterator, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4grpc_7_cython_7_cygrpc_7records__OperationsIterator, /*tp_traverse*/
  __pyx_tp_clear_4grpc_7_cython_7_cygrpc_7records__OperationsIterator, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_3__iter__, /*tp_iter*/
  __pyx_pw_4grpc_7_cython_7_cygrpc_7records_19_OperationsIterator_5__next__, /*tp_iternext*/
  __pyx_methods_4grpc_7_cython_7_cygrpc_7records__OperationsIterator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4grpc_7_cython_7_cygrpc_7records__OperationsIterator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
  #if PY_VERSION_HEX < 0x03020000
    { PyObject_HEAD_INIT(NULL) NULL, 0, NULL },
  #else
    PyModuleDef_HEAD_INIT,
  #endif
    "records",
    0, /* m_doc */
    -1, /* m_size */
    __pyx_methods /* m_methods */,
    NULL, /* m_reload */
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp_b_, __pyx_k_, sizeof(__pyx_k_), 0, 0, 0, 0},
  {&__pyx_n_s_CallError, __pyx_k_CallError, sizeof(__pyx_k_CallError), 0, 0, 1, 1},
  {&__pyx_n_s_ChannelArgKey, __pyx_k_ChannelArgKey, sizeof(__pyx_k_ChannelArgKey), 0, 0, 1, 1},
  {&__pyx_n_s_CompletionType, __pyx_k_CompletionType, sizeof(__pyx_k_CompletionType), 0, 0, 1, 1},
  {&__pyx_n_s_ConnectivityState, __pyx_k_ConnectivityState, sizeof(__pyx_k_ConnectivityState), 0, 0, 1, 1},
  {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1},
  {&__pyx_n_s_OperationType, __pyx_k_OperationType, sizeof(__pyx_k_OperationType), 0, 0, 1, 1},
  {&__pyx_n_s_StatusCode, __pyx_k_StatusCode, sizeof(__pyx_k_StatusCode), 0, 0, 1, 1},
  {&__pyx_n_s_StopIteration, __pyx_k_StopIteration, sizeof(__pyx_k_StopIteration), 0, 0, 1, 1},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_n_s_WriteFlag, __pyx_k_WriteFlag, sizeof(__pyx_k_WriteFlag), 0, 0, 1, 1},
  {&__pyx_n_s_aborted, __pyx_k_aborted, sizeof(__pyx_k_aborted), 0, 0, 1, 1},
  {&__pyx_n_s_already_accepted, __pyx_k_already_accepted, sizeof(__pyx_k_already_accepted), 0, 0, 1, 1},
  {&__pyx_n_s_already_exists, __pyx_k_already_exists, sizeof(__pyx_k_already_exists), 0, 0, 1, 1},
  {&__pyx_n_s_already_finished, __pyx_k_already_finished, sizeof(__pyx_k_already_finished), 0, 0, 1, 1},
  {&__pyx_n_s_already_invoked, __pyx_k_already_invoked, sizeof(__pyx_k_already_invoked), 0, 0, 1, 1},
  {&__pyx_n_s_append, __pyx_k_append, sizeof(__pyx_k_append), 0, 0, 1, 1},
  {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1},
  {&__pyx_n_s_batch_operations, __pyx_k_batch_operations, sizeof(__pyx_k_batch_operations), 0, 0, 1, 1},
  {&__pyx_n_s_buffer_hint, __pyx_k_buffer_hint, sizeof(__pyx_k_buffer_hint), 0, 0, 1, 1},
  {&__pyx_n_s_byte_buffer, __pyx_k_byte_buffer, sizeof(__pyx_k_byte_buffer), 0, 0, 1, 1},
  {&__pyx_n_s_bytes, __pyx_k_bytes, sizeof(__pyx_k_bytes), 0, 0, 1, 1},
  {&__pyx_n_s_cancelled, __pyx_k_cancelled, sizeof(__pyx_k_cancelled), 0, 0, 1, 1},
  {&__pyx_n_s_certificate_chain, __pyx_k_certificate_chain, sizeof(__pyx_k_certificate_chain), 0, 0, 1, 1},
  {&__pyx_n_s_code, __pyx_k_code, sizeof(__pyx_k_code), 0, 0, 1, 1},
  {&__pyx_n_s_connecting, __pyx_k_connecting, sizeof(__pyx_k_connecting), 0, 0, 1, 1},
  {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1},
  {&__pyx_n_s_data_loss, __pyx_k_data_loss, sizeof(__pyx_k_data_loss), 0, 0, 1, 1},
  {&__pyx_n_s_deadline, __pyx_k_deadline, sizeof(__pyx_k_deadline), 0, 0, 1, 1},
  {&__pyx_n_s_deadline_exceeded, __pyx_k_deadline_exceeded, sizeof(__pyx_k_deadline_exceeded), 0, 0, 1, 1},
  {&__pyx_n_s_default_authority, __pyx_k_default_authority, sizeof(__pyx_k_default_authority), 0, 0, 1, 1},
  {&__pyx_n_s_details, __pyx_k_details, sizeof(__pyx_k_details), 0, 0, 1, 1},
  {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1},
  {&__pyx_n_s_enable_census, __pyx_k_enable_census, sizeof(__pyx_k_enable_census), 0, 0, 1, 1},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_error, __pyx_k_error, sizeof(__pyx_k_error), 0, 0, 1, 1},
  {&__pyx_kp_s_expected_a_str_or_bytes_object_f, __pyx_k_expected_a_str_or_bytes_object_f, sizeof(__pyx_k_expected_a_str_or_bytes_object_f), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_certificate_chain_to_be, __pyx_k_expected_certificate_chain_to_be, sizeof(__pyx_k_expected_certificate_chain_to_be), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_key_to_be_of_type_str_o, __pyx_k_expected_key_to_be_of_type_str_o, sizeof(__pyx_k_expected_key_to_be_of_type_str_o), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_list_of_ChannelArg, __pyx_k_expected_list_of_ChannelArg, sizeof(__pyx_k_expected_list_of_ChannelArg), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_list_of_Metadatum, __pyx_k_expected_list_of_Metadatum, sizeof(__pyx_k_expected_list_of_Metadatum), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_operations_to_be_iterab, __pyx_k_expected_operations_to_be_iterab, sizeof(__pyx_k_expected_operations_to_be_iterab), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_private_key_to_be_of_ty, __pyx_k_expected_private_key_to_be_of_ty, sizeof(__pyx_k_expected_private_key_to_be_of_ty), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_time_to_be_float_int_or, __pyx_k_expected_time_to_be_float_int_or, sizeof(__pyx_k_expected_time_to_be_float_int_or), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_value_to_be_of_type_str, __pyx_k_expected_value_to_be_of_type_str, sizeof(__pyx_k_expected_value_to_be_of_type_str), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_value_to_be_of_type_str_2, __pyx_k_expected_value_to_be_of_type_str_2, sizeof(__pyx_k_expected_value_to_be_of_type_str_2), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_value_to_be_of_type_str_3, __pyx_k_expected_value_to_be_of_type_str_3, sizeof(__pyx_k_expected_value_to_be_of_type_str_3), 0, 0, 1, 0},
  {&__pyx_n_s_failed_precondition, __pyx_k_failed_precondition, sizeof(__pyx_k_failed_precondition), 0, 0, 1, 1},
  {&__pyx_n_s_fatal_failure, __pyx_k_fatal_failure, sizeof(__pyx_k_fatal_failure), 0, 0, 1, 1},
  {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1},
  {&__pyx_n_s_grpc__cython__cygrpc_records, __pyx_k_grpc__cython__cygrpc_records, sizeof(__pyx_k_grpc__cython__cygrpc_records), 0, 0, 1, 1},
  {&__pyx_n_s_has_status, __pyx_k_has_status, sizeof(__pyx_k_has_status), 0, 0, 1, 1},
  {&__pyx_n_s_host, __pyx_k_host, sizeof(__pyx_k_host), 0, 0, 1, 1},
  {&__pyx_n_s_http2_initial_sequence_number, __pyx_k_http2_initial_sequence_number, sizeof(__pyx_k_http2_initial_sequence_number), 0, 0, 1, 1},
  {&__pyx_n_s_idle, __pyx_k_idle, sizeof(__pyx_k_idle), 0, 0, 1, 1},
  {&__pyx_kp_s_index_must_be_0_key_or_1_value, __pyx_k_index_must_be_0_key_or_1_value, sizeof(__pyx_k_index_must_be_0_key_or_1_value), 0, 0, 1, 0},
  {&__pyx_kp_s_inf, __pyx_k_inf, sizeof(__pyx_k_inf), 0, 0, 1, 0},
  {&__pyx_kp_s_inf_2, __pyx_k_inf_2, sizeof(__pyx_k_inf_2), 0, 0, 1, 0},
  {&__pyx_n_s_infinite_future, __pyx_k_infinite_future, sizeof(__pyx_k_infinite_future), 0, 0, 1, 1},
  {&__pyx_n_s_infinite_past, __pyx_k_infinite_past, sizeof(__pyx_k_infinite_past), 0, 0, 1, 1},
  {&__pyx_n_s_internal, __pyx_k_internal, sizeof(__pyx_k_internal), 0, 0, 1, 1},
  {&__pyx_n_s_invalid_argument, __pyx_k_invalid_argument, sizeof(__pyx_k_invalid_argument), 0, 0, 1, 1},
  {&__pyx_n_s_invalid_flags, __pyx_k_invalid_flags, sizeof(__pyx_k_invalid_flags), 0, 0, 1, 1},
  {&__pyx_n_s_invalid_metadata, __pyx_k_invalid_metadata, sizeof(__pyx_k_invalid_metadata), 0, 0, 1, 1},
  {&__pyx_n_s_is_new_request, __pyx_k_is_new_request, sizeof(__pyx_k_is_new_request), 0, 0, 1, 1},
  {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_max_concurrent_streams, __pyx_k_max_concurrent_streams, sizeof(__pyx_k_max_concurrent_streams), 0, 0, 1, 1},
  {&__pyx_n_s_max_message_length, __pyx_k_max_message_length, sizeof(__pyx_k_max_message_length), 0, 0, 1, 1},
  {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1},
  {&__pyx_n_s_metadata, __pyx_k_metadata, sizeof(__pyx_k_metadata), 0, 0, 1, 1},
  {&__pyx_n_s_method, __pyx_k_method, sizeof(__pyx_k_method), 0, 0, 1, 1},
  {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1},
  {&__pyx_n_s_nanoseconds, __pyx_k_nanoseconds, sizeof(__pyx_k_nanoseconds), 0, 0, 1, 1},
  {&__pyx_n_s_no_compress, __pyx_k_no_compress, sizeof(__pyx_k_no_compress), 0, 0, 1, 1},
  {&__pyx_n_s_not_found, __pyx_k_not_found, sizeof(__pyx_k_not_found), 0, 0, 1, 1},
  {&__pyx_n_s_not_invoked, __pyx_k_not_invoked, sizeof(__pyx_k_not_invoked), 0, 0, 1, 1},
  {&__pyx_n_s_not_on_client, __pyx_k_not_on_client, sizeof(__pyx_k_not_on_client), 0, 0, 1, 1},
  {&__pyx_n_s_not_on_server, __pyx_k_not_on_server, sizeof(__pyx_k_not_on_server), 0, 0, 1, 1},
  {&__pyx_n_s_ok, __pyx_k_ok, sizeof(__pyx_k_ok), 0, 0, 1, 1},
  {&__pyx_n_s_op, __pyx_k_op, sizeof(__pyx_k_op), 0, 0, 1, 1},
  {&__pyx_n_s_operation_call, __pyx_k_operation_call, sizeof(__pyx_k_operation_call), 0, 0, 1, 1},
  {&__pyx_n_s_operation_complete, __pyx_k_operation_complete, sizeof(__pyx_k_operation_complete), 0, 0, 1, 1},
  {&__pyx_n_s_operation_receive_close_on_serve, __pyx_k_operation_receive_close_on_serve, sizeof(__pyx_k_operation_receive_close_on_serve), 0, 0, 1, 1},
  {&__pyx_n_s_operation_receive_initial_metada, __pyx_k_operation_receive_initial_metada, sizeof(__pyx_k_operation_receive_initial_metada), 0, 0, 1, 1},
  {&__pyx_n_s_operation_receive_message, __pyx_k_operation_receive_message, sizeof(__pyx_k_operation_receive_message), 0, 0, 1, 1},
  {&__pyx_n_s_operation_receive_status_on_clie, __pyx_k_operation_receive_status_on_clie, sizeof(__pyx_k_operation_receive_status_on_clie), 0, 0, 1, 1},
  {&__pyx_n_s_operation_send_close_from_client, __pyx_k_operation_send_close_from_client, sizeof(__pyx_k_operation_send_close_from_client), 0, 0, 1, 1},
  {&__pyx_n_s_operation_send_initial_metadata, __pyx_k_operation_send_initial_metadata, sizeof(__pyx_k_operation_send_initial_metadata), 0, 0, 1, 1},
  {&__pyx_n_s_operation_send_message, __pyx_k_operation_send_message, sizeof(__pyx_k_operation_send_message), 0, 0, 1, 1},
  {&__pyx_n_s_operation_send_status_from_serve, __pyx_k_operation_send_status_from_serve, sizeof(__pyx_k_operation_send_status_from_serve), 0, 0, 1, 1},
  {&__pyx_n_s_operations, __pyx_k_operations, sizeof(__pyx_k_operations), 0, 0, 1, 1},
  {&__pyx_n_s_out_of_range, __pyx_k_out_of_range, sizeof(__pyx_k_out_of_range), 0, 0, 1, 1},
  {&__pyx_n_s_permission_denied, __pyx_k_permission_denied, sizeof(__pyx_k_permission_denied), 0, 0, 1, 1},
  {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1},
  {&__pyx_n_s_primary_user_agent_string, __pyx_k_primary_user_agent_string, sizeof(__pyx_k_primary_user_agent_string), 0, 0, 1, 1},
  {&__pyx_n_s_private_key, __pyx_k_private_key, sizeof(__pyx_k_private_key), 0, 0, 1, 1},
  {&__pyx_n_s_property, __pyx_k_property, sizeof(__pyx_k_property), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1},
  {&__pyx_n_s_queue_shutdown, __pyx_k_queue_shutdown, sizeof(__pyx_k_queue_shutdown), 0, 0, 1, 1},
  {&__pyx_n_s_queue_timeout, __pyx_k_queue_timeout, sizeof(__pyx_k_queue_timeout), 0, 0, 1, 1},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
  {&__pyx_n_s_ready, __pyx_k_ready, sizeof(__pyx_k_ready), 0, 0, 1, 1},
  {&__pyx_n_s_receive_close_on_server, __pyx_k_receive_close_on_server, sizeof(__pyx_k_receive_close_on_server), 0, 0, 1, 1},
  {&__pyx_n_s_receive_initial_metadata, __pyx_k_receive_initial_metadata, sizeof(__pyx_k_receive_initial_metadata), 0, 0, 1, 1},
  {&__pyx_n_s_receive_message, __pyx_k_receive_message, sizeof(__pyx_k_receive_message), 0, 0, 1, 1},
  {&__pyx_n_s_receive_status_on_client, __pyx_k_receive_status_on_client, sizeof(__pyx_k_receive_status_on_client), 0, 0, 1, 1},
  {&__pyx_n_s_received_cancelled, __pyx_k_received_cancelled, sizeof(__pyx_k_received_cancelled), 0, 0, 1, 1},
  {&__pyx_n_s_received_cancelled_or_none, __pyx_k_received_cancelled_or_none, sizeof(__pyx_k_received_cancelled_or_none), 0, 0, 1, 1},
  {&__pyx_n_s_received_message, __pyx_k_received_message, sizeof(__pyx_k_received_message), 0, 0, 1, 1},
  {&__pyx_n_s_received_message_or_none, __pyx_k_received_message_or_none, sizeof(__pyx_k_received_message_or_none), 0, 0, 1, 1},
  {&__pyx_n_s_received_metadata, __pyx_k_received_metadata, sizeof(__pyx_k_received_metadata), 0, 0, 1, 1},
  {&__pyx_n_s_received_metadata_or_none, __pyx_k_received_metadata_or_none, sizeof(__pyx_k_received_metadata_or_none), 0, 0, 1, 1},
  {&__pyx_n_s_received_status_code, __pyx_k_received_status_code, sizeof(__pyx_k_received_status_code), 0, 0, 1, 1},
  {&__pyx_n_s_received_status_code_or_none, __pyx_k_received_status_code_or_none, sizeof(__pyx_k_received_status_code_or_none), 0, 0, 1, 1},
  {&__pyx_n_s_received_status_details, __pyx_k_received_status_details, sizeof(__pyx_k_received_status_details), 0, 0, 1, 1},
  {&__pyx_n_s_received_status_details_or_none, __pyx_k_received_status_details_or_none, sizeof(__pyx_k_received_status_details_or_none), 0, 0, 1, 1},
  {&__pyx_n_s_request_call_details, __pyx_k_request_call_details, sizeof(__pyx_k_request_call_details), 0, 0, 1, 1},
  {&__pyx_n_s_request_metadata, __pyx_k_request_metadata, sizeof(__pyx_k_request_metadata), 0, 0, 1, 1},
  {&__pyx_n_s_resource_exhausted, __pyx_k_resource_exhausted, sizeof(__pyx_k_resource_exhausted), 0, 0, 1, 1},
  {&__pyx_n_s_secondary_user_agent_string, __pyx_k_secondary_user_agent_string, sizeof(__pyx_k_secondary_user_agent_string), 0, 0, 1, 1},
  {&__pyx_n_s_seconds, __pyx_k_seconds, sizeof(__pyx_k_seconds), 0, 0, 1, 1},
  {&__pyx_kp_s_self_must_be_an_operation_receiv, __pyx_k_self_must_be_an_operation_receiv, sizeof(__pyx_k_self_must_be_an_operation_receiv), 0, 0, 1, 0},
  {&__pyx_kp_s_self_must_be_an_operation_receiv_2, __pyx_k_self_must_be_an_operation_receiv_2, sizeof(__pyx_k_self_must_be_an_operation_receiv_2), 0, 0, 1, 0},
  {&__pyx_kp_s_self_must_be_an_operation_receiv_3, __pyx_k_self_must_be_an_operation_receiv_3, sizeof(__pyx_k_self_must_be_an_operation_receiv_3), 0, 0, 1, 0},
  {&__pyx_kp_s_self_must_be_an_operation_receiv_4, __pyx_k_self_must_be_an_operation_receiv_4, sizeof(__pyx_k_self_must_be_an_operation_receiv_4), 0, 0, 1, 0},
  {&__pyx_kp_s_self_must_be_an_operation_receiv_5, __pyx_k_self_must_be_an_operation_receiv_5, sizeof(__pyx_k_self_must_be_an_operation_receiv_5), 0, 0, 1, 0},
  {&__pyx_n_s_send_close_from_client, __pyx_k_send_close_from_client, sizeof(__pyx_k_send_close_from_client), 0, 0, 1, 1},
  {&__pyx_n_s_send_initial_metadata, __pyx_k_send_initial_metadata, sizeof(__pyx_k_send_initial_metadata), 0, 0, 1, 1},
  {&__pyx_n_s_send_message, __pyx_k_send_message, sizeof(__pyx_k_send_message), 0, 0, 1, 1},
  {&__pyx_n_s_send_status_from_server, __pyx_k_send_status_from_server, sizeof(__pyx_k_send_status_from_server), 0, 0, 1, 1},
  {&__pyx_n_s_ssl_target_name_override, __pyx_k_ssl_target_name_override, sizeof(__pyx_k_ssl_target_name_override), 0, 0, 1, 1},
  {&__pyx_n_s_success, __pyx_k_success, sizeof(__pyx_k_success), 0, 0, 1, 1},
  {&__pyx_n_s_tag, __pyx_k_tag, sizeof(__pyx_k_tag), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 0, 1, 1},
  {&__pyx_n_s_too_many_operations, __pyx_k_too_many_operations, sizeof(__pyx_k_too_many_operations), 0, 0, 1, 1},
  {&__pyx_n_s_transient_failure, __pyx_k_transient_failure, sizeof(__pyx_k_transient_failure), 0, 0, 1, 1},
  {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1},
  {&__pyx_n_s_unauthenticated, __pyx_k_unauthenticated, sizeof(__pyx_k_unauthenticated), 0, 0, 1, 1},
  {&__pyx_n_s_unavailable, __pyx_k_unavailable, sizeof(__pyx_k_unavailable), 0, 0, 1, 1},
  {&__pyx_n_s_unimplemented, __pyx_k_unimplemented, sizeof(__pyx_k_unimplemented), 0, 0, 1, 1},
  {&__pyx_n_s_unknown, __pyx_k_unknown, sizeof(__pyx_k_unknown), 0, 0, 1, 1},
  {&__pyx_n_s_user_tag, __pyx_k_user_tag, sizeof(__pyx_k_user_tag), 0, 0, 1, 1},
  {&__pyx_kp_s_usr_local_google_home_atash_src, __pyx_k_usr_local_google_home_atash_src, sizeof(__pyx_k_usr_local_google_home_atash_src), 0, 0, 1, 0},
  {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_property = __Pyx_GetBuiltinName(__pyx_n_s_property); if (!__pyx_builtin_property) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "grpc/_cython/_cygrpc/records.pyx":275
 *       self.private_key = private_key.encode()
 *     else:
 *       raise TypeError("expected private_key to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     if isinstance(certificate_chain, bytes):
 *       self.certificate_chain = certificate_chain
 */
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_expected_private_key_to_be_of_ty); if (unlikely(!__pyx_tuple__2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__2);
  __Pyx_GIVEREF(__pyx_tuple__2);

  /* "grpc/_cython/_cygrpc/records.pyx":281
 *       self.certificate_chain = certificate_chain.encode()
 *     else:
 *       raise TypeError("expected certificate_chain to be of type str or bytes "             # <<<<<<<<<<<<<<
 *                       "or int")
 *     self.c_pair.private_key = self.private_key
 */
  __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_expected_certificate_chain_to_be); if (unlikely(!__pyx_tuple__3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__3);
  __Pyx_GIVEREF(__pyx_tuple__3);

  /* "grpc/_cython/_cygrpc/records.pyx":295
 *       self.key = key.encode()
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     if isinstance(value, bytes):
 *       self.value = value
 */
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_expected_key_to_be_of_type_str_o); if (unlikely(!__pyx_tuple__4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "grpc/_cython/_cygrpc/records.pyx":309
 *       self.c_arg.value.integer = self.value
 *     else:
 *       raise TypeError("expected value to be of type str or bytes or int")             # <<<<<<<<<<<<<<
 *     self.c_arg.key = self.key
 * 
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_expected_value_to_be_of_type_str_2); if (unlikely(!__pyx_tuple__5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "grpc/_cython/_cygrpc/records.pyx":319
 *     for arg in self.args:
 *       if not isinstance(arg, ChannelArg):
 *         raise TypeError("expected list of ChannelArg")             # <<<<<<<<<<<<<<
 *     self.c_args.arguments_length = len(self.args)
 *     self.c_args.arguments = <grpc.grpc_arg *>grpc.gpr_malloc(
 */
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_expected_list_of_ChannelArg); if (unlikely(!__pyx_tuple__6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "grpc/_cython/_cygrpc/records.pyx":347
 *       self._key = key.encode()
 *     else:
 *       raise TypeError("expected key to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     if isinstance(value, bytes):
 *       self._value = value
 */
  __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_expected_key_to_be_of_type_str_o); if (unlikely(!__pyx_tuple__7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__7);
  __Pyx_GIVEREF(__pyx_tuple__7);

  /* "grpc/_cython/_cygrpc/records.pyx":353
 *       self._value = value.encode()
 *     else:
 *       raise TypeError("expected value to be of type str or bytes")             # <<<<<<<<<<<<<<
 *     self.c_metadata.key = self._key
 *     self.c_metadata.value = self._value
 */
  __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_s_expected_value_to_be_of_type_str_3); if (unlikely(!__pyx_tuple__8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__8);
  __Pyx_GIVEREF(__pyx_tuple__8);

  /* "grpc/_cython/_cygrpc/records.pyx":375
 *       return self.value
 *     else:
 *       raise IndexError("index must be 0 (key) or 1 (value)")             # <<<<<<<<<<<<<<
 * 
 *   def __iter__(self):
 */
  __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_index_must_be_0_key_or_1_value); if (unlikely(!__pyx_tuple__9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);

  /* "grpc/_cython/_cygrpc/records.pyx":408
 *     for metadatum in metadata:
 *       if not isinstance(metadatum, Metadatum):
 *         raise TypeError("expected list of Metadatum")             # <<<<<<<<<<<<<<
 *     grpc.grpc_metadata_array_init(&self.c_metadata_array)
 *     self.c_metadata_array.count = len(self.metadata)
 */
  __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_expected_list_of_Metadatum); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__10);
  __Pyx_GIVEREF(__pyx_tuple__10);

  /* "grpc/_cython/_cygrpc/records.pyx":457
 *   def received_message(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       raise TypeError("self must be an operation receiving a message")             # <<<<<<<<<<<<<<
 *     return self._received_message
 * 
 */
  __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_self_must_be_an_operation_receiv); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__11);
  __Pyx_GIVEREF(__pyx_tuple__11);

  /* "grpc/_cython/_cygrpc/records.pyx":470
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 *       raise TypeError("self must be an operation receiving metadata")             # <<<<<<<<<<<<<<
 *     return self._received_metadata
 * 
 */
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_self_must_be_an_operation_receiv_2); if (unlikely(!__pyx_tuple__12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__12);
  __Pyx_GIVEREF(__pyx_tuple__12);

  /* "grpc/_cython/_cygrpc/records.pyx":483
 *   def received_status_code(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving a status code")             # <<<<<<<<<<<<<<
 *     return self._received_status_code
 * 
 */
  __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_self_must_be_an_operation_receiv_3); if (unlikely(!__pyx_tuple__13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__13);
  __Pyx_GIVEREF(__pyx_tuple__13);

  /* "grpc/_cython/_cygrpc/records.pyx":495
 *   def received_status_details(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving status details")             # <<<<<<<<<<<<<<
 *     if self._received_status_details:
 *       return self._received_status_details
 */
  __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_self_must_be_an_operation_receiv_4); if (unlikely(!__pyx_tuple__14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__14);
  __Pyx_GIVEREF(__pyx_tuple__14);

  /* "grpc/_cython/_cygrpc/records.pyx":513
 *   def received_cancelled(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       raise TypeError("self must be an operation receiving cancellation "             # <<<<<<<<<<<<<<
 *                       "information")
 *     return False if self._received_cancelled == 0 else True
 */
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_self_must_be_an_operation_receiv_5); if (unlikely(!__pyx_tuple__15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "grpc/_cython/_cygrpc/records.pyx":562
 *     details = details.encode()
 *   else:
 *     raise TypeError("expected a str or bytes object for details")             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 */
  __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_expected_a_str_or_bytes_object_f); if (unlikely(!__pyx_tuple__16)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__16);
  __Pyx_GIVEREF(__pyx_tuple__16);

  /* "grpc/_cython/_cygrpc/records.pyx":588
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE
 *   op._received_message = ByteBuffer(None)             # <<<<<<<<<<<<<<
 *   # n.b. the c_op.data.receive_message field needs to be deleted by us,
 *   # anyway, so we just let that be handled by the ByteBuffer() we allocated
 */
  __pyx_tuple__17 = PyTuple_Pack(1, Py_None); if (unlikely(!__pyx_tuple__17)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);

  /* "grpc/_cython/_cygrpc/records.pyx":648
 *     for operation in self.operations:
 *       if not isinstance(operation, Operation):
 *         raise TypeError("expected operations to be iterable of Operation")             # <<<<<<<<<<<<<<
 *     self.c_nops = len(self.operations)
 *     self.c_ops = <grpc.grpc_op *>grpc.gpr_malloc(
 */
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_expected_operations_to_be_iterab); if (unlikely(!__pyx_tuple__18)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__18);
  __Pyx_GIVEREF(__pyx_tuple__18);

  /* "grpc/_cython/_cygrpc/records.pyx":530
 *       grpc.gpr_free(self._received_status_details)
 * 
 * def operation_send_initial_metadata(Metadata metadata):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA
 */
  __pyx_tuple__19 = PyTuple_Pack(2, __pyx_n_s_metadata, __pyx_n_s_op); if (unlikely(!__pyx_tuple__19)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);
  __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_send_initial_metadata, 530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":540
 *   return op
 * 
 * def operation_send_message(data):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE
 */
  __pyx_tuple__21 = PyTuple_Pack(3, __pyx_n_s_data, __pyx_n_s_op, __pyx_n_s_byte_buffer); if (unlikely(!__pyx_tuple__21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);
  __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_send_message, 540, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":549
 *   return op
 * 
 * def operation_send_close_from_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 */
  __pyx_tuple__23 = PyTuple_Pack(1, __pyx_n_s_op); if (unlikely(!__pyx_tuple__23)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__23);
  __Pyx_GIVEREF(__pyx_tuple__23);
  __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_send_close_from_client, 549, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":555
 *   return op
 * 
 * def operation_send_status_from_server(             # <<<<<<<<<<<<<<
 *     Metadata metadata, grpc.grpc_status_code code, details):
 *   if isinstance(details, bytes):
 */
  __pyx_tuple__25 = PyTuple_Pack(4, __pyx_n_s_metadata, __pyx_n_s_code, __pyx_n_s_details, __pyx_n_s_op); if (unlikely(!__pyx_tuple__25)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);
  __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_send_status_from_serve, 555, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":576
 *   return op
 * 
 * def operation_receive_initial_metadata():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_op); if (unlikely(!__pyx_tuple__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);
  __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_receive_initial_metada, 576, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":585
 *   return op
 * 
 * def operation_receive_message():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_n_s_op); if (unlikely(!__pyx_tuple__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);
  __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_receive_message, 585, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":596
 *   return op
 * 
 * def operation_receive_status_on_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 */
  __pyx_tuple__31 = PyTuple_Pack(1, __pyx_n_s_op); if (unlikely(!__pyx_tuple__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);
  __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_receive_status_on_clie, 596, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "grpc/_cython/_cygrpc/records.pyx":611
 *   return op
 * 
 * def operation_receive_close_on_server():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 */
  __pyx_tuple__33 = PyTuple_Pack(1, __pyx_n_s_op); if (unlikely(!__pyx_tuple__33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_tuple__33);
  __Pyx_GIVEREF(__pyx_tuple__33);
  __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_usr_local_google_home_atash_src, __pyx_n_s_operation_receive_close_on_serve, 611, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  __pyx_float_1e9 = PyFloat_FromDouble(1e9); if (unlikely(!__pyx_float_1e9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  return 0;
  __pyx_L1_error:;
  return -1;
}

#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initrecords(void); /*proto*/
PyMODINIT_FUNC initrecords(void)
#else
PyMODINIT_FUNC PyInit_records(void); /*proto*/
PyMODINIT_FUNC PyInit_records(void)
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  double __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
      PyErr_Clear();
      __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
      if (!__Pyx_RefNanny)
          Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_records(void)", 0);
  if (__Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("records", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #if CYTHON_COMPILING_IN_PYPY
  Py_INCREF(__pyx_b);
  #endif
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  if (__pyx_module_is_main_grpc___cython___cygrpc__records) {
    if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    if (!PyDict_GetItemString(modules, "grpc._cython._cygrpc.records")) {
      if (unlikely(PyDict_SetItemString(modules, "grpc._cython._cygrpc.records", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Global init code ---*/
  /*--- Variable export code ---*/
  /*--- Function export code ---*/
  /*--- Type init code ---*/
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Timespec) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_Timespec.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "Timespec", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Timespec) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_Timespec;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_CallDetails) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_CallDetails.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "CallDetails", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_CallDetails) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_CallDetails;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_OperationTag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_OperationTag.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "OperationTag", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_OperationTag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_OperationTag = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_OperationTag;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_Event.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "Event", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Event = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_Event;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_ByteBuffer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_ByteBuffer.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "ByteBuffer", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_ByteBuffer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ByteBuffer = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_ByteBuffer;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "SslPemKeyCertPair", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_SslPemKeyCertPair;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArg) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArg.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "ChannelArg", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArg) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ChannelArg = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArg;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArgs) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArgs.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "ChannelArgs", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArgs) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_ChannelArgs = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_ChannelArgs;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadatum) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadatum.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "Metadatum", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadatum) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadatum;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadata) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadata.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "Metadata", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadata) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadata = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_Metadata;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Operation) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_Operation.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "Operation", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Operation) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_Operation;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Operations) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records_Operations.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "Operations", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records_Operations) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operations = &__pyx_type_4grpc_7_cython_7_cygrpc_7records_Operations;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records__MetadataIterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records__MetadataIterator.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "_MetadataIterator", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records__MetadataIterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records__MetadataIterator = &__pyx_type_4grpc_7_cython_7_cygrpc_7records__MetadataIterator;
  if (PyType_Ready(&__pyx_type_4grpc_7_cython_7_cygrpc_7records__OperationsIterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_type_4grpc_7_cython_7_cygrpc_7records__OperationsIterator.tp_print = 0;
  if (PyObject_SetAttrString(__pyx_m, "_OperationsIterator", (PyObject *)&__pyx_type_4grpc_7_cython_7_cygrpc_7records__OperationsIterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_7records__OperationsIterator = &__pyx_type_4grpc_7_cython_7_cygrpc_7records__OperationsIterator;
  /*--- Type import code ---*/
  __pyx_ptype_4grpc_7_cython_7_cygrpc_4call_Call = __Pyx_ImportType("grpc._cython._cygrpc.call", "Call", sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_4call_Call), 1); if (unlikely(!__pyx_ptype_4grpc_7_cython_7_cygrpc_4call_Call)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_16completion_queue_CompletionQueue = __Pyx_ImportType("grpc._cython._cygrpc.completion_queue", "CompletionQueue", sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_16completion_queue_CompletionQueue), 1); if (unlikely(!__pyx_ptype_4grpc_7_cython_7_cygrpc_16completion_queue_CompletionQueue)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4grpc_7_cython_7_cygrpc_6server_Server = __Pyx_ImportType("grpc._cython._cygrpc.server", "Server", sizeof(struct __pyx_obj_4grpc_7_cython_7_cygrpc_6server_Server), 1); if (unlikely(!__pyx_ptype_4grpc_7_cython_7_cygrpc_6server_Server)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_vtabptr_4grpc_7_cython_7_cygrpc_6server_Server = (struct __pyx_vtabstruct_4grpc_7_cython_7_cygrpc_6server_Server*)__Pyx_GetVtable(__pyx_ptype_4grpc_7_cython_7_cygrpc_6server_Server->tp_dict); if (unlikely(!__pyx_vtabptr_4grpc_7_cython_7_cygrpc_6server_Server)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Variable import code ---*/
  /*--- Function import code ---*/
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif

  /* "grpc/_cython/_cygrpc/records.pyx":35
 * 
 * 
 * class ConnectivityState:             # <<<<<<<<<<<<<<
 *   idle = grpc.GRPC_CHANNEL_IDLE
 *   connecting = grpc.GRPC_CHANNEL_CONNECTING
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_ConnectivityState, __pyx_n_s_ConnectivityState, (PyObject *) NULL, __pyx_n_s_grpc__cython__cygrpc_records, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":36
 * 
 * class ConnectivityState:
 *   idle = grpc.GRPC_CHANNEL_IDLE             # <<<<<<<<<<<<<<
 *   connecting = grpc.GRPC_CHANNEL_CONNECTING
 *   ready = grpc.GRPC_CHANNEL_READY
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_connectivity_state(GRPC_CHANNEL_IDLE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_idle, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":37
 * class ConnectivityState:
 *   idle = grpc.GRPC_CHANNEL_IDLE
 *   connecting = grpc.GRPC_CHANNEL_CONNECTING             # <<<<<<<<<<<<<<
 *   ready = grpc.GRPC_CHANNEL_READY
 *   transient_failure = grpc.GRPC_CHANNEL_TRANSIENT_FAILURE
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_connectivity_state(GRPC_CHANNEL_CONNECTING); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_connecting, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":38
 *   idle = grpc.GRPC_CHANNEL_IDLE
 *   connecting = grpc.GRPC_CHANNEL_CONNECTING
 *   ready = grpc.GRPC_CHANNEL_READY             # <<<<<<<<<<<<<<
 *   transient_failure = grpc.GRPC_CHANNEL_TRANSIENT_FAILURE
 *   fatal_failure = grpc.GRPC_CHANNEL_FATAL_FAILURE
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_connectivity_state(GRPC_CHANNEL_READY); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_ready, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":39
 *   connecting = grpc.GRPC_CHANNEL_CONNECTING
 *   ready = grpc.GRPC_CHANNEL_READY
 *   transient_failure = grpc.GRPC_CHANNEL_TRANSIENT_FAILURE             # <<<<<<<<<<<<<<
 *   fatal_failure = grpc.GRPC_CHANNEL_FATAL_FAILURE
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_connectivity_state(GRPC_CHANNEL_TRANSIENT_FAILURE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_transient_failure, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":40
 *   ready = grpc.GRPC_CHANNEL_READY
 *   transient_failure = grpc.GRPC_CHANNEL_TRANSIENT_FAILURE
 *   fatal_failure = grpc.GRPC_CHANNEL_FATAL_FAILURE             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_connectivity_state(GRPC_CHANNEL_FATAL_FAILURE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_fatal_failure, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":35
 * 
 * 
 * class ConnectivityState:             # <<<<<<<<<<<<<<
 *   idle = grpc.GRPC_CHANNEL_IDLE
 *   connecting = grpc.GRPC_CHANNEL_CONNECTING
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_ConnectivityState, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ConnectivityState, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":43
 * 
 * 
 * class ChannelArgKey:             # <<<<<<<<<<<<<<
 *   enable_census = grpc.GRPC_ARG_ENABLE_CENSUS
 *   max_concurrent_streams = grpc.GRPC_ARG_MAX_CONCURRENT_STREAMS
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_ChannelArgKey, __pyx_n_s_ChannelArgKey, (PyObject *) NULL, __pyx_n_s_grpc__cython__cygrpc_records, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":44
 * 
 * class ChannelArgKey:
 *   enable_census = grpc.GRPC_ARG_ENABLE_CENSUS             # <<<<<<<<<<<<<<
 *   max_concurrent_streams = grpc.GRPC_ARG_MAX_CONCURRENT_STREAMS
 *   max_message_length = grpc.GRPC_ARG_MAX_MESSAGE_LENGTH
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_ARG_ENABLE_CENSUS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_enable_census, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":45
 * class ChannelArgKey:
 *   enable_census = grpc.GRPC_ARG_ENABLE_CENSUS
 *   max_concurrent_streams = grpc.GRPC_ARG_MAX_CONCURRENT_STREAMS             # <<<<<<<<<<<<<<
 *   max_message_length = grpc.GRPC_ARG_MAX_MESSAGE_LENGTH
 *   http2_initial_sequence_number = grpc.GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_ARG_MAX_CONCURRENT_STREAMS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_max_concurrent_streams, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":46
 *   enable_census = grpc.GRPC_ARG_ENABLE_CENSUS
 *   max_concurrent_streams = grpc.GRPC_ARG_MAX_CONCURRENT_STREAMS
 *   max_message_length = grpc.GRPC_ARG_MAX_MESSAGE_LENGTH             # <<<<<<<<<<<<<<
 *   http2_initial_sequence_number = grpc.GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER
 *   default_authority = grpc.GRPC_ARG_DEFAULT_AUTHORITY
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_ARG_MAX_MESSAGE_LENGTH); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_max_message_length, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":47
 *   max_concurrent_streams = grpc.GRPC_ARG_MAX_CONCURRENT_STREAMS
 *   max_message_length = grpc.GRPC_ARG_MAX_MESSAGE_LENGTH
 *   http2_initial_sequence_number = grpc.GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER             # <<<<<<<<<<<<<<
 *   default_authority = grpc.GRPC_ARG_DEFAULT_AUTHORITY
 *   primary_user_agent_string = grpc.GRPC_ARG_PRIMARY_USER_AGENT_STRING
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_http2_initial_sequence_number, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":48
 *   max_message_length = grpc.GRPC_ARG_MAX_MESSAGE_LENGTH
 *   http2_initial_sequence_number = grpc.GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER
 *   default_authority = grpc.GRPC_ARG_DEFAULT_AUTHORITY             # <<<<<<<<<<<<<<
 *   primary_user_agent_string = grpc.GRPC_ARG_PRIMARY_USER_AGENT_STRING
 *   secondary_user_agent_string = grpc.GRPC_ARG_SECONDARY_USER_AGENT_STRING
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_ARG_DEFAULT_AUTHORITY); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_default_authority, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":49
 *   http2_initial_sequence_number = grpc.GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER
 *   default_authority = grpc.GRPC_ARG_DEFAULT_AUTHORITY
 *   primary_user_agent_string = grpc.GRPC_ARG_PRIMARY_USER_AGENT_STRING             # <<<<<<<<<<<<<<
 *   secondary_user_agent_string = grpc.GRPC_ARG_SECONDARY_USER_AGENT_STRING
 *   ssl_target_name_override = grpc.GRPC_SSL_TARGET_NAME_OVERRIDE_ARG
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_ARG_PRIMARY_USER_AGENT_STRING); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_primary_user_agent_string, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":50
 *   default_authority = grpc.GRPC_ARG_DEFAULT_AUTHORITY
 *   primary_user_agent_string = grpc.GRPC_ARG_PRIMARY_USER_AGENT_STRING
 *   secondary_user_agent_string = grpc.GRPC_ARG_SECONDARY_USER_AGENT_STRING             # <<<<<<<<<<<<<<
 *   ssl_target_name_override = grpc.GRPC_SSL_TARGET_NAME_OVERRIDE_ARG
 * 
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_ARG_SECONDARY_USER_AGENT_STRING); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_secondary_user_agent_string, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":51
 *   primary_user_agent_string = grpc.GRPC_ARG_PRIMARY_USER_AGENT_STRING
 *   secondary_user_agent_string = grpc.GRPC_ARG_SECONDARY_USER_AGENT_STRING
 *   ssl_target_name_override = grpc.GRPC_SSL_TARGET_NAME_OVERRIDE_ARG             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyBytes_FromString(GRPC_SSL_TARGET_NAME_OVERRIDE_ARG); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_ssl_target_name_override, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":43
 * 
 * 
 * class ChannelArgKey:             # <<<<<<<<<<<<<<
 *   enable_census = grpc.GRPC_ARG_ENABLE_CENSUS
 *   max_concurrent_streams = grpc.GRPC_ARG_MAX_CONCURRENT_STREAMS
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_ChannelArgKey, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ChannelArgKey, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":54
 * 
 * 
 * class WriteFlag:             # <<<<<<<<<<<<<<
 *   buffer_hint = grpc.GRPC_WRITE_BUFFER_HINT
 *   no_compress = grpc.GRPC_WRITE_NO_COMPRESS
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_WriteFlag, __pyx_n_s_WriteFlag, (PyObject *) NULL, __pyx_n_s_grpc__cython__cygrpc_records, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":55
 * 
 * class WriteFlag:
 *   buffer_hint = grpc.GRPC_WRITE_BUFFER_HINT             # <<<<<<<<<<<<<<
 *   no_compress = grpc.GRPC_WRITE_NO_COMPRESS
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_int(GRPC_WRITE_BUFFER_HINT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_buffer_hint, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":56
 * class WriteFlag:
 *   buffer_hint = grpc.GRPC_WRITE_BUFFER_HINT
 *   no_compress = grpc.GRPC_WRITE_NO_COMPRESS             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_int(GRPC_WRITE_NO_COMPRESS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_no_compress, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":54
 * 
 * 
 * class WriteFlag:             # <<<<<<<<<<<<<<
 *   buffer_hint = grpc.GRPC_WRITE_BUFFER_HINT
 *   no_compress = grpc.GRPC_WRITE_NO_COMPRESS
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_WriteFlag, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_WriteFlag, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":59
 * 
 * 
 * class StatusCode:             # <<<<<<<<<<<<<<
 *   ok = grpc.GRPC_STATUS_OK
 *   cancelled = grpc.GRPC_STATUS_CANCELLED
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_StatusCode, __pyx_n_s_StatusCode, (PyObject *) NULL, __pyx_n_s_grpc__cython__cygrpc_records, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":60
 * 
 * class StatusCode:
 *   ok = grpc.GRPC_STATUS_OK             # <<<<<<<<<<<<<<
 *   cancelled = grpc.GRPC_STATUS_CANCELLED
 *   unknown = grpc.GRPC_STATUS_UNKNOWN
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_OK); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_ok, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":61
 * class StatusCode:
 *   ok = grpc.GRPC_STATUS_OK
 *   cancelled = grpc.GRPC_STATUS_CANCELLED             # <<<<<<<<<<<<<<
 *   unknown = grpc.GRPC_STATUS_UNKNOWN
 *   invalid_argument = grpc.GRPC_STATUS_INVALID_ARGUMENT
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_CANCELLED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_cancelled, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":62
 *   ok = grpc.GRPC_STATUS_OK
 *   cancelled = grpc.GRPC_STATUS_CANCELLED
 *   unknown = grpc.GRPC_STATUS_UNKNOWN             # <<<<<<<<<<<<<<
 *   invalid_argument = grpc.GRPC_STATUS_INVALID_ARGUMENT
 *   deadline_exceeded = grpc.GRPC_STATUS_DEADLINE_EXCEEDED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_UNKNOWN); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unknown, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":63
 *   cancelled = grpc.GRPC_STATUS_CANCELLED
 *   unknown = grpc.GRPC_STATUS_UNKNOWN
 *   invalid_argument = grpc.GRPC_STATUS_INVALID_ARGUMENT             # <<<<<<<<<<<<<<
 *   deadline_exceeded = grpc.GRPC_STATUS_DEADLINE_EXCEEDED
 *   not_found = grpc.GRPC_STATUS_NOT_FOUND
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_INVALID_ARGUMENT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_invalid_argument, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":64
 *   unknown = grpc.GRPC_STATUS_UNKNOWN
 *   invalid_argument = grpc.GRPC_STATUS_INVALID_ARGUMENT
 *   deadline_exceeded = grpc.GRPC_STATUS_DEADLINE_EXCEEDED             # <<<<<<<<<<<<<<
 *   not_found = grpc.GRPC_STATUS_NOT_FOUND
 *   already_exists = grpc.GRPC_STATUS_ALREADY_EXISTS
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_DEADLINE_EXCEEDED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_deadline_exceeded, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":65
 *   invalid_argument = grpc.GRPC_STATUS_INVALID_ARGUMENT
 *   deadline_exceeded = grpc.GRPC_STATUS_DEADLINE_EXCEEDED
 *   not_found = grpc.GRPC_STATUS_NOT_FOUND             # <<<<<<<<<<<<<<
 *   already_exists = grpc.GRPC_STATUS_ALREADY_EXISTS
 *   permission_denied = grpc.GRPC_STATUS_PERMISSION_DENIED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_NOT_FOUND); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_not_found, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":66
 *   deadline_exceeded = grpc.GRPC_STATUS_DEADLINE_EXCEEDED
 *   not_found = grpc.GRPC_STATUS_NOT_FOUND
 *   already_exists = grpc.GRPC_STATUS_ALREADY_EXISTS             # <<<<<<<<<<<<<<
 *   permission_denied = grpc.GRPC_STATUS_PERMISSION_DENIED
 *   unauthenticated = grpc.GRPC_STATUS_UNAUTHENTICATED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_ALREADY_EXISTS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_already_exists, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":67
 *   not_found = grpc.GRPC_STATUS_NOT_FOUND
 *   already_exists = grpc.GRPC_STATUS_ALREADY_EXISTS
 *   permission_denied = grpc.GRPC_STATUS_PERMISSION_DENIED             # <<<<<<<<<<<<<<
 *   unauthenticated = grpc.GRPC_STATUS_UNAUTHENTICATED
 *   resource_exhausted = grpc.GRPC_STATUS_RESOURCE_EXHAUSTED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_PERMISSION_DENIED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_permission_denied, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":68
 *   already_exists = grpc.GRPC_STATUS_ALREADY_EXISTS
 *   permission_denied = grpc.GRPC_STATUS_PERMISSION_DENIED
 *   unauthenticated = grpc.GRPC_STATUS_UNAUTHENTICATED             # <<<<<<<<<<<<<<
 *   resource_exhausted = grpc.GRPC_STATUS_RESOURCE_EXHAUSTED
 *   failed_precondition = grpc.GRPC_STATUS_FAILED_PRECONDITION
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_UNAUTHENTICATED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unauthenticated, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":69
 *   permission_denied = grpc.GRPC_STATUS_PERMISSION_DENIED
 *   unauthenticated = grpc.GRPC_STATUS_UNAUTHENTICATED
 *   resource_exhausted = grpc.GRPC_STATUS_RESOURCE_EXHAUSTED             # <<<<<<<<<<<<<<
 *   failed_precondition = grpc.GRPC_STATUS_FAILED_PRECONDITION
 *   aborted = grpc.GRPC_STATUS_ABORTED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_RESOURCE_EXHAUSTED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_resource_exhausted, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":70
 *   unauthenticated = grpc.GRPC_STATUS_UNAUTHENTICATED
 *   resource_exhausted = grpc.GRPC_STATUS_RESOURCE_EXHAUSTED
 *   failed_precondition = grpc.GRPC_STATUS_FAILED_PRECONDITION             # <<<<<<<<<<<<<<
 *   aborted = grpc.GRPC_STATUS_ABORTED
 *   out_of_range = grpc.GRPC_STATUS_OUT_OF_RANGE
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_FAILED_PRECONDITION); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_failed_precondition, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":71
 *   resource_exhausted = grpc.GRPC_STATUS_RESOURCE_EXHAUSTED
 *   failed_precondition = grpc.GRPC_STATUS_FAILED_PRECONDITION
 *   aborted = grpc.GRPC_STATUS_ABORTED             # <<<<<<<<<<<<<<
 *   out_of_range = grpc.GRPC_STATUS_OUT_OF_RANGE
 *   unimplemented = grpc.GRPC_STATUS_UNIMPLEMENTED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_ABORTED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_aborted, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":72
 *   failed_precondition = grpc.GRPC_STATUS_FAILED_PRECONDITION
 *   aborted = grpc.GRPC_STATUS_ABORTED
 *   out_of_range = grpc.GRPC_STATUS_OUT_OF_RANGE             # <<<<<<<<<<<<<<
 *   unimplemented = grpc.GRPC_STATUS_UNIMPLEMENTED
 *   internal = grpc.GRPC_STATUS_INTERNAL
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_OUT_OF_RANGE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_out_of_range, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":73
 *   aborted = grpc.GRPC_STATUS_ABORTED
 *   out_of_range = grpc.GRPC_STATUS_OUT_OF_RANGE
 *   unimplemented = grpc.GRPC_STATUS_UNIMPLEMENTED             # <<<<<<<<<<<<<<
 *   internal = grpc.GRPC_STATUS_INTERNAL
 *   unavailable = grpc.GRPC_STATUS_UNAVAILABLE
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_UNIMPLEMENTED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unimplemented, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":74
 *   out_of_range = grpc.GRPC_STATUS_OUT_OF_RANGE
 *   unimplemented = grpc.GRPC_STATUS_UNIMPLEMENTED
 *   internal = grpc.GRPC_STATUS_INTERNAL             # <<<<<<<<<<<<<<
 *   unavailable = grpc.GRPC_STATUS_UNAVAILABLE
 *   data_loss = grpc.GRPC_STATUS_DATA_LOSS
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_INTERNAL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_internal, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":75
 *   unimplemented = grpc.GRPC_STATUS_UNIMPLEMENTED
 *   internal = grpc.GRPC_STATUS_INTERNAL
 *   unavailable = grpc.GRPC_STATUS_UNAVAILABLE             # <<<<<<<<<<<<<<
 *   data_loss = grpc.GRPC_STATUS_DATA_LOSS
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_UNAVAILABLE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unavailable, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":76
 *   internal = grpc.GRPC_STATUS_INTERNAL
 *   unavailable = grpc.GRPC_STATUS_UNAVAILABLE
 *   data_loss = grpc.GRPC_STATUS_DATA_LOSS             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_status_code(GRPC_STATUS_DATA_LOSS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_data_loss, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":59
 * 
 * 
 * class StatusCode:             # <<<<<<<<<<<<<<
 *   ok = grpc.GRPC_STATUS_OK
 *   cancelled = grpc.GRPC_STATUS_CANCELLED
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_StatusCode, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_StatusCode, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":79
 * 
 * 
 * class CallError:             # <<<<<<<<<<<<<<
 *   ok = grpc.GRPC_CALL_OK
 *   error = grpc.GRPC_CALL_ERROR
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_CallError, __pyx_n_s_CallError, (PyObject *) NULL, __pyx_n_s_grpc__cython__cygrpc_records, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":80
 * 
 * class CallError:
 *   ok = grpc.GRPC_CALL_OK             # <<<<<<<<<<<<<<
 *   error = grpc.GRPC_CALL_ERROR
 *   not_on_server = grpc.GRPC_CALL_ERROR_NOT_ON_SERVER
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_OK); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_ok, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":81
 * class CallError:
 *   ok = grpc.GRPC_CALL_OK
 *   error = grpc.GRPC_CALL_ERROR             # <<<<<<<<<<<<<<
 *   not_on_server = grpc.GRPC_CALL_ERROR_NOT_ON_SERVER
 *   not_on_client = grpc.GRPC_CALL_ERROR_NOT_ON_CLIENT
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_error, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":82
 *   ok = grpc.GRPC_CALL_OK
 *   error = grpc.GRPC_CALL_ERROR
 *   not_on_server = grpc.GRPC_CALL_ERROR_NOT_ON_SERVER             # <<<<<<<<<<<<<<
 *   not_on_client = grpc.GRPC_CALL_ERROR_NOT_ON_CLIENT
 *   already_accepted = grpc.GRPC_CALL_ERROR_ALREADY_ACCEPTED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_NOT_ON_SERVER); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_not_on_server, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":83
 *   error = grpc.GRPC_CALL_ERROR
 *   not_on_server = grpc.GRPC_CALL_ERROR_NOT_ON_SERVER
 *   not_on_client = grpc.GRPC_CALL_ERROR_NOT_ON_CLIENT             # <<<<<<<<<<<<<<
 *   already_accepted = grpc.GRPC_CALL_ERROR_ALREADY_ACCEPTED
 *   already_invoked = grpc.GRPC_CALL_ERROR_ALREADY_INVOKED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_NOT_ON_CLIENT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_not_on_client, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":84
 *   not_on_server = grpc.GRPC_CALL_ERROR_NOT_ON_SERVER
 *   not_on_client = grpc.GRPC_CALL_ERROR_NOT_ON_CLIENT
 *   already_accepted = grpc.GRPC_CALL_ERROR_ALREADY_ACCEPTED             # <<<<<<<<<<<<<<
 *   already_invoked = grpc.GRPC_CALL_ERROR_ALREADY_INVOKED
 *   not_invoked = grpc.GRPC_CALL_ERROR_NOT_INVOKED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_ALREADY_ACCEPTED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_already_accepted, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":85
 *   not_on_client = grpc.GRPC_CALL_ERROR_NOT_ON_CLIENT
 *   already_accepted = grpc.GRPC_CALL_ERROR_ALREADY_ACCEPTED
 *   already_invoked = grpc.GRPC_CALL_ERROR_ALREADY_INVOKED             # <<<<<<<<<<<<<<
 *   not_invoked = grpc.GRPC_CALL_ERROR_NOT_INVOKED
 *   already_finished = grpc.GRPC_CALL_ERROR_ALREADY_FINISHED
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_ALREADY_INVOKED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_already_invoked, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":86
 *   already_accepted = grpc.GRPC_CALL_ERROR_ALREADY_ACCEPTED
 *   already_invoked = grpc.GRPC_CALL_ERROR_ALREADY_INVOKED
 *   not_invoked = grpc.GRPC_CALL_ERROR_NOT_INVOKED             # <<<<<<<<<<<<<<
 *   already_finished = grpc.GRPC_CALL_ERROR_ALREADY_FINISHED
 *   too_many_operations = grpc.GRPC_CALL_ERROR_TOO_MANY_OPERATIONS
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_NOT_INVOKED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_not_invoked, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":87
 *   already_invoked = grpc.GRPC_CALL_ERROR_ALREADY_INVOKED
 *   not_invoked = grpc.GRPC_CALL_ERROR_NOT_INVOKED
 *   already_finished = grpc.GRPC_CALL_ERROR_ALREADY_FINISHED             # <<<<<<<<<<<<<<
 *   too_many_operations = grpc.GRPC_CALL_ERROR_TOO_MANY_OPERATIONS
 *   invalid_flags = grpc.GRPC_CALL_ERROR_INVALID_FLAGS
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_ALREADY_FINISHED); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_already_finished, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":88
 *   not_invoked = grpc.GRPC_CALL_ERROR_NOT_INVOKED
 *   already_finished = grpc.GRPC_CALL_ERROR_ALREADY_FINISHED
 *   too_many_operations = grpc.GRPC_CALL_ERROR_TOO_MANY_OPERATIONS             # <<<<<<<<<<<<<<
 *   invalid_flags = grpc.GRPC_CALL_ERROR_INVALID_FLAGS
 *   invalid_metadata = grpc.GRPC_CALL_ERROR_INVALID_METADATA
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_TOO_MANY_OPERATIONS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_too_many_operations, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":89
 *   already_finished = grpc.GRPC_CALL_ERROR_ALREADY_FINISHED
 *   too_many_operations = grpc.GRPC_CALL_ERROR_TOO_MANY_OPERATIONS
 *   invalid_flags = grpc.GRPC_CALL_ERROR_INVALID_FLAGS             # <<<<<<<<<<<<<<
 *   invalid_metadata = grpc.GRPC_CALL_ERROR_INVALID_METADATA
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_INVALID_FLAGS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_invalid_flags, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":90
 *   too_many_operations = grpc.GRPC_CALL_ERROR_TOO_MANY_OPERATIONS
 *   invalid_flags = grpc.GRPC_CALL_ERROR_INVALID_FLAGS
 *   invalid_metadata = grpc.GRPC_CALL_ERROR_INVALID_METADATA             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_call_error(GRPC_CALL_ERROR_INVALID_METADATA); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_invalid_metadata, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":79
 * 
 * 
 * class CallError:             # <<<<<<<<<<<<<<
 *   ok = grpc.GRPC_CALL_OK
 *   error = grpc.GRPC_CALL_ERROR
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_CallError, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CallError, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":93
 * 
 * 
 * class CompletionType:             # <<<<<<<<<<<<<<
 *   queue_shutdown = grpc.GRPC_QUEUE_SHUTDOWN
 *   queue_timeout = grpc.GRPC_QUEUE_TIMEOUT
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_CompletionType, __pyx_n_s_CompletionType, (PyObject *) NULL, __pyx_n_s_grpc__cython__cygrpc_records, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":94
 * 
 * class CompletionType:
 *   queue_shutdown = grpc.GRPC_QUEUE_SHUTDOWN             # <<<<<<<<<<<<<<
 *   queue_timeout = grpc.GRPC_QUEUE_TIMEOUT
 *   operation_complete = grpc.GRPC_OP_COMPLETE
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_completion_type(GRPC_QUEUE_SHUTDOWN); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_queue_shutdown, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":95
 * class CompletionType:
 *   queue_shutdown = grpc.GRPC_QUEUE_SHUTDOWN
 *   queue_timeout = grpc.GRPC_QUEUE_TIMEOUT             # <<<<<<<<<<<<<<
 *   operation_complete = grpc.GRPC_OP_COMPLETE
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_completion_type(GRPC_QUEUE_TIMEOUT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_queue_timeout, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":96
 *   queue_shutdown = grpc.GRPC_QUEUE_SHUTDOWN
 *   queue_timeout = grpc.GRPC_QUEUE_TIMEOUT
 *   operation_complete = grpc.GRPC_OP_COMPLETE             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_completion_type(GRPC_OP_COMPLETE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_operation_complete, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":93
 * 
 * 
 * class CompletionType:             # <<<<<<<<<<<<<<
 *   queue_shutdown = grpc.GRPC_QUEUE_SHUTDOWN
 *   queue_timeout = grpc.GRPC_QUEUE_TIMEOUT
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_CompletionType, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CompletionType, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":99
 * 
 * 
 * class OperationType:             # <<<<<<<<<<<<<<
 *   send_initial_metadata = grpc.GRPC_OP_SEND_INITIAL_METADATA
 *   send_message = grpc.GRPC_OP_SEND_MESSAGE
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_OperationType, __pyx_n_s_OperationType, (PyObject *) NULL, __pyx_n_s_grpc__cython__cygrpc_records, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":100
 * 
 * class OperationType:
 *   send_initial_metadata = grpc.GRPC_OP_SEND_INITIAL_METADATA             # <<<<<<<<<<<<<<
 *   send_message = grpc.GRPC_OP_SEND_MESSAGE
 *   send_close_from_client = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_SEND_INITIAL_METADATA); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_send_initial_metadata, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":101
 * class OperationType:
 *   send_initial_metadata = grpc.GRPC_OP_SEND_INITIAL_METADATA
 *   send_message = grpc.GRPC_OP_SEND_MESSAGE             # <<<<<<<<<<<<<<
 *   send_close_from_client = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 *   send_status_from_server = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_SEND_MESSAGE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_send_message, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":102
 *   send_initial_metadata = grpc.GRPC_OP_SEND_INITIAL_METADATA
 *   send_message = grpc.GRPC_OP_SEND_MESSAGE
 *   send_close_from_client = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT             # <<<<<<<<<<<<<<
 *   send_status_from_server = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 *   receive_initial_metadata = grpc.GRPC_OP_RECV_INITIAL_METADATA
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_SEND_CLOSE_FROM_CLIENT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_send_close_from_client, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":103
 *   send_message = grpc.GRPC_OP_SEND_MESSAGE
 *   send_close_from_client = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 *   send_status_from_server = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER             # <<<<<<<<<<<<<<
 *   receive_initial_metadata = grpc.GRPC_OP_RECV_INITIAL_METADATA
 *   receive_message = grpc.GRPC_OP_RECV_MESSAGE
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_SEND_STATUS_FROM_SERVER); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_send_status_from_server, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":104
 *   send_close_from_client = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 *   send_status_from_server = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 *   receive_initial_metadata = grpc.GRPC_OP_RECV_INITIAL_METADATA             # <<<<<<<<<<<<<<
 *   receive_message = grpc.GRPC_OP_RECV_MESSAGE
 *   receive_status_on_client = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_RECV_INITIAL_METADATA); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_receive_initial_metadata, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":105
 *   send_status_from_server = grpc.GRPC_OP_SEND_STATUS_FROM_SERVER
 *   receive_initial_metadata = grpc.GRPC_OP_RECV_INITIAL_METADATA
 *   receive_message = grpc.GRPC_OP_RECV_MESSAGE             # <<<<<<<<<<<<<<
 *   receive_status_on_client = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 *   receive_close_on_server = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_RECV_MESSAGE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_receive_message, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":106
 *   receive_initial_metadata = grpc.GRPC_OP_RECV_INITIAL_METADATA
 *   receive_message = grpc.GRPC_OP_RECV_MESSAGE
 *   receive_status_on_client = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT             # <<<<<<<<<<<<<<
 *   receive_close_on_server = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_RECV_STATUS_ON_CLIENT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_receive_status_on_client, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":107
 *   receive_message = grpc.GRPC_OP_RECV_MESSAGE
 *   receive_status_on_client = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 *   receive_close_on_server = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_grpc_op_type(GRPC_OP_RECV_CLOSE_ON_SERVER); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_receive_close_on_server, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":99
 * 
 * 
 * class OperationType:             # <<<<<<<<<<<<<<
 *   send_initial_metadata = grpc.GRPC_OP_SEND_INITIAL_METADATA
 *   send_message = grpc.GRPC_OP_SEND_MESSAGE
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_OperationType, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_OperationType, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":134
 * 
 *   @property
 *   def seconds(self):             # <<<<<<<<<<<<<<
 *     # TODO(atash) ensure that everywhere a Timespec is created that it's
 *     # converted to GPR_CLOCK_REALTIME then and not every time someone wants to
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec, __pyx_n_s_seconds); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":133
 *                           .format(type(time)))
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def seconds(self):
 *     # TODO(atash) ensure that everywhere a Timespec is created that it's
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec->tp_dict, __pyx_n_s_seconds, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec);

  /* "grpc/_cython/_cygrpc/records.pyx":143
 * 
 *   @property
 *   def nanoseconds(self):             # <<<<<<<<<<<<<<
 *     cdef grpc.gpr_timespec real_time = (
 *         grpc.gpr_convert_clock_type(self.c_time, grpc.GPR_CLOCK_REALTIME))
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec, __pyx_n_s_nanoseconds); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":142
 *     return real_time.seconds
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def nanoseconds(self):
 *     cdef grpc.gpr_timespec real_time = (
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec->tp_dict, __pyx_n_s_nanoseconds, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec);

  /* "grpc/_cython/_cygrpc/records.pyx":153
 *     return <double>real_time.seconds + <double>real_time.nanoseconds / 1e9
 * 
 *   infinite_future = Timespec(float("+inf"))             # <<<<<<<<<<<<<<
 *   infinite_past = Timespec(float("-inf"))
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_AsDouble(__pyx_kp_s_inf); if (unlikely(__pyx_t_3 == ((double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_1 = PyFloat_FromDouble(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec->tp_dict, __pyx_n_s_infinite_future, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec);

  /* "grpc/_cython/_cygrpc/records.pyx":154
 * 
 *   infinite_future = Timespec(float("+inf"))
 *   infinite_past = Timespec(float("-inf"))             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_AsDouble(__pyx_kp_s_inf_2); if (unlikely(__pyx_t_3 == ((double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_1 = PyFloat_FromDouble(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec->tp_dict, __pyx_n_s_infinite_past, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Timespec);

  /* "grpc/_cython/_cygrpc/records.pyx":166
 * 
 *   @property
 *   def method(self):             # <<<<<<<<<<<<<<
 *     if self.c_details.method != NULL:
 *       return <bytes>self.c_details.method
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails, __pyx_n_s_method); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":165
 *     grpc.grpc_call_details_destroy(&self.c_details)
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def method(self):
 *     if self.c_details.method != NULL:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails->tp_dict, __pyx_n_s_method, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails);

  /* "grpc/_cython/_cygrpc/records.pyx":173
 * 
 *   @property
 *   def host(self):             # <<<<<<<<<<<<<<
 *     if self.c_details.host != NULL:
 *       return <bytes>self.c_details.host
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails, __pyx_n_s_host); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":172
 *       return None
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def host(self):
 *     if self.c_details.host != NULL:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails->tp_dict, __pyx_n_s_host, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails);

  /* "grpc/_cython/_cygrpc/records.pyx":180
 * 
 *   @property
 *   def deadline(self):             # <<<<<<<<<<<<<<
 *     timespec = Timespec(float("-inf"))
 *     timespec.c_time = self.c_details.deadline
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails, __pyx_n_s_deadline); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":179
 *       return None
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def deadline(self):
 *     timespec = Timespec(float("-inf"))
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails->tp_dict, __pyx_n_s_deadline, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_CallDetails);

  /* "grpc/_cython/_cygrpc/records.pyx":359
 * 
 *   @property
 *   def key(self):             # <<<<<<<<<<<<<<
 *     return <bytes>self.c_metadata.key
 * 
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum, __pyx_n_s_key); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":358
 *     self.c_metadata.value_length = len(self._value)
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def key(self):
 *     return <bytes>self.c_metadata.key
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum->tp_dict, __pyx_n_s_key, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum);

  /* "grpc/_cython/_cygrpc/records.pyx":363
 * 
 *   @property
 *   def value(self):             # <<<<<<<<<<<<<<
 *     return <bytes>self.c_metadata.value[:self.c_metadata.value_length]
 * 
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":362
 *     return <bytes>self.c_metadata.key
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def value(self):
 *     return <bytes>self.c_metadata.value[:self.c_metadata.value_length]
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum->tp_dict, __pyx_n_s_value, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Metadatum);

  /* "grpc/_cython/_cygrpc/records.pyx":447
 * 
 *   @property
 *   def type(self):             # <<<<<<<<<<<<<<
 *     return self.c_op.type
 * 
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":446
 *     self.is_valid = False
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def type(self):
 *     return self.c_op.type
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_type, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":451
 * 
 *   @property
 *   def has_status(self):             # <<<<<<<<<<<<<<
 *     return self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 * 
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_has_status); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":450
 *     return self.c_op.type
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def has_status(self):
 *     return self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_has_status, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":455
 * 
 *   @property
 *   def received_message(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       raise TypeError("self must be an operation receiving a message")
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_message); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":454
 *     return self.c_op.type == grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_message(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_message, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":461
 * 
 *   @property
 *   def received_message_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 *       return None
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_message_or_none); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":460
 *     return self._received_message
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_message_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_MESSAGE:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_message_or_none, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":467
 * 
 *   @property
 *   def received_metadata(self):             # <<<<<<<<<<<<<<
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_metadata); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":466
 *     return self._received_message
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_metadata(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_metadata, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":474
 * 
 *   @property
 *   def received_metadata_or_none(self):             # <<<<<<<<<<<<<<
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 *         self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT):
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_metadata_or_none); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":473
 *     return self._received_metadata
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_metadata_or_none(self):
 *     if (self.c_op.type != grpc.GRPC_OP_RECV_INITIAL_METADATA and
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_metadata_or_none, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":481
 * 
 *   @property
 *   def received_status_code(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving a status code")
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_status_code); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":480
 *     return self._received_metadata
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_status_code(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_status_code, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":487
 * 
 *   @property
 *   def received_status_code_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_status_code_or_none); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":486
 *     return self._received_status_code
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_status_code_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_status_code_or_none, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":493
 * 
 *   @property
 *   def received_status_details(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       raise TypeError("self must be an operation receiving status details")
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_status_details); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":492
 *     return self._received_status_code
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_status_details(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_status_details, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":502
 * 
 *   @property
 *   def received_status_details_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 *       return None
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_status_details_or_none); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":501
 *       return None
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_status_details_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_STATUS_ON_CLIENT:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_status_details_or_none, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":511
 * 
 *   @property
 *   def received_cancelled(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       raise TypeError("self must be an operation receiving cancellation "
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_cancelled); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":510
 *       return None
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_cancelled(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_cancelled, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":518
 * 
 *   @property
 *   def received_cancelled_or_none(self):             # <<<<<<<<<<<<<<
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 *       return None
 */
  __pyx_t_1 = __Pyx_GetNameInClass((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation, __pyx_n_s_received_cancelled_or_none); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "grpc/_cython/_cygrpc/records.pyx":517
 *     return False if self._received_cancelled == 0 else True
 * 
 *   @property             # <<<<<<<<<<<<<<
 *   def received_cancelled_or_none(self):
 *     if self.c_op.type != grpc.GRPC_OP_RECV_CLOSE_ON_SERVER:
 */
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation->tp_dict, __pyx_n_s_received_cancelled_or_none, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4grpc_7_cython_7_cygrpc_7records_Operation);

  /* "grpc/_cython/_cygrpc/records.pyx":530
 *       grpc.gpr_free(self._received_status_details)
 * 
 * def operation_send_initial_metadata(Metadata metadata):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_INITIAL_METADATA
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_1operation_send_initial_metadata, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_send_initial_metadata, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":540
 *   return op
 * 
 * def operation_send_message(data):             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_MESSAGE
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_3operation_send_message, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_send_message, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":549
 *   return op
 * 
 * def operation_send_close_from_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_SEND_CLOSE_FROM_CLIENT
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_5operation_send_close_from_client, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_send_close_from_client, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":555
 *   return op
 * 
 * def operation_send_status_from_server(             # <<<<<<<<<<<<<<
 *     Metadata metadata, grpc.grpc_status_code code, details):
 *   if isinstance(details, bytes):
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_7operation_send_status_from_server, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_send_status_from_serve, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":576
 *   return op
 * 
 * def operation_receive_initial_metadata():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_INITIAL_METADATA
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_9operation_receive_initial_metadata, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_receive_initial_metada, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":585
 *   return op
 * 
 * def operation_receive_message():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_MESSAGE
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_11operation_receive_message, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_receive_message, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":596
 *   return op
 * 
 * def operation_receive_status_on_client():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_STATUS_ON_CLIENT
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_13operation_receive_status_on_client, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_receive_status_on_clie, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":611
 *   return op
 * 
 * def operation_receive_close_on_server():             # <<<<<<<<<<<<<<
 *   cdef Operation op = Operation()
 *   op.c_op.type = grpc.GRPC_OP_RECV_CLOSE_ON_SERVER
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_4grpc_7_cython_7_cygrpc_7records_15operation_receive_close_on_server, NULL, __pyx_n_s_grpc__cython__cygrpc_records); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_operation_receive_close_on_serve, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "grpc/_cython/_cygrpc/records.pyx":1
 * # Copyright 2015, Google Inc.             # <<<<<<<<<<<<<<
 * # All rights reserved.
 * #
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init grpc._cython._cygrpc.records", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_DECREF(__pyx_m); __pyx_m = 0;
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init grpc._cython._cygrpc.records");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if PY_MAJOR_VERSION < 3
  return;
  #else
  return __pyx_m;
  #endif
}

/* --- Runtime support code --- */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule((char *)modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key);
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

static double __Pyx__PyObject_AsDouble(PyObject* obj) {
    PyObject* float_value;
#if CYTHON_COMPILING_IN_PYPY
    float_value = PyNumber_Float(obj);  if (0) goto bad;
#else
    PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number;
    if (likely(nb) && likely(nb->nb_float)) {
        float_value = nb->nb_float(obj);
        if (likely(float_value) && unlikely(!PyFloat_Check(float_value))) {
            PyErr_Format(PyExc_TypeError,
                "__float__ returned non-float (type %.200s)",
                Py_TYPE(float_value)->tp_name);
            Py_DECREF(float_value);
            goto bad;
        }
    } else if (PyUnicode_CheckExact(obj) || PyBytes_CheckExact(obj)) {
#if PY_MAJOR_VERSION >= 3
        float_value = PyFloat_FromString(obj);
#else
        float_value = PyFloat_FromString(obj, 0);
#endif
    } else {
        PyObject* args = PyTuple_New(1);
        if (unlikely(!args)) goto bad;
        PyTuple_SET_ITEM(args, 0, obj);
        float_value = PyObject_Call((PyObject*)&PyFloat_Type, args, 0);
        PyTuple_SET_ITEM(args, 0, 0);
        Py_DECREF(args);
    }
#endif
    if (likely(float_value)) {
        double value = PyFloat_AS_DOUBLE(float_value);
        Py_DECREF(float_value);
        return value;
    }
bad:
    return (double)-1;
}

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) {
#else
    if (likely(PyCFunction_Check(func))) {
#endif
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyThreadState *tstate = PyThreadState_GET();
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_Restore(type, value, tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyThreadState *tstate = PyThreadState_GET();
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#else
    PyErr_Fetch(type, value, tb);
#endif
}

#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
#if PY_VERSION_HEX >= 0x03030000
    if (cause) {
#else
    if (cause && cause != Py_None) {
#endif
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_COMPILING_IN_PYPY
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#else
        PyThreadState *tstate = PyThreadState_GET();
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

static CYTHON_INLINE int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

static void __Pyx_RaiseArgumentTypeInvalid(const char* name, PyObject *obj, PyTypeObject *type) {
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
}
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (none_allowed && obj == Py_None) return 1;
    else if (exact) {
        if (likely(Py_TYPE(obj) == type)) return 1;
        #if PY_MAJOR_VERSION == 2
        else if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(PyObject_TypeCheck(obj, type))) return 1;
    }
    __Pyx_RaiseArgumentTypeInvalid(name, obj, type);
    return 0;
}

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) {
#else
    if (likely(PyCFunction_Check(func))) {
#endif
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_COMPILING_IN_CPYTHON
    if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o);
    if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_COMPILING_IN_CPYTHON
    if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o);
    if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_COMPILING_IN_CPYTHON
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (PyErr_ExceptionMatches(PyExc_OverflowError))
                        PyErr_Clear();
                    else
                        return NULL;
                }
            }
            return m->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
    PyObject *method, *result = NULL;
    method = __Pyx_PyObject_GetAttrStr(obj, method_name);
    if (unlikely(!method)) goto bad;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(PyMethod_Check(method))) {
        PyObject *self = PyMethod_GET_SELF(method);
        if (likely(self)) {
            PyObject *args;
            PyObject *function = PyMethod_GET_FUNCTION(method);
            args = PyTuple_New(2);
            if (unlikely(!args)) goto bad;
            Py_INCREF(self);
            PyTuple_SET_ITEM(args, 0, self);
            Py_INCREF(arg);
            PyTuple_SET_ITEM(args, 1, arg);
            Py_INCREF(function);
            Py_DECREF(method); method = NULL;
            result = __Pyx_PyObject_Call(function, args, NULL);
            Py_DECREF(args);
            Py_DECREF(function);
            return result;
        }
    }
#endif
    result = __Pyx_PyObject_CallOneArg(method, arg);
bad:
    Py_XDECREF(method);
    return result;
}

static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
    if (likely(PyList_CheckExact(L))) {
        if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1;
    } else {
        PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_n_s_append, x);
        if (unlikely(!retval))
            return -1;
        Py_DECREF(retval);
    }
    return 0;
}

static void* __Pyx_GetVtable(PyObject *dict) {
    void* ptr;
    PyObject *ob = PyObject_GetItem(dict, __pyx_n_s_pyx_vtable);
    if (!ob)
        goto bad;
#if PY_VERSION_HEX >= 0x02070000
    ptr = PyCapsule_GetPointer(ob, 0);
#else
    ptr = PyCObject_AsVoidPtr(ob);
#endif
    if (!ptr && !PyErr_Occurred())
        PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
    Py_DECREF(ob);
    return ptr;
bad:
    Py_XDECREF(ob);
    return NULL;
}

static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases);
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
        tmptype = Py_TYPE(tmp);
#if PY_MAJOR_VERSION < 3
        if (tmptype == &PyClass_Type)
            continue;
#endif
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
#if PY_MAJOR_VERSION < 3
        metaclass = &PyClass_Type;
#else
        metaclass = &PyType_Type;
#endif
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare);
        if (prep) {
            PyObject *pargs = PyTuple_Pack(2, name, bases);
            if (unlikely(!pargs)) {
                Py_DECREF(prep);
                return NULL;
            }
            ns = PyObject_Call(prep, pargs, mkw);
            Py_DECREF(prep);
            Py_DECREF(pargs);
        } else {
            if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError)))
                return NULL;
            PyErr_Clear();
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad;
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad;
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result, *margs;
    PyObject *owned_metaclass = NULL;
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    margs = PyTuple_Pack(3, name, bases, dict);
    if (unlikely(!margs)) {
        result = NULL;
    } else {
        result = PyObject_Call(metaclass, margs, mkw);
        Py_DECREF(margs);
    }
    Py_XDECREF(owned_metaclass);
    return result;
}

static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) {
    PyObject *result;
#if CYTHON_COMPILING_IN_CPYTHON
    result = PyDict_GetItem(__pyx_d, name);
    if (likely(result)) {
        Py_INCREF(result);
    } else {
#else
    result = PyObject_GetItem(__pyx_d, name);
    if (!result) {
        PyErr_Clear();
#endif
        result = __Pyx_GetBuiltinName(name);
    }
    return result;
}

static PyObject *__Pyx_GetNameInClass(PyObject *nmspace, PyObject *name) {
    PyObject *result;
    result = __Pyx_PyObject_GetAttrStr(nmspace, name);
    if (!result)
        result = __Pyx_GetModuleGlobalName(name);
    return result;
}

static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    py_code = __pyx_find_code_object(c_line ? c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        PyThreadState_GET(), /*PyThreadState *tstate,*/
        py_code,             /*PyCodeObject *code,*/
        __pyx_d,      /*PyObject *globals,*/
        0                    /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    py_frame->f_lineno = py_line;
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_completion_type(grpc_completion_type value) {
    const grpc_completion_type neg_one = (grpc_completion_type) -1, const_zero = (grpc_completion_type) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(grpc_completion_type) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_completion_type) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(grpc_completion_type) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(grpc_completion_type) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_completion_type) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(grpc_completion_type),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_connectivity_state(grpc_connectivity_state value) {
    const grpc_connectivity_state neg_one = (grpc_connectivity_state) -1, const_zero = (grpc_connectivity_state) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(grpc_connectivity_state) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_connectivity_state) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(grpc_connectivity_state) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(grpc_connectivity_state) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_connectivity_state) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(grpc_connectivity_state),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
    const int neg_one = (int) -1, const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_status_code(grpc_status_code value) {
    const grpc_status_code neg_one = (grpc_status_code) -1, const_zero = (grpc_status_code) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(grpc_status_code) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_status_code) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(grpc_status_code) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(grpc_status_code) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_status_code) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(grpc_status_code),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_call_error(grpc_call_error value) {
    const grpc_call_error neg_one = (grpc_call_error) -1, const_zero = (grpc_call_error) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(grpc_call_error) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_call_error) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(grpc_call_error) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(grpc_call_error) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_call_error) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(grpc_call_error),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_grpc_op_type(grpc_op_type value) {
    const grpc_op_type neg_one = (grpc_op_type) -1, const_zero = (grpc_op_type) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(grpc_op_type) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_op_type) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(grpc_op_type) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(grpc_op_type) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(grpc_op_type) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(grpc_op_type),
                                     little, !is_unsigned);
    }
}

#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
#endif

static CYTHON_INLINE grpc_completion_type __Pyx_PyInt_As_grpc_completion_type(PyObject *x) {
    const grpc_completion_type neg_one = (grpc_completion_type) -1, const_zero = (grpc_completion_type) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(grpc_completion_type) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(grpc_completion_type, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (grpc_completion_type) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (grpc_completion_type) 0;
                case  1: __PYX_VERIFY_RETURN_INT(grpc_completion_type, digit, digits[0])
                case 2:
                    if (8 * sizeof(grpc_completion_type) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) >= 2 * PyLong_SHIFT) {
                            return (grpc_completion_type) (((((grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(grpc_completion_type) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) >= 3 * PyLong_SHIFT) {
                            return (grpc_completion_type) (((((((grpc_completion_type)digits[2]) << PyLong_SHIFT) | (grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(grpc_completion_type) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) >= 4 * PyLong_SHIFT) {
                            return (grpc_completion_type) (((((((((grpc_completion_type)digits[3]) << PyLong_SHIFT) | (grpc_completion_type)digits[2]) << PyLong_SHIFT) | (grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (grpc_completion_type) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(grpc_completion_type) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_completion_type, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(grpc_completion_type) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_completion_type, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (grpc_completion_type) 0;
                case -1: __PYX_VERIFY_RETURN_INT(grpc_completion_type, sdigit, -(sdigit) digits[0])
                case  1: __PYX_VERIFY_RETURN_INT(grpc_completion_type,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(grpc_completion_type) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) - 1 > 2 * PyLong_SHIFT) {
                            return (grpc_completion_type) (((grpc_completion_type)-1)*(((((grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(grpc_completion_type) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) - 1 > 2 * PyLong_SHIFT) {
                            return (grpc_completion_type) ((((((grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(grpc_completion_type) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) - 1 > 3 * PyLong_SHIFT) {
                            return (grpc_completion_type) (((grpc_completion_type)-1)*(((((((grpc_completion_type)digits[2]) << PyLong_SHIFT) | (grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(grpc_completion_type) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) - 1 > 3 * PyLong_SHIFT) {
                            return (grpc_completion_type) ((((((((grpc_completion_type)digits[2]) << PyLong_SHIFT) | (grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(grpc_completion_type) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) - 1 > 4 * PyLong_SHIFT) {
                            return (grpc_completion_type) (((grpc_completion_type)-1)*(((((((((grpc_completion_type)digits[3]) << PyLong_SHIFT) | (grpc_completion_type)digits[2]) << PyLong_SHIFT) | (grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(grpc_completion_type) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_completion_type, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_completion_type) - 1 > 4 * PyLong_SHIFT) {
                            return (grpc_completion_type) ((((((((((grpc_completion_type)digits[3]) << PyLong_SHIFT) | (grpc_completion_type)digits[2]) << PyLong_SHIFT) | (grpc_completion_type)digits[1]) << PyLong_SHIFT) | (grpc_completion_type)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(grpc_completion_type) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_completion_type, long, PyLong_AsLong(x))
            } else if (sizeof(grpc_completion_type) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_completion_type, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            grpc_completion_type val;
            PyObject *v = __Pyx_PyNumber_Int(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (grpc_completion_type) -1;
        }
    } else {
        grpc_completion_type val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (grpc_completion_type) -1;
        val = __Pyx_PyInt_As_grpc_completion_type(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to grpc_completion_type");
    return (grpc_completion_type) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to grpc_completion_type");
    return (grpc_completion_type) -1;
}

static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) {
    const size_t neg_one = (size_t) -1, const_zero = (size_t) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(size_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(size_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (size_t) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (size_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(size_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 2 * PyLong_SHIFT) {
                            return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 3 * PyLong_SHIFT) {
                            return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 4 * PyLong_SHIFT) {
                            return (size_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (size_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(size_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (size_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(size_t, sdigit, -(sdigit) digits[0])
                case  1: __PYX_VERIFY_RETURN_INT(size_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(size_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_t) ((((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(size_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x))
            } else if (sizeof(size_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            size_t val;
            PyObject *v = __Pyx_PyNumber_Int(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (size_t) -1;
        }
    } else {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyInt_As_size_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to size_t");
    return (size_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to size_t");
    return (size_t) -1;
}

static CYTHON_INLINE grpc_status_code __Pyx_PyInt_As_grpc_status_code(PyObject *x) {
    const grpc_status_code neg_one = (grpc_status_code) -1, const_zero = (grpc_status_code) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(grpc_status_code) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(grpc_status_code, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (grpc_status_code) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (grpc_status_code) 0;
                case  1: __PYX_VERIFY_RETURN_INT(grpc_status_code, digit, digits[0])
                case 2:
                    if (8 * sizeof(grpc_status_code) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) >= 2 * PyLong_SHIFT) {
                            return (grpc_status_code) (((((grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(grpc_status_code) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) >= 3 * PyLong_SHIFT) {
                            return (grpc_status_code) (((((((grpc_status_code)digits[2]) << PyLong_SHIFT) | (grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(grpc_status_code) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) >= 4 * PyLong_SHIFT) {
                            return (grpc_status_code) (((((((((grpc_status_code)digits[3]) << PyLong_SHIFT) | (grpc_status_code)digits[2]) << PyLong_SHIFT) | (grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (grpc_status_code) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(grpc_status_code) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_status_code, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(grpc_status_code) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_status_code, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (grpc_status_code) 0;
                case -1: __PYX_VERIFY_RETURN_INT(grpc_status_code, sdigit, -(sdigit) digits[0])
                case  1: __PYX_VERIFY_RETURN_INT(grpc_status_code,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(grpc_status_code) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) - 1 > 2 * PyLong_SHIFT) {
                            return (grpc_status_code) (((grpc_status_code)-1)*(((((grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(grpc_status_code) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) - 1 > 2 * PyLong_SHIFT) {
                            return (grpc_status_code) ((((((grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(grpc_status_code) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) - 1 > 3 * PyLong_SHIFT) {
                            return (grpc_status_code) (((grpc_status_code)-1)*(((((((grpc_status_code)digits[2]) << PyLong_SHIFT) | (grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(grpc_status_code) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) - 1 > 3 * PyLong_SHIFT) {
                            return (grpc_status_code) ((((((((grpc_status_code)digits[2]) << PyLong_SHIFT) | (grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(grpc_status_code) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) - 1 > 4 * PyLong_SHIFT) {
                            return (grpc_status_code) (((grpc_status_code)-1)*(((((((((grpc_status_code)digits[3]) << PyLong_SHIFT) | (grpc_status_code)digits[2]) << PyLong_SHIFT) | (grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(grpc_status_code) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(grpc_status_code, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(grpc_status_code) - 1 > 4 * PyLong_SHIFT) {
                            return (grpc_status_code) ((((((((((grpc_status_code)digits[3]) << PyLong_SHIFT) | (grpc_status_code)digits[2]) << PyLong_SHIFT) | (grpc_status_code)digits[1]) << PyLong_SHIFT) | (grpc_status_code)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(grpc_status_code) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_status_code, long, PyLong_AsLong(x))
            } else if (sizeof(grpc_status_code) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(grpc_status_code, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            grpc_status_code val;
            PyObject *v = __Pyx_PyNumber_Int(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (grpc_status_code) -1;
        }
    } else {
        grpc_status_code val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (grpc_status_code) -1;
        val = __Pyx_PyInt_As_grpc_status_code(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to grpc_status_code");
    return (grpc_status_code) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to grpc_status_code");
    return (grpc_status_code) -1;
}

static CYTHON_INLINE gpr_int64 __Pyx_PyInt_As_gpr_int64(PyObject *x) {
    const gpr_int64 neg_one = (gpr_int64) -1, const_zero = (gpr_int64) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(gpr_int64) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(gpr_int64, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (gpr_int64) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (gpr_int64) 0;
                case  1: __PYX_VERIFY_RETURN_INT(gpr_int64, digit, digits[0])
                case 2:
                    if (8 * sizeof(gpr_int64) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) >= 2 * PyLong_SHIFT) {
                            return (gpr_int64) (((((gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(gpr_int64) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) >= 3 * PyLong_SHIFT) {
                            return (gpr_int64) (((((((gpr_int64)digits[2]) << PyLong_SHIFT) | (gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(gpr_int64) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) >= 4 * PyLong_SHIFT) {
                            return (gpr_int64) (((((((((gpr_int64)digits[3]) << PyLong_SHIFT) | (gpr_int64)digits[2]) << PyLong_SHIFT) | (gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (gpr_int64) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(gpr_int64) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int64, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(gpr_int64) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int64, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (gpr_int64) 0;
                case -1: __PYX_VERIFY_RETURN_INT(gpr_int64, sdigit, -(sdigit) digits[0])
                case  1: __PYX_VERIFY_RETURN_INT(gpr_int64,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(gpr_int64) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) - 1 > 2 * PyLong_SHIFT) {
                            return (gpr_int64) (((gpr_int64)-1)*(((((gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(gpr_int64) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) - 1 > 2 * PyLong_SHIFT) {
                            return (gpr_int64) ((((((gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(gpr_int64) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) - 1 > 3 * PyLong_SHIFT) {
                            return (gpr_int64) (((gpr_int64)-1)*(((((((gpr_int64)digits[2]) << PyLong_SHIFT) | (gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(gpr_int64) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) - 1 > 3 * PyLong_SHIFT) {
                            return (gpr_int64) ((((((((gpr_int64)digits[2]) << PyLong_SHIFT) | (gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(gpr_int64) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) - 1 > 4 * PyLong_SHIFT) {
                            return (gpr_int64) (((gpr_int64)-1)*(((((((((gpr_int64)digits[3]) << PyLong_SHIFT) | (gpr_int64)digits[2]) << PyLong_SHIFT) | (gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(gpr_int64) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int64, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int64) - 1 > 4 * PyLong_SHIFT) {
                            return (gpr_int64) ((((((((((gpr_int64)digits[3]) << PyLong_SHIFT) | (gpr_int64)digits[2]) << PyLong_SHIFT) | (gpr_int64)digits[1]) << PyLong_SHIFT) | (gpr_int64)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(gpr_int64) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int64, long, PyLong_AsLong(x))
            } else if (sizeof(gpr_int64) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int64, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            gpr_int64 val;
            PyObject *v = __Pyx_PyNumber_Int(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (gpr_int64) -1;
        }
    } else {
        gpr_int64 val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (gpr_int64) -1;
        val = __Pyx_PyInt_As_gpr_int64(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to gpr_int64");
    return (gpr_int64) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to gpr_int64");
    return (gpr_int64) -1;
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_gpr_int64(gpr_int64 value) {
    const gpr_int64 neg_one = (gpr_int64) -1, const_zero = (gpr_int64) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(gpr_int64) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(gpr_int64) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(gpr_int64) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(gpr_int64) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(gpr_int64) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(gpr_int64),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE gpr_int32 __Pyx_PyInt_As_gpr_int32(PyObject *x) {
    const gpr_int32 neg_one = (gpr_int32) -1, const_zero = (gpr_int32) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(gpr_int32) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(gpr_int32, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (gpr_int32) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (gpr_int32) 0;
                case  1: __PYX_VERIFY_RETURN_INT(gpr_int32, digit, digits[0])
                case 2:
                    if (8 * sizeof(gpr_int32) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) >= 2 * PyLong_SHIFT) {
                            return (gpr_int32) (((((gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(gpr_int32) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) >= 3 * PyLong_SHIFT) {
                            return (gpr_int32) (((((((gpr_int32)digits[2]) << PyLong_SHIFT) | (gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(gpr_int32) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) >= 4 * PyLong_SHIFT) {
                            return (gpr_int32) (((((((((gpr_int32)digits[3]) << PyLong_SHIFT) | (gpr_int32)digits[2]) << PyLong_SHIFT) | (gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (gpr_int32) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(gpr_int32) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int32, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(gpr_int32) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int32, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (gpr_int32) 0;
                case -1: __PYX_VERIFY_RETURN_INT(gpr_int32, sdigit, -(sdigit) digits[0])
                case  1: __PYX_VERIFY_RETURN_INT(gpr_int32,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(gpr_int32) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) - 1 > 2 * PyLong_SHIFT) {
                            return (gpr_int32) (((gpr_int32)-1)*(((((gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(gpr_int32) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) - 1 > 2 * PyLong_SHIFT) {
                            return (gpr_int32) ((((((gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(gpr_int32) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) - 1 > 3 * PyLong_SHIFT) {
                            return (gpr_int32) (((gpr_int32)-1)*(((((((gpr_int32)digits[2]) << PyLong_SHIFT) | (gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(gpr_int32) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) - 1 > 3 * PyLong_SHIFT) {
                            return (gpr_int32) ((((((((gpr_int32)digits[2]) << PyLong_SHIFT) | (gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(gpr_int32) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) - 1 > 4 * PyLong_SHIFT) {
                            return (gpr_int32) (((gpr_int32)-1)*(((((((((gpr_int32)digits[3]) << PyLong_SHIFT) | (gpr_int32)digits[2]) << PyLong_SHIFT) | (gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(gpr_int32) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(gpr_int32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(gpr_int32) - 1 > 4 * PyLong_SHIFT) {
                            return (gpr_int32) ((((((((((gpr_int32)digits[3]) << PyLong_SHIFT) | (gpr_int32)digits[2]) << PyLong_SHIFT) | (gpr_int32)digits[1]) << PyLong_SHIFT) | (gpr_int32)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(gpr_int32) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int32, long, PyLong_AsLong(x))
            } else if (sizeof(gpr_int32) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(gpr_int32, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            gpr_int32 val;
            PyObject *v = __Pyx_PyNumber_Int(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (gpr_int32) -1;
        }
    } else {
        gpr_int32 val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (gpr_int32) -1;
        val = __Pyx_PyInt_As_gpr_int32(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to gpr_int32");
    return (gpr_int32) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to gpr_int32");
    return (gpr_int32) -1;
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_gpr_int32(gpr_int32 value) {
    const gpr_int32 neg_one = (gpr_int32) -1, const_zero = (gpr_int32) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(gpr_int32) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(gpr_int32) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(gpr_int32) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(gpr_int32) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(gpr_int32) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(gpr_int32),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (int) -1, const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, -(sdigit) digits[0])
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_Int(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (long) -1, const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (long) -1, const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, -(sdigit) digits[0])
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_Int(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

#ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
static PyObject *__Pyx_ImportModule(const char *name) {
    PyObject *py_name = 0;
    PyObject *py_module = 0;
    py_name = __Pyx_PyIdentifier_FromString(name);
    if (!py_name)
        goto bad;
    py_module = PyImport_Import(py_name);
    Py_DECREF(py_name);
    return py_module;
bad:
    Py_XDECREF(py_name);
    return 0;
}
#endif

#ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
    size_t size, int strict)
{
    PyObject *py_module = 0;
    PyObject *result = 0;
    PyObject *py_name = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    py_module = __Pyx_ImportModule(module_name);
    if (!py_module)
        goto bad;
    py_name = __Pyx_PyIdentifier_FromString(class_name);
    if (!py_name)
        goto bad;
    result = PyObject_GetAttr(py_module, py_name);
    Py_DECREF(py_name);
    py_name = 0;
    Py_DECREF(py_module);
    py_module = 0;
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#ifndef Py_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if (!strict && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility",
            module_name, class_name);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    else if ((size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s has the wrong size, try recompiling",
            module_name, class_name);
        goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(py_module);
    Py_XDECREF(result);
    return NULL;
}
#endif

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
#if PY_VERSION_HEX < 0x03030000
        char* defenc_c;
        PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
        if (!defenc) return NULL;
        defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        {
            char* end = defenc_c + PyBytes_GET_SIZE(defenc);
            char* c;
            for (c = defenc_c; c < end; c++) {
                if ((unsigned char) (*c) >= 128) {
                    PyUnicode_AsASCIIString(o);
                    return NULL;
                }
            }
        }
#endif
        *length = PyBytes_GET_SIZE(defenc);
        return defenc_c;
#else
        if (__Pyx_PyUnicode_READY(o) == -1) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        if (PyUnicode_IS_ASCII(o)) {
            *length = PyUnicode_GET_LENGTH(o);
            return PyUnicode_AsUTF8(o);
        } else {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
#else
        return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
  PyNumberMethods *m;
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (PyInt_Check(x) || PyLong_Check(x))
#else
  if (PyLong_Check(x))
#endif
    return __Pyx_NewRef(x);
  m = Py_TYPE(x)->tp_as_number;
#if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = PyNumber_Long(x);
  }
#else
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Long(x);
  }
#endif
  if (res) {
#if PY_MAJOR_VERSION < 3
    if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
    if (!PyLong_Check(res)) {
#endif
      PyErr_Format(PyExc_TypeError,
                   "__%.4s__ returned non-%.4s (type %.200s)",
                   name, name, Py_TYPE(res)->tp_name);
      Py_DECREF(res);
      return NULL;
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(x);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
