public function addExtension(\google\protobuf\FieldDescriptorProto $value)
    {
        if ($this->extension === null) {
            $this->extension = new \Protobuf\MessageCollection();
        }

        $this->extension->add($value);
    }
public function addExtension(\google\protobuf\FieldDescriptorProto $value)
    {
        if ($this->extension === null) {
            $this->extension = new \Protobuf\MessageCollection();
        }

        $this->extension->add($value);
    }
public function addExtension ( \ google \ protobuf \ FieldDescriptorProto $ value ) { if ( $ this -> extension === null ) { $ this -> extension = new \ Protobuf \ MessageCollection ( ) ; } $ this -> extension -> add ( $ value ) ; }
Add a new element to 'extension'

@param \google\protobuf\FieldDescriptorProto $value
Add a new element to extension