Macros | Functions | Variables
php/ext/google/protobuf/message.c File Reference
#include <php.h>
#include <Zend/zend_exceptions.h>
#include <stdlib.h>
#include <inttypes.h>
#include <Zend/zend_compile.h>
#include "protobuf.h"
#include "utf8.h"
Include dependency graph for php/ext/google/protobuf/message.c:

Go to the source code of this file.

Macros

#define DEFINE_GPBMETADATA_FILE(LOWERNAME, CAMELNAME, CLASSNAME)
 
#define INIT_MESSAGE_WITH_ARRAY
 
#define PHP_PROTO_FIELD_ACCESSORS(UPPER_CLASS, LOWER_CLASS, UPPER_FIELD, LOWER_FIELD)
 
#define PHP_PROTO_ONEOF_ACCESSORS(UPPER_CLASS, LOWER_CLASS, UPPER_FIELD, LOWER_FIELD)
 
#define PHP_PROTO_ONEOF_FIELD_ACCESSORS(UPPER_CLASS, LOWER_CLASS, UPPER_FIELD, LOWER_FIELD)
 

Functions

static void append_wrapper_message (zend_class_entry *subklass, RepeatedField *intern, zval *value TSRMLS_DC)
 
void build_class_from_descriptor (PHP_PROTO_HASHTABLE_VALUE php_descriptor TSRMLS_DC)
 
void custom_data_init (const zend_class_entry *ce, MessageHeader *intern PHP_PROTO_TSRMLS_DC)
 
 DEFINE_GPBMETADATA_FILE (any, Any, "GPBMetadata\\Google\\Protobuf\\Any")
 
 DEFINE_GPBMETADATA_FILE (api, Api, "GPBMetadata\\Google\\Protobuf\\Api")
 
 DEFINE_GPBMETADATA_FILE (duration, Duration, "GPBMetadata\\Google\\Protobuf\\Duration")
 
 DEFINE_GPBMETADATA_FILE (empty, Empty, "GPBMetadata\\Google\\Protobuf\\GPBEmpty")
 
 DEFINE_GPBMETADATA_FILE (field_mask, FieldMask, "GPBMetadata\\Google\\Protobuf\\FieldMask")
 
 DEFINE_GPBMETADATA_FILE (source_context, SourceContext, "GPBMetadata\\Google\\Protobuf\\SourceContext")
 
 DEFINE_GPBMETADATA_FILE (struct, Struct, "GPBMetadata\\Google\\Protobuf\\Struct")
 
 DEFINE_GPBMETADATA_FILE (timestamp, Timestamp, "GPBMetadata\\Google\\Protobuf\\Timestamp")
 
 DEFINE_GPBMETADATA_FILE (type, Type, "GPBMetadata\\Google\\Protobuf\\Type")
 
 DEFINE_GPBMETADATA_FILE (wrappers, Wrappers, "GPBMetadata\\Google\\Protobuf\\Wrappers")
 
static void hex_to_binary (const char *hex, char **binary, int *binary_len)
 
static void init_file_any (TSRMLS_D)
 
static void init_file_api (TSRMLS_D)
 
static void init_file_duration (TSRMLS_D)
 
static void init_file_empty (TSRMLS_D)
 
static void init_file_field_mask (TSRMLS_D)
 
static void init_file_source_context (TSRMLS_D)
 
static void init_file_struct (TSRMLS_D)
 
static void init_file_timestamp (TSRMLS_D)
 
static void init_file_type (TSRMLS_D)
 
static void init_file_wrappers (TSRMLS_D)
 
static bool is_wrapper_msg (const upb_msgdef *m)
 
void Message_construct (zval *msg, zval *array_wrapper)
 
voidmessage_data (MessageHeader *msg)
 
static HashTable * message_get_gc (zval *object, CACHED_VALUE **table, int *n TSRMLS_DC)
 
static HashTable * message_get_gc (zval *object, zval ***table, int *n TSRMLS_DC)
 
static void message_get_oneof_property_internal (zval *object, zval *member, zval *return_value TSRMLS_DC)
 
static HashTable * message_get_properties (zval *object TSRMLS_DC)
 
static zval * message_get_property (zval *object, zval *member, int type, const zend_literal *key TSRMLS_DC)
 
static zval * message_get_property_internal (zval *object, zval *member TSRMLS_DC)
 
static zval ** message_get_property_ptr_ptr (zval *object, zval *member, int type, php_proto_zend_literal key TSRMLS_DC)
 
static void message_set_property (zval *object, zval *member, zval *value, php_proto_zend_literal key TSRMLS_DC)
 
 PHP_METHOD (Any, __construct)
 
 PHP_METHOD (Any, is)
 
 PHP_METHOD (Any, pack)
 
 PHP_METHOD (Any, unpack)
 
 PHP_METHOD (Field_Cardinality, value)
 
 PHP_METHOD (Field_Kind, value)
 
 PHP_METHOD (Message, __construct)
 
 PHP_METHOD (Message, clear)
 
 PHP_METHOD (Message, mergeFrom)
 
 PHP_METHOD (Message, readOneof)
 
 PHP_METHOD (Message, whichOneof)
 
 PHP_METHOD (Message, writeOneof)
 
 PHP_METHOD (NullValue, value)
 
 PHP_METHOD (Syntax, value)
 
 PHP_METHOD (Timestamp, fromDateTime)
 
 PHP_METHOD (Timestamp, toDateTime)
 
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END PHP_PROTO_INIT_CLASS_START ("Google\\Protobuf\\Internal\\Message", MessageHeader, message)
 
 PHP_PROTO_INIT_ENUMCLASS_START ("Google\\Protobuf\\Field\\Cardinality", PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(Field_Cardinality, field_cardinality)
 
 PHP_PROTO_INIT_ENUMCLASS_START ("Google\\Protobuf\\Field\\Kind", PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(Field_Kind, field_kind)
 
 PHP_PROTO_INIT_ENUMCLASS_START ("Google\\Protobuf\\NullValue", PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(NullValue, null_value)
 
 PHP_PROTO_INIT_ENUMCLASS_START ("Google\\Protobuf\\Syntax", PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(Syntax, syntax)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Api", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Api, api)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\BoolValue", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(BoolValue, bool_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\BytesValue", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(BytesValue, bytes_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\DoubleValue", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(DoubleValue, double_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Duration", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Duration, duration)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Enum", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Enum, enum)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\EnumValue", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(EnumValue, enum_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Field", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Field, field)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\FieldMask", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(FieldMask, field_mask)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\FloatValue", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(FloatValue, float_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\GPBEmpty", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(GPBEmpty, empty)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Int32Value", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Int32Value, int32_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Int64Value", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Int64Value, int64_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\ListValue", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(ListValue, list_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Method", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Method, method)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Mixin", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Mixin, mixin)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Option", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Option, option)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\SourceContext", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(SourceContext, source_context)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\StringValue", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(StringValue, string_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Struct", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Struct, struct)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Timestamp", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Timestamp, timestamp)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Type", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Type, type)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\UInt32Value", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(UInt32Value, u_int32_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\UInt64Value", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(UInt64Value, u_int64_value)
 
 PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Value", PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(Value, value)
 
static void set_wrapper_message_as_map_value (zend_class_entry *subklass, zval *map, zval *key, zval *value TSRMLS_DC)
 
 zend_declare_property_string (any_type, "type_url", strlen("type_url"), "", ZEND_ACC_PRIVATE TSRMLS_CC)
 
 zend_declare_property_string (any_type, "value", strlen("value"), "", ZEND_ACC_PRIVATE TSRMLS_CC)
 

Variables

static zend_function_entry any_methods []
 
zend_class_entry * any_type
 
static zend_function_entry api_methods []
 
zend_class_entry * api_type
 
static zend_function_entry bool_value_methods []
 
zend_class_entry * bool_value_type
 
static zend_function_entry bytes_value_methods []
 
zend_class_entry * bytes_value_type
 
if void intern data
 
static zend_function_entry double_value_methods []
 
zend_class_entry * double_value_type
 
static zend_function_entry duration_methods []
 
zend_class_entry * duration_type
 
static zend_function_entry empty_methods []
 
zend_class_entry * empty_type
 
static zend_function_entry enum_methods []
 
zend_class_entry * enum_type
 
static zend_function_entry enum_value_methods []
 
zend_class_entry * enum_value_type
 
static zend_function_entry field_cardinality_methods []
 
zend_class_entry * field_cardinality_type
 
static zend_function_entry field_kind_methods []
 
zend_class_entry * field_kind_type
 
static zend_function_entry field_mask_methods []
 
zend_class_entry * field_mask_type
 
static zend_function_entry field_methods []
 
zend_class_entry * field_type
 
static zend_function_entry float_value_methods []
 
zend_class_entry * float_value_type
 
static zend_function_entry int32_value_methods []
 
zend_class_entry * int32_value_type
 
static zend_function_entry int64_value_methods []
 
zend_class_entry * int64_value_type
 
static zend_function_entry list_value_methods []
 
zend_class_entry * list_value_type
 
zend_object_handlers * message_handlers
 
static zend_function_entry message_methods []
 
zend_class_entry * message_type
 
static zend_function_entry method_methods []
 
zend_class_entry * method_type
 
static zend_function_entry mixin_methods []
 
zend_class_entry * mixin_type
 
static zend_function_entry null_value_methods []
 
zend_class_entry * null_value_type
 
static zend_function_entry option_methods []
 
zend_class_entry * option_type
 
static zend_function_entry source_context_methods []
 
zend_class_entry * source_context_type
 
static zend_function_entry string_value_methods []
 
zend_class_entry * string_value_type
 
static zend_function_entry struct_methods []
 
zend_class_entry * struct_type
 
static zend_function_entry syntax_methods []
 
zend_class_entry * syntax_type
 
static zend_function_entry timestamp_methods []
 
zend_class_entry * timestamp_type
 
static zend_function_entry type_methods []
 
zend_class_entry * type_type
 
static const char TYPE_URL_PREFIX [] = "type.googleapis.com/"
 
static zend_function_entry u_int32_value_methods []
 
zend_class_entry * u_int32_value_type
 
static zend_function_entry u_int64_value_methods []
 
zend_class_entry * u_int64_value_type
 
static zend_function_entry value_methods []
 
zend_class_entry * value_type
 

Macro Definition Documentation

◆ DEFINE_GPBMETADATA_FILE

#define DEFINE_GPBMETADATA_FILE (   LOWERNAME,
  CAMELNAME,
  CLASSNAME 
)
Value:
zend_class_entry* gpb_metadata_##LOWERNAME##_type; \
static zend_function_entry gpb_metadata_##LOWERNAME##_methods[] = { \
PHP_ME(GPBMetadata_##CAMELNAME, initOnce, NULL, \
ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) \
ZEND_FE_END \
}; \
void gpb_metadata_##LOWERNAME##_init(TSRMLS_D) { \
zend_class_entry class_type; \
INIT_CLASS_ENTRY(class_type, CLASSNAME, \
gpb_metadata_##LOWERNAME##_methods); \
gpb_metadata_##LOWERNAME##_type = \
zend_register_internal_class(&class_type TSRMLS_CC); \
} \
PHP_METHOD(GPBMetadata_##CAMELNAME, initOnce) { \
init_file_##LOWERNAME(TSRMLS_C); \
}

Definition at line 2573 of file php/ext/google/protobuf/message.c.

◆ INIT_MESSAGE_WITH_ARRAY

#define INIT_MESSAGE_WITH_ARRAY
Value:
{ \
zval* array_wrapper = NULL; \
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, \
"|a!", &array_wrapper) == FAILURE) { \
return; \
} \
Message_construct(getThis(), array_wrapper); \
}

Definition at line 264 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_FIELD_ACCESSORS

#define PHP_PROTO_FIELD_ACCESSORS (   UPPER_CLASS,
  LOWER_CLASS,
  UPPER_FIELD,
  LOWER_FIELD 
)
Value:
PHP_METHOD(UPPER_CLASS, get##UPPER_FIELD) { \
zval member; \
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
PHP_PROTO_FAKE_SCOPE_BEGIN(LOWER_CLASS##_type); \
zval* value = message_get_property_internal(getThis(), &member TSRMLS_CC); \
PHP_PROTO_FAKE_SCOPE_END; \
zval_dtor(&member); \
PHP_PROTO_RETVAL_ZVAL(value); \
} \
PHP_METHOD(UPPER_CLASS, set##UPPER_FIELD) { \
zval* value = NULL; \
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &value) == \
FAILURE) { \
return; \
} \
zval member; \
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
message_set_property_internal(getThis(), &member, value TSRMLS_CC); \
zval_dtor(&member); \
PHP_PROTO_RETVAL_ZVAL(getThis()); \
}

Definition at line 619 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_ONEOF_ACCESSORS

#define PHP_PROTO_ONEOF_ACCESSORS (   UPPER_CLASS,
  LOWER_CLASS,
  UPPER_FIELD,
  LOWER_FIELD 
)
Value:
PHP_METHOD(UPPER_CLASS, get##UPPER_FIELD) { \
MessageHeader* msg = UNBOX(MessageHeader, getThis()); \
PHP_PROTO_FAKE_SCOPE_BEGIN(LOWER_CLASS##_type); \
const upb_oneofdef* oneof = upb_msgdef_ntoo( \
msg->descriptor->msgdef, LOWER_FIELD, strlen(LOWER_FIELD)); \
const char* oneof_case_name = layout_get_oneof_case( \
msg->descriptor->layout, message_data(msg), oneof TSRMLS_CC); \
PHP_PROTO_FAKE_SCOPE_END; \
PHP_PROTO_RETURN_STRING(oneof_case_name, 1); \
}

Definition at line 667 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_ONEOF_FIELD_ACCESSORS

#define PHP_PROTO_ONEOF_FIELD_ACCESSORS (   UPPER_CLASS,
  LOWER_CLASS,
  UPPER_FIELD,
  LOWER_FIELD 
)
Value:
PHP_METHOD(UPPER_CLASS, get##UPPER_FIELD) { \
zval member; \
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
PHP_PROTO_FAKE_SCOPE_BEGIN(LOWER_CLASS##_type); \
message_get_oneof_property_internal(getThis(), &member, \
return_value TSRMLS_CC); \
PHP_PROTO_FAKE_SCOPE_END; \
zval_dtor(&member); \
} \
PHP_METHOD(UPPER_CLASS, set##UPPER_FIELD) { \
zval* value = NULL; \
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &value) == \
FAILURE) { \
return; \
} \
zval member; \
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
message_set_property_internal(getThis(), &member, value TSRMLS_CC); \
zval_dtor(&member); \
PHP_PROTO_RETVAL_ZVAL(getThis()); \
}

Definition at line 643 of file php/ext/google/protobuf/message.c.

Function Documentation

◆ append_wrapper_message()

static void append_wrapper_message ( zend_class_entry *  subklass,
RepeatedField intern,
zval *value  TSRMLS_DC 
)
static

Definition at line 303 of file php/ext/google/protobuf/message.c.

◆ build_class_from_descriptor()

void build_class_from_descriptor ( PHP_PROTO_HASHTABLE_VALUE php_descriptor  TSRMLS_DC)

Definition at line 274 of file php/ext/google/protobuf/message.c.

◆ custom_data_init()

void custom_data_init ( const zend_class_entry *  ce,
MessageHeader *intern  PHP_PROTO_TSRMLS_DC 
)

Definition at line 252 of file php/ext/google/protobuf/message.c.

◆ DEFINE_GPBMETADATA_FILE() [1/10]

DEFINE_GPBMETADATA_FILE ( any  ,
Any  ,
"GPBMetadata\\Google\\Protobuf\\Any"   
)

◆ DEFINE_GPBMETADATA_FILE() [2/10]

DEFINE_GPBMETADATA_FILE ( api  ,
Api  ,
"GPBMetadata\\Google\\Protobuf\\Api"   
)

◆ DEFINE_GPBMETADATA_FILE() [3/10]

DEFINE_GPBMETADATA_FILE ( duration  ,
Duration  ,
"GPBMetadata\\Google\\Protobuf\\Duration"   
)

◆ DEFINE_GPBMETADATA_FILE() [4/10]

DEFINE_GPBMETADATA_FILE ( empty  ,
Empty  ,
"GPBMetadata\\Google\\Protobuf\\GPBEmpty"   
)

◆ DEFINE_GPBMETADATA_FILE() [5/10]

DEFINE_GPBMETADATA_FILE ( field_mask  ,
FieldMask  ,
"GPBMetadata\\Google\\Protobuf\\FieldMask"   
)

◆ DEFINE_GPBMETADATA_FILE() [6/10]

DEFINE_GPBMETADATA_FILE ( source_context  ,
SourceContext  ,
"GPBMetadata\\Google\\Protobuf\\SourceContext"   
)

◆ DEFINE_GPBMETADATA_FILE() [7/10]

DEFINE_GPBMETADATA_FILE ( struct  ,
Struct  ,
"GPBMetadata\\Google\\Protobuf\\Struct"   
)

◆ DEFINE_GPBMETADATA_FILE() [8/10]

DEFINE_GPBMETADATA_FILE ( timestamp  ,
Timestamp  ,
"GPBMetadata\\Google\\Protobuf\\Timestamp"   
)

◆ DEFINE_GPBMETADATA_FILE() [9/10]

DEFINE_GPBMETADATA_FILE ( type  ,
Type  ,
"GPBMetadata\\Google\\Protobuf\\Type"   
)

◆ DEFINE_GPBMETADATA_FILE() [10/10]

DEFINE_GPBMETADATA_FILE ( wrappers  ,
Wrappers  ,
"GPBMetadata\\Google\\Protobuf\\Wrappers"   
)

◆ hex_to_binary()

static PHP_PROTO_INIT_SUBMSGCLASS_END void hex_to_binary ( const char *  hex,
char **  binary,
int *  binary_len 
)
static

Definition at line 1361 of file php/ext/google/protobuf/message.c.

◆ init_file_any()

static void init_file_any ( TSRMLS_D  )
static

Definition at line 693 of file php/ext/google/protobuf/message.c.

◆ init_file_api()

static void init_file_api ( TSRMLS_D  )
static

Definition at line 713 of file php/ext/google/protobuf/message.c.

◆ init_file_duration()

static void init_file_duration ( TSRMLS_D  )
static

Definition at line 754 of file php/ext/google/protobuf/message.c.

◆ init_file_empty()

static void init_file_empty ( TSRMLS_D  )
static

Definition at line 796 of file php/ext/google/protobuf/message.c.

◆ init_file_field_mask()

static void init_file_field_mask ( TSRMLS_D  )
static

Definition at line 775 of file php/ext/google/protobuf/message.c.

◆ init_file_source_context()

static void init_file_source_context ( TSRMLS_D  )
static

Definition at line 816 of file php/ext/google/protobuf/message.c.

◆ init_file_struct()

static void init_file_struct ( TSRMLS_D  )
static

Definition at line 838 of file php/ext/google/protobuf/message.c.

◆ init_file_timestamp()

static void init_file_timestamp ( TSRMLS_D  )
static

Definition at line 873 of file php/ext/google/protobuf/message.c.

◆ init_file_type()

static void init_file_type ( TSRMLS_D  )
static

Definition at line 894 of file php/ext/google/protobuf/message.c.

◆ init_file_wrappers()

static void init_file_wrappers ( TSRMLS_D  )
static

Definition at line 963 of file php/ext/google/protobuf/message.c.

◆ is_wrapper_msg()

static bool is_wrapper_msg ( const upb_msgdef m)
static

Definition at line 297 of file php/ext/google/protobuf/message.c.

◆ Message_construct()

void Message_construct ( zval *  msg,
zval *  array_wrapper 
)

Definition at line 348 of file php/ext/google/protobuf/message.c.

◆ message_data()

void* message_data ( MessageHeader msg)

Definition at line 248 of file php/ext/google/protobuf/message.c.

◆ message_get_gc() [1/2]

static HashTable* message_get_gc ( zval *  object,
CACHED_VALUE **  table,
int *n  TSRMLS_DC 
)
static

Definition at line 236 of file php/ext/google/protobuf/message.c.

◆ message_get_gc() [2/2]

static HashTable* message_get_gc ( zval *  object,
zval ***  table,
int *n  TSRMLS_DC 
)
static

◆ message_get_oneof_property_internal()

static void message_get_oneof_property_internal ( zval *  object,
zval *  member,
zval *return_value  TSRMLS_DC 
)
static

Definition at line 183 of file php/ext/google/protobuf/message.c.

◆ message_get_properties()

static HashTable * message_get_properties ( zval *object  TSRMLS_DC)
static

Definition at line 232 of file php/ext/google/protobuf/message.c.

◆ message_get_property()

static zval * message_get_property ( zval *  object,
zval *  member,
int  type,
const zend_literal *key  TSRMLS_DC 
)
static

Definition at line 197 of file php/ext/google/protobuf/message.c.

◆ message_get_property_internal()

static zval* message_get_property_internal ( zval *  object,
zval *member  TSRMLS_DC 
)
static

Definition at line 161 of file php/ext/google/protobuf/message.c.

◆ message_get_property_ptr_ptr()

static zval ** message_get_property_ptr_ptr ( zval *  object,
zval *  member,
int  type,
php_proto_zend_literal key  TSRMLS_DC 
)
static

Definition at line 222 of file php/ext/google/protobuf/message.c.

◆ message_set_property()

static void message_set_property ( zval *  object,
zval *  member,
zval *  value,
php_proto_zend_literal key  TSRMLS_DC 
)
static

Definition at line 137 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [1/16]

PHP_METHOD ( Any  ,
__construct   
)

Definition at line 1382 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [2/16]

PHP_METHOD ( Any  ,
is   
)

Definition at line 1488 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [3/16]

PHP_METHOD ( Any  ,
pack   
)

Definition at line 1440 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [4/16]

PHP_METHOD ( Any  ,
unpack   
)

Definition at line 1391 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [5/16]

PHP_METHOD ( Field_Cardinality  ,
value   
)

Definition at line 1050 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [6/16]

PHP_METHOD ( Field_Kind  ,
value   
)

Definition at line 1185 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [7/16]

PHP_METHOD ( Message  ,
__construct   
)

Definition at line 530 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [8/16]

PHP_METHOD ( Message  ,
clear   
)

Definition at line 534 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [9/16]

PHP_METHOD ( Message  ,
mergeFrom   
)

Definition at line 545 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [10/16]

PHP_METHOD ( Message  ,
readOneof   
)

Definition at line 563 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [11/16]

PHP_METHOD ( Message  ,
whichOneof   
)

Definition at line 597 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [12/16]

PHP_METHOD ( Message  ,
writeOneof   
)

Definition at line 582 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [13/16]

PHP_METHOD ( NullValue  ,
value   
)

Definition at line 1256 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [14/16]

PHP_METHOD ( Syntax  ,
value   
)

Definition at line 1313 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [15/16]

PHP_METHOD ( Timestamp  ,
fromDateTime   
)

Definition at line 1594 of file php/ext/google/protobuf/message.c.

◆ PHP_METHOD() [16/16]

PHP_METHOD ( Timestamp  ,
toDateTime   
)

Definition at line 1685 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_CLASS_START()

PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END PHP_PROTO_INIT_CLASS_START ( "Google\\Protobuf\\Internal\\Message"  ,
MessageHeader  ,
message   
)

Definition at line 113 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_ENUMCLASS_START() [1/4]

PHP_PROTO_INIT_ENUMCLASS_START ( "Google\\Protobuf\\Field\\Cardinality"  ,
PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(  Field_Cardinality,
field_cardinality   
)

Definition at line 1008 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_ENUMCLASS_START() [2/4]

PHP_PROTO_INIT_ENUMCLASS_START ( "Google\\Protobuf\\Field\\Kind"  ,
PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(  Field_Kind,
field_kind   
)

Definition at line 1084 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_ENUMCLASS_START() [3/4]

PHP_PROTO_INIT_ENUMCLASS_START ( "Google\\Protobuf\\NullValue"  ,
PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(  NullValue,
null_value   
)

Definition at line 1233 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_ENUMCLASS_START() [4/4]

PHP_PROTO_INIT_ENUMCLASS_START ( "Google\\Protobuf\\Syntax"  ,
PHP_PROTO_INIT_ENUMCLASS_ENDPHP_METHOD(  Syntax,
syntax   
)

Definition at line 1286 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [1/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Api"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Api,
api   
)

Definition at line 1769 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [2/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\BoolValue"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  BoolValue,
bool_value   
)

Definition at line 1815 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [3/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\BytesValue"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  BytesValue,
bytes_value   
)

Definition at line 1843 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [4/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\DoubleValue"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  DoubleValue,
double_value   
)

Definition at line 1871 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [5/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Duration"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Duration,
duration   
)

Definition at line 1542 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [6/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Enum"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Enum,
enum   
)

Definition at line 1907 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [7/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\EnumValue"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  EnumValue,
enum_value   
)

Definition at line 1951 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [8/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Field"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Field,
field   
)

Definition at line 2031 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [9/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\FieldMask"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  FieldMask,
field_mask   
)

Definition at line 1985 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [10/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\FloatValue"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  FloatValue,
float_value   
)

Definition at line 2086 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [11/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\GPBEmpty"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  GPBEmpty,
empty   
)

Definition at line 2112 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [12/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Int32Value"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Int32Value,
int32_value   
)

Definition at line 2137 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [13/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Int64Value"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Int64Value,
int64_value   
)

Definition at line 2165 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [14/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\ListValue"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  ListValue,
list_value   
)

Definition at line 2193 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [15/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Method"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Method,
method   
)

Definition at line 2233 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [16/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Mixin"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Mixin,
mixin   
)

Definition at line 2281 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [17/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Option"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Option,
option   
)

Definition at line 2314 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [18/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\SourceContext"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  SourceContext,
source_context   
)

Definition at line 2345 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [19/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\StringValue"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  StringValue,
string_value   
)

Definition at line 2373 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [20/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Struct"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Struct,
struct   
)

Definition at line 2401 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [21/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Timestamp"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Timestamp,
timestamp   
)

Definition at line 1577 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [22/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Type"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Type,
type   
)

Definition at line 2439 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [23/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\UInt32Value"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  UInt32Value,
u_int32_value   
)

Definition at line 2482 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [24/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\UInt64Value"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  UInt64Value,
u_int64_value   
)

Definition at line 2510 of file php/ext/google/protobuf/message.c.

◆ PHP_PROTO_INIT_SUBMSGCLASS_START() [25/25]

PHP_PROTO_INIT_SUBMSGCLASS_START ( "Google\\Protobuf\\Value"  ,
PHP_PROTO_INIT_SUBMSGCLASS_ENDPHP_METHOD(  Value,
value   
)

Definition at line 2549 of file php/ext/google/protobuf/message.c.

◆ set_wrapper_message_as_map_value()

static void set_wrapper_message_as_map_value ( zend_class_entry *  subklass,
zval *  map,
zval *  key,
zval *value  TSRMLS_DC 
)
static

Definition at line 324 of file php/ext/google/protobuf/message.c.

◆ zend_declare_property_string() [1/2]

zend_declare_property_string ( any_type  ,
"type_url"  ,
strlen("type_url")  ,
""  ,
ZEND_ACC_PRIVATE  TSRMLS_CC 
)

◆ zend_declare_property_string() [2/2]

zend_declare_property_string ( any_type  ,
"value"  ,
strlen("value")  ,
""  ,
ZEND_ACC_PRIVATE  TSRMLS_CC 
)

Variable Documentation

◆ any_methods

zend_function_entry any_methods[]
static
Initial value:
= {
PHP_ME(Any, is, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1339 of file php/ext/google/protobuf/message.c.

◆ any_type

zend_class_entry* any_type

Definition at line 1351 of file php/ext/google/protobuf/message.c.

◆ api_methods

zend_function_entry api_methods[]
static
Initial value:
= {
PHP_ME(Api, setSyntax, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1747 of file php/ext/google/protobuf/message.c.

◆ api_type

zend_class_entry* api_type

Definition at line 1766 of file php/ext/google/protobuf/message.c.

◆ bool_value_methods

zend_function_entry bool_value_methods[]
static
Initial value:
= {
PHP_ME(BoolValue, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1805 of file php/ext/google/protobuf/message.c.

◆ bool_value_type

zend_class_entry* bool_value_type

Definition at line 1812 of file php/ext/google/protobuf/message.c.

◆ bytes_value_methods

zend_function_entry bytes_value_methods[]
static
Initial value:
= {
PHP_ME(BytesValue, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1833 of file php/ext/google/protobuf/message.c.

◆ bytes_value_type

zend_class_entry* bytes_value_type

Definition at line 1840 of file php/ext/google/protobuf/message.c.

◆ data

Initial value:
= NULL) {
FREE(*(void**)intern->data);
}
FREE(intern->data)

Definition at line 92 of file php/ext/google/protobuf/message.c.

◆ double_value_methods

zend_function_entry double_value_methods[]
static
Initial value:
= {
PHP_ME(DoubleValue, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1861 of file php/ext/google/protobuf/message.c.

◆ double_value_type

zend_class_entry* double_value_type

Definition at line 1868 of file php/ext/google/protobuf/message.c.

◆ duration_methods

zend_function_entry duration_methods[]
static
Initial value:
= {
PHP_ME(Duration, setNanos, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1530 of file php/ext/google/protobuf/message.c.

◆ duration_type

zend_class_entry* duration_type

Definition at line 1539 of file php/ext/google/protobuf/message.c.

◆ empty_methods

zend_function_entry empty_methods[]
static
Initial value:
= {
PHP_ME(GPBEmpty, __construct, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2104 of file php/ext/google/protobuf/message.c.

◆ empty_type

zend_class_entry* empty_type

Definition at line 2109 of file php/ext/google/protobuf/message.c.

◆ enum_methods

zend_function_entry enum_methods[]
static
Initial value:
= {
PHP_ME(Enum, setSyntax, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1889 of file php/ext/google/protobuf/message.c.

◆ enum_type

zend_class_entry* enum_type

Definition at line 1904 of file php/ext/google/protobuf/message.c.

◆ enum_value_methods

zend_function_entry enum_value_methods[]
static
Initial value:
= {
PHP_ME(EnumValue, setOptions, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1937 of file php/ext/google/protobuf/message.c.

◆ enum_value_type

zend_class_entry* enum_value_type

Definition at line 1948 of file php/ext/google/protobuf/message.c.

◆ field_cardinality_methods

zend_function_entry field_cardinality_methods[]
static
Initial value:
= {
PHP_ME(Field_Cardinality, value, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
}

Definition at line 999 of file php/ext/google/protobuf/message.c.

◆ field_cardinality_type

zend_class_entry* field_cardinality_type

Definition at line 1005 of file php/ext/google/protobuf/message.c.

◆ field_kind_methods

zend_function_entry field_kind_methods[]
static
Initial value:
= {
PHP_ME(Field_Kind, value, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
}

Definition at line 1075 of file php/ext/google/protobuf/message.c.

◆ field_kind_type

zend_class_entry* field_kind_type

Definition at line 1081 of file php/ext/google/protobuf/message.c.

◆ field_mask_methods

zend_function_entry field_mask_methods[]
static
Initial value:
= {
PHP_ME(FieldMask, setPaths, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1975 of file php/ext/google/protobuf/message.c.

◆ field_mask_type

zend_class_entry* field_mask_type

Definition at line 1982 of file php/ext/google/protobuf/message.c.

◆ field_methods

zend_function_entry field_methods[]
static
Initial value:
= {
PHP_ME(Field, setDefaultValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2003 of file php/ext/google/protobuf/message.c.

◆ field_type

zend_class_entry* field_type

Definition at line 2028 of file php/ext/google/protobuf/message.c.

◆ float_value_methods

zend_function_entry float_value_methods[]
static
Initial value:
= {
PHP_ME(FloatValue, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2076 of file php/ext/google/protobuf/message.c.

◆ float_value_type

zend_class_entry* float_value_type

Definition at line 2083 of file php/ext/google/protobuf/message.c.

◆ int32_value_methods

zend_function_entry int32_value_methods[]
static
Initial value:
= {
PHP_ME(Int32Value, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2127 of file php/ext/google/protobuf/message.c.

◆ int32_value_type

zend_class_entry* int32_value_type

Definition at line 2134 of file php/ext/google/protobuf/message.c.

◆ int64_value_methods

zend_function_entry int64_value_methods[]
static
Initial value:
= {
PHP_ME(Int64Value, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2155 of file php/ext/google/protobuf/message.c.

◆ int64_value_type

zend_class_entry* int64_value_type

Definition at line 2162 of file php/ext/google/protobuf/message.c.

◆ list_value_methods

zend_function_entry list_value_methods[]
static
Initial value:
= {
PHP_ME(ListValue, setValues, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2183 of file php/ext/google/protobuf/message.c.

◆ list_value_type

zend_class_entry* list_value_type

Definition at line 2190 of file php/ext/google/protobuf/message.c.

◆ message_handlers

zend_object_handlers* message_handlers

Definition at line 46 of file php/ext/google/protobuf/message.c.

◆ message_methods

zend_function_entry message_methods[]
static
Initial value:
= {
PHP_ME(Message, __construct, NULL, ZEND_ACC_PROTECTED)
}

Definition at line 50 of file php/ext/google/protobuf/message.c.

◆ message_type

zend_class_entry* message_type

Definition at line 45 of file php/ext/google/protobuf/message.c.

◆ method_methods

zend_function_entry method_methods[]
static
Initial value:
= {
PHP_ME(Method, setSyntax, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2211 of file php/ext/google/protobuf/message.c.

◆ method_type

zend_class_entry* method_type

Definition at line 2230 of file php/ext/google/protobuf/message.c.

◆ mixin_methods

zend_function_entry mixin_methods[]
static
Initial value:
= {
PHP_ME(Mixin, setRoot, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2269 of file php/ext/google/protobuf/message.c.

◆ mixin_type

zend_class_entry* mixin_type

Definition at line 2278 of file php/ext/google/protobuf/message.c.

◆ null_value_methods

zend_function_entry null_value_methods[]
static
Initial value:
= {
PHP_ME(NullValue, value, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
}

Definition at line 1224 of file php/ext/google/protobuf/message.c.

◆ null_value_type

zend_class_entry* null_value_type

Definition at line 1230 of file php/ext/google/protobuf/message.c.

◆ option_methods

zend_function_entry option_methods[]
static
Initial value:
= {
PHP_ME(Option, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2302 of file php/ext/google/protobuf/message.c.

◆ option_type

zend_class_entry* option_type

Definition at line 2311 of file php/ext/google/protobuf/message.c.

◆ source_context_methods

zend_function_entry source_context_methods[]
static
Initial value:
= {
PHP_ME(SourceContext, setFileName, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2335 of file php/ext/google/protobuf/message.c.

◆ source_context_type

zend_class_entry* source_context_type

Definition at line 2342 of file php/ext/google/protobuf/message.c.

◆ string_value_methods

zend_function_entry string_value_methods[]
static
Initial value:
= {
PHP_ME(StringValue, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2363 of file php/ext/google/protobuf/message.c.

◆ string_value_type

zend_class_entry* string_value_type

Definition at line 2370 of file php/ext/google/protobuf/message.c.

◆ struct_methods

zend_function_entry struct_methods[]
static
Initial value:
= {
PHP_ME(Struct, setFields, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2391 of file php/ext/google/protobuf/message.c.

◆ struct_type

zend_class_entry* struct_type

Definition at line 2398 of file php/ext/google/protobuf/message.c.

◆ syntax_methods

zend_function_entry syntax_methods[]
static
Initial value:
= {
PHP_ME(Syntax, value, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
}

Definition at line 1277 of file php/ext/google/protobuf/message.c.

◆ syntax_type

zend_class_entry* syntax_type

Definition at line 1283 of file php/ext/google/protobuf/message.c.

◆ timestamp_methods

zend_function_entry timestamp_methods[]
static
Initial value:
= {
PHP_ME(Timestamp, setNanos, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 1563 of file php/ext/google/protobuf/message.c.

◆ timestamp_type

zend_class_entry* timestamp_type

Definition at line 1574 of file php/ext/google/protobuf/message.c.

◆ type_methods

zend_function_entry type_methods[]
static
Initial value:
= {
PHP_ME(Type, setSyntax, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2419 of file php/ext/google/protobuf/message.c.

◆ type_type

zend_class_entry* type_type

Definition at line 2436 of file php/ext/google/protobuf/message.c.

◆ TYPE_URL_PREFIX

const char TYPE_URL_PREFIX[] = "type.googleapis.com/"
static

Definition at line 47 of file php/ext/google/protobuf/message.c.

◆ u_int32_value_methods

zend_function_entry u_int32_value_methods[]
static
Initial value:
= {
PHP_ME(UInt32Value, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2472 of file php/ext/google/protobuf/message.c.

◆ u_int32_value_type

zend_class_entry* u_int32_value_type

Definition at line 2479 of file php/ext/google/protobuf/message.c.

◆ u_int64_value_methods

zend_function_entry u_int64_value_methods[]
static
Initial value:
= {
PHP_ME(UInt64Value, setValue, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2500 of file php/ext/google/protobuf/message.c.

◆ u_int64_value_type

zend_class_entry* u_int64_value_type

Definition at line 2507 of file php/ext/google/protobuf/message.c.

◆ value_methods

zend_function_entry value_methods[]
static
Initial value:
= {
PHP_ME(Value, getKind, NULL, ZEND_ACC_PUBLIC)
}

Definition at line 2528 of file php/ext/google/protobuf/message.c.

◆ value_type

zend_class_entry * value_type

Definition at line 2546 of file php/ext/google/protobuf/message.c.

layout_get_oneof_case
const char * layout_get_oneof_case(MessageLayout *layout, const void *storage, const upb_oneofdef *oneof TSRMLS_DC)
Definition: php/ext/google/protobuf/storage.c:1137
DoubleValue
Definition: wrappers.pb.h:101
SourceContext
Definition: source_context.pb.h:69
stringsink_uninit_opaque
void stringsink_uninit_opaque(void *sink)
Definition: php/ext/google/protobuf/encode_decode.c:82
Timestamp
Definition: timestamp.pb.h:69
NULL
NULL
Definition: test_security_zap.cpp:405
upb_msgdef_ntoo
const upb_oneofdef * upb_msgdef_ntoo(const upb_msgdef *m, const char *name, size_t len)
Definition: php/ext/google/protobuf/upb.c:1774
ListValue
Definition: struct.pb.h:558
FieldMask
Definition: field_mask.pb.h:69
FREE
#define FREE(object)
Definition: php/ext/google/protobuf/protobuf.h:1480
MessageHeader
Definition: ruby/ext/google/protobuf_c/protobuf.h:551
message_data
void * message_data(MessageHeader *msg)
Definition: php/ext/google/protobuf/message.c:248
PHP_METHOD
PHP_METHOD(Message, __construct)
Definition: php/ext/google/protobuf/message.c:530
BytesValue
Definition: wrappers.pb.h:1348
Mixin
Definition: api.pb.h:482
Value
Definition: struct.pb.h:304
EnumValue
Definition: type.pb.h:1012
Api
Definition: api.pb.h:79
Enum
Definition: type.pb.h:797
Field_Kind
Field_Kind
Definition: type.pb.h:86
NullValue
NullValue
Definition: struct.pb.h:83
upb_oneofdef
Definition: php/ext/google/protobuf/upb.c:1176
UNBOX
#define UNBOX(class_name, val)
Definition: php/ext/google/protobuf/protobuf.h:233
Int64Value
Definition: wrappers.pb.h:409
Type
Definition: type.pb.h:182
Struct
Definition: struct.pb.h:141
Field_Cardinality
Field_Cardinality
Definition: type.pb.h:128
FloatValue
Definition: wrappers.pb.h:255
StringValue
Definition: wrappers.pb.h:1179
message_get_property_internal
static zval * message_get_property_internal(zval *object, zval *member TSRMLS_DC)
Definition: php/ext/google/protobuf/message.c:161
Option
Definition: type.pb.h:1201
UInt64Value
Definition: wrappers.pb.h:563
GPBEmpty
Definition: Empty.pbobjc.h:64
UInt32Value
Definition: wrappers.pb.h:871
Duration
Definition: duration.pb.h:69
Field
Definition: type.pb.h:416
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093
Syntax
Syntax
Definition: type.pb.h:155
intern
upb_strtable_uninit & intern
Definition: php/ext/google/protobuf/map.c:222
Any
Definition: any.pb.h:70
Method
Definition: api.pb.h:285
Int32Value
Definition: wrappers.pb.h:717
BoolValue
Definition: wrappers.pb.h:1025


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