Enumerations | Functions | Variables
ruby/ext/google/protobuf_c/message.c File Reference
#include "protobuf.h"
Include dependency graph for ruby/ext/google/protobuf_c/message.c:

Go to the source code of this file.

Enumerations

enum  {
  METHOD_UNKNOWN = 0, METHOD_GETTER = 1, METHOD_SETTER = 2, METHOD_CLEAR = 3,
  METHOD_PRESENCE = 4, METHOD_ENUM_GETTER = 5, METHOD_WRAPPER_GETTER = 6, METHOD_WRAPPER_SETTER = 7
}
 

Functions

VALUE build_class_from_descriptor (Descriptor *desc)
 
VALUE build_module_from_enumdesc (EnumDescriptor *enumdesc)
 
VALUE create_submsg_from_hash (const upb_fielddef *f, VALUE hash)
 
VALUE enum_descriptor (VALUE self)
 
VALUE enum_lookup (VALUE self, VALUE number)
 
VALUE enum_resolve (VALUE self, VALUE sym)
 
static int extract_method_call (VALUE method_name, MessageHeader *self, const upb_fielddef **f, const upb_oneofdef **o)
 
VALUE Google_Protobuf_deep_copy (VALUE self, VALUE obj)
 
static bool is_wrapper_type_field (const upb_fielddef *field)
 
VALUE Message_alloc (VALUE klass)
 
voidMessage_data (void *msg)
 
VALUE Message_deep_copy (VALUE _self)
 
VALUE Message_descriptor (VALUE klass)
 
VALUE Message_dup (VALUE _self)
 
VALUE Message_eq (VALUE _self, VALUE _other)
 
void Message_free (void *self)
 
VALUE Message_hash (VALUE _self)
 
VALUE Message_index (VALUE _self, VALUE field_name)
 
VALUE Message_index_set (VALUE _self, VALUE field_name, VALUE value)
 
VALUE Message_initialize (int argc, VALUE *argv, VALUE _self)
 
int Message_initialize_kwarg (VALUE key, VALUE val, VALUE _self)
 
VALUE Message_inspect (VALUE _self)
 
void Message_mark (void *_self)
 
VALUE Message_method_missing (int argc, VALUE *argv, VALUE _self)
 
VALUE Message_respond_to_missing (int argc, VALUE *argv, VALUE _self)
 
VALUE Message_to_h (VALUE _self)
 
static VALUE ruby_wrapper_type (const upb_fielddef *field, const VALUE *value)
 
static const upb_fielddefwhich_oneof_field (MessageHeader *self, const upb_oneofdef *o)
 

Variables

rb_data_type_t Message_type
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
METHOD_UNKNOWN 
METHOD_GETTER 
METHOD_SETTER 
METHOD_CLEAR 
METHOD_PRESENCE 
METHOD_ENUM_GETTER 
METHOD_WRAPPER_GETTER 
METHOD_WRAPPER_SETTER 

Definition at line 116 of file ruby/ext/google/protobuf_c/message.c.

Function Documentation

◆ build_class_from_descriptor()

VALUE build_class_from_descriptor ( Descriptor desc)

Definition at line 699 of file ruby/ext/google/protobuf_c/message.c.

◆ build_module_from_enumdesc()

VALUE build_module_from_enumdesc ( EnumDescriptor enumdesc)

Definition at line 805 of file ruby/ext/google/protobuf_c/message.c.

◆ create_submsg_from_hash()

VALUE create_submsg_from_hash ( const upb_fielddef f,
VALUE  hash 
)

Definition at line 389 of file ruby/ext/google/protobuf_c/message.c.

◆ enum_descriptor()

VALUE enum_descriptor ( VALUE  self)

Definition at line 801 of file ruby/ext/google/protobuf_c/message.c.

◆ enum_lookup()

VALUE enum_lookup ( VALUE  self,
VALUE  number 
)

Definition at line 760 of file ruby/ext/google/protobuf_c/message.c.

◆ enum_resolve()

VALUE enum_resolve ( VALUE  self,
VALUE  sym 
)

Definition at line 780 of file ruby/ext/google/protobuf_c/message.c.

◆ extract_method_call()

static int extract_method_call ( VALUE  method_name,
MessageHeader self,
const upb_fielddef **  f,
const upb_oneofdef **  o 
)
static

Definition at line 153 of file ruby/ext/google/protobuf_c/message.c.

◆ Google_Protobuf_deep_copy()

VALUE Google_Protobuf_deep_copy ( VALUE  self,
VALUE  obj 
)

Definition at line 839 of file ruby/ext/google/protobuf_c/message.c.

◆ is_wrapper_type_field()

static bool is_wrapper_type_field ( const upb_fielddef field)
static

Definition at line 128 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_alloc()

VALUE Message_alloc ( VALUE  klass)

Definition at line 60 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_data()

void* Message_data ( void msg)

Definition at line 37 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_deep_copy()

VALUE Message_deep_copy ( VALUE  _self)

Definition at line 515 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_descriptor()

VALUE Message_descriptor ( VALUE  klass)

Definition at line 695 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_dup()

VALUE Message_dup ( VALUE  _self)

Definition at line 498 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_eq()

VALUE Message_eq ( VALUE  _self,
VALUE  _other 
)

Definition at line 540 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_free()

void Message_free ( void self)

Definition at line 46 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_hash()

VALUE Message_hash ( VALUE  _self)

Definition at line 564 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_index()

VALUE Message_index ( VALUE  _self,
VALUE  field_name 
)

Definition at line 656 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_index_set()

VALUE Message_index_set ( VALUE  _self,
VALUE  field_name,
VALUE  value 
)

Definition at line 675 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_initialize()

VALUE Message_initialize ( int  argc,
VALUE *  argv,
VALUE  _self 
)

Definition at line 474 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_initialize_kwarg()

int Message_initialize_kwarg ( VALUE  key,
VALUE  val,
VALUE  _self 
)

Definition at line 400 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_inspect()

VALUE Message_inspect ( VALUE  _self)

Definition at line 579 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_mark()

void Message_mark ( void _self)

Definition at line 41 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_method_missing()

VALUE Message_method_missing ( int  argc,
VALUE *  argv,
VALUE  _self 
)

Definition at line 284 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_respond_to_missing()

VALUE Message_respond_to_missing ( int  argc,
VALUE *  argv,
VALUE  _self 
)

Definition at line 369 of file ruby/ext/google/protobuf_c/message.c.

◆ Message_to_h()

VALUE Message_to_h ( VALUE  _self)

Definition at line 599 of file ruby/ext/google/protobuf_c/message.c.

◆ ruby_wrapper_type()

static VALUE ruby_wrapper_type ( const upb_fielddef field,
const VALUE *  value 
)
static

Definition at line 143 of file ruby/ext/google/protobuf_c/message.c.

◆ which_oneof_field()

static const upb_fielddef* which_oneof_field ( MessageHeader self,
const upb_oneofdef o 
)
static

Definition at line 82 of file ruby/ext/google/protobuf_c/message.c.

Variable Documentation

◆ Message_type

rb_data_type_t Message_type
Initial value:
= {
"Message",
}

Definition at line 55 of file ruby/ext/google/protobuf_c/message.c.

NULL
NULL
Definition: test_security_zap.cpp:405
Message_free
void Message_free(void *self)
Definition: ruby/ext/google/protobuf_c/message.c:46
Message_mark
void Message_mark(void *_self)
Definition: ruby/ext/google/protobuf_c/message.c:41


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03