199 return \google\protobuf\DescriptorProto::fromArray([
200 'name' =>
'ChannelId',
202 \google\protobuf\FieldDescriptorProto::fromArray([
205 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_BYTES(),
206 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL()
208 \google\protobuf\FieldDescriptorProto::fromArray([
210 'name' =>
'isPrivate',
211 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_BOOL(),
212 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL()
214 \google\protobuf\FieldDescriptorProto::fromArray([
216 'name' =>
'signature',
217 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_BYTES(),
218 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL()
246 $sizeContext =
$context->getComputeSizeContext();
248 if ($this->
id !==
null) {
249 $writer->writeVarint($stream, 10);
250 $writer->writeByteStream($stream, $this->
id);
253 if ($this->isPrivate !==
null) {
254 $writer->writeVarint($stream, 16);
255 $writer->writeBool($stream, $this->isPrivate);
258 if ($this->signature !==
null) {
259 $writer->writeVarint($stream, 26);
260 $writer->writeByteStream($stream, $this->signature);
279 $limit = ($length !==
null)
280 ? ($stream->tell() + $length)
283 while ($limit ===
null || $stream->tell() < $limit) {
285 if ($stream->eof()) {
289 $key = $reader->readVarint($stream);
290 $wire = \Protobuf\WireFormat::getTagWireType(
$key);
291 $tag = \Protobuf\WireFormat::getTagFieldNumber(
$key);
293 if ($stream->eof()) {
298 \Protobuf\WireFormat::assertWireType($wire, 12);
300 $this->
id = $reader->readByteStream($stream);
306 \Protobuf\WireFormat::assertWireType($wire, 8);
308 $this->isPrivate = $reader->readBool($stream);
314 \Protobuf\WireFormat::assertWireType($wire, 12);
316 $this->signature = $reader->readByteStream($stream);
324 if ($extension !==
null) {
334 $data = $reader->readUnknown($stream, $wire);
335 $unknown = new \Protobuf\Unknown($tag, $wire,
$data);