public function addOneofDecl(\google\protobuf\OneofDescriptorProto $value)
    {
        if ($this->oneof_decl === null) {
            $this->oneof_decl = new \Protobuf\MessageCollection();
        }

        $this->oneof_decl->add($value);
    }
public function addOneofDecl(\google\protobuf\OneofDescriptorProto $value)
    {
        if ($this->oneof_decl === null) {
            $this->oneof_decl = new \Protobuf\MessageCollection();
        }

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

@param \google\protobuf\OneofDescriptorProto $value
Add a new element to oneof_decl