function MessageOptions::getMessageSetWireFormat
Set true to use the old proto1 MessageSet wire format for extensions. This is provided for backwards-compatibility with the MessageSet wire format. You should not use this for any other reason: It's less efficient, has fewer features, and is more complicated. The message must be defined exactly as follows: message Foo { option message_set_wire_format = true; extensions 4 to max; } Note that the message cannot have any defined fields; MessageSets only have extensions. All extensions of your type must be singular messages; e.g. they cannot be int32s, enums, or repeated messages. Because this is an option, the above two restrictions are not enforced by the protocol compiler.
Generated from protobuf field <code>optional bool message_set_wire_format = 1 [default = false];</code>
Return value
bool
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ MessageOptions.php, line 187
Class
- MessageOptions
- Generated from protobuf message <code>google.protobuf.MessageOptions</code>
Namespace
Google\Protobuf\InternalCode
public function getMessageSetWireFormat() {
return isset($this->message_set_wire_format) ? $this->message_set_wire_format : false;
}