/** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { if (!isset(self::$descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "value", "packable" => false, "repeated" => false, "default" => null))); self::$descriptor = $desc->build(); } return self::$descriptor; }
/** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_MESSAGE, "name" => "prefecture", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null, "message" => "Tutorial_Prefecture"))); $descriptor = $desc->build(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return \ProtocolBuffersDescriptor */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT64, "name" => "id", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(2, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "name", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => ""))); // @@protoc_insertion_point(builder_scope:.OuterMessage.InnerMessage) $descriptor = $desc->build(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "value", "required" => false, "optional" => false, "repeated" => false, "packable" => false, "default" => null, "message" => "Tutorial_Person"))); $desc->addExtensionRange(200, 500); $desc->addExtensionRange(600, 700); $descriptor = $desc->build(); $descriptor->dump(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_DOUBLE, "name" => "v_double", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(2, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FLOAT, "name" => "v_float", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(3, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT64, "name" => "v_int64", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(4, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_UINT64, "name" => "v_uint64", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(5, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "v_int32", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(6, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FIXED64, "name" => "v_fixed64", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(7, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FIXED32, "name" => "v_fixed32", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(8, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BOOL, "name" => "v_bool", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => false))); $desc->addField(9, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "v_string", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => ""))); $desc->addField(12, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BYTES, "name" => "v_bytes", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => ""))); $desc->addField(13, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_UINT32, "name" => "v_uint32", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(15, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED32, "name" => "v_sfixed32", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(16, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED64, "name" => "v_sfixed64", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(17, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT32, "name" => "v_sint32", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(18, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT64, "name" => "v_sint64", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(20, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT64, "name" => "v_int64_min", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(21, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "v_int32_min", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(22, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED32, "name" => "v_sfixed32_min", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(23, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED64, "name" => "v_sfixed64_min", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(24, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT32, "name" => "v_sint32_min", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(25, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT64, "name" => "v_sint64_min", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $descriptor = $desc->build(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return ProtocolBuffersDescriptor */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(2, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_MESSAGE, "name" => "ad", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null, "message" => "BidResponse_Ad"))); $desc->addField(5, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "debug_string", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => ""))); $desc->addField(4, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "processing_time_ms", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "DEPRECATED_protocol_version", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $descriptor = $desc->build(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return ProtocolBuffersDescriptor */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_DOUBLE, "name" => "double_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(2, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FLOAT, "name" => "float_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(3, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "int32_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(4, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT64, "name" => "int64_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(5, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_UINT32, "name" => "uint32_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(6, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_UINT64, "name" => "uint64_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(7, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT32, "name" => "sint32_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(8, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT64, "name" => "sint64_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(9, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FIXED32, "name" => "fixed32_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(10, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FIXED64, "name" => "fixed64_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(11, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED32, "name" => "sfixed32_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(12, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED64, "name" => "sfixed64_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(13, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BOOL, "name" => "bool_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(14, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "string_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => ""))); $desc->addField(15, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BYTES, "name" => "bytes_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null))); $desc->addField(16, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_MESSAGE, "name" => "message_value", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => null, "message" => 'AllTypes'))); $desc->addField(21, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_DOUBLE, "name" => "r_double_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(22, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FLOAT, "name" => "r_float_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(23, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "r_int32_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(24, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT64, "name" => "r_int64_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(25, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_UINT32, "name" => "r_uint32_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(26, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_UINT64, "name" => "r_uint64_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(27, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT32, "name" => "r_sint32_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(28, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SINT64, "name" => "r_sint64_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(29, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FIXED32, "name" => "r_fixed32_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(30, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FIXED64, "name" => "r_fixed64_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(31, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED32, "name" => "r_sfixed32_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(32, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_SFIXED64, "name" => "r_sfixed64_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(33, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BOOL, "name" => "r_bool_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => false))); $desc->addField(34, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "r_string_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => ""))); $desc->addField(35, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BYTES, "name" => "r_bytes_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null))); $desc->addField(36, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_MESSAGE, "name" => "r_message_value", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => null, "message" => 'AllTypes'))); // @@protoc_insertion_point(builder_scope:.AllTypes) $descriptor = $desc->build(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BYTES, "name" => "value", "required" => true, "optional" => false, "repeated" => false, "packable" => false, "default" => ""))); $descriptor = $desc->build(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { if (!isset(self::$descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_MESSAGE, "name" => "user", "required" => false, "packable" => false, "repeated" => true, "default" => null, "message" => "Tutorial_User"))); self::$descriptor = $desc->build(); } return self::$descriptor; }
/** * get descriptor for protocol buffers * * @return ProtocolBuffersDescriptor */ public static function getDescriptor() { static $descriptor; if (!isset($descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BYTES, "name" => "DEPRECATED_id", "required" => true, "optional" => false, "repeated" => false, "packable" => false, "default" => ""))); $desc->addField(10, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_FIXED64, "name" => "id", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => 0))); $desc->addField(2, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "excluded_url", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => ""))); $desc->addField(3, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "DEPRECATED_excluded_sensitive_category", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => ""))); $desc->addField(9, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "excluded_sensitive_category", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => 0))); $desc->addField(8, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "excluded_product_category", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => 0))); $desc->addField(4, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "excluded_attribute", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => 0))); $desc->addField(5, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "allowed_vendor_type", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => 0))); $desc->addField(6, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "DEPRECATED_excluded_vertical", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => 0))); $desc->addField(7, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_BOOL, "name" => "can_send_ip", "required" => false, "optional" => true, "repeated" => false, "packable" => false, "default" => true))); $desc->addField(11, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "allowed_language", "required" => false, "optional" => false, "repeated" => true, "packable" => false, "default" => ""))); $descriptor = $desc->build(); } return $descriptor; }
/** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { if (!isset(self::$descriptor)) { $desc = new ProtocolBuffersDescriptorBuilder(); $desc->addField(1, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "name", "packable" => false, "repeated" => false, "default" => null))); $desc->addField(2, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_INT32, "name" => "id", "packable" => false, "repeated" => false, "default" => null))); $desc->addField(3, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_STRING, "name" => "email", "packable" => false, "repeated" => false, "default" => null))); $desc->addField(4, new ProtocolBuffersFieldDescriptor(array("type" => ProtocolBuffers::TYPE_MESSAGE, "name" => "phone", "packable" => false, "repeated" => false, "default" => null, "message" => "Tutorial_Person_PhoneNumber"))); self::$descriptor = $desc->build(); } return self::$descriptor; }