__construct() public method

Message constructor
public __construct ( Stream | resource | string $stream = null, Configuration $configuration = null )
$stream Stream | resource | string
$configuration Configuration
コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct($stream = null, \Protobuf\Configuration $configuration = null)
 {
     $this->ctype = \google\protobuf\FieldOptions\CType::STRING();
     $this->jstype = \google\protobuf\FieldOptions\JSType::JS_NORMAL();
     $this->lazy = false;
     $this->deprecated = false;
     $this->weak = false;
     parent::__construct($stream, $configuration);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function __construct($stream = null, \Protobuf\Configuration $configuration = null)
 {
     $this->deprecated = false;
     parent::__construct($stream, $configuration);
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function __construct($stream = null, \Protobuf\Configuration $configuration = null)
 {
     $this->java_multiple_files = false;
     $this->java_generate_equals_and_hash = false;
     $this->java_string_check_utf8 = false;
     $this->optimize_for = \google\protobuf\FileOptions\OptimizeMode::SPEED();
     $this->cc_generic_services = false;
     $this->java_generic_services = false;
     $this->py_generic_services = false;
     $this->deprecated = false;
     $this->cc_enable_arenas = false;
     parent::__construct($stream, $configuration);
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 public function __construct($stream = null, \Protobuf\Configuration $configuration = null)
 {
     $this->client_streaming = false;
     $this->server_streaming = false;
     parent::__construct($stream, $configuration);
 }