Add a new element to 'oneof_decl'

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

        $this->oneof_decl->add($value);
    }
137993
protected function Div( $value )
	{
	    if ( $value->getIsNumeric() )
	        return new DayTimeDurationProxy( DayTimeDurationValue::Divide(  $this->_value, Convert::ToDouble( $value->getValue() ) ) );

	    else if ( $value->GetValueCode() == DayTimeDurationProxyFactory::Code )
	        return new DecimalProxy( DayTimeDurationValue::DivideDurations( $this->_value, /* DayTimeDurationValue */ $value->getValue() ) );

	    else
	        throw XPath2Exception::withErrorCodeAndParams( "XPTY0004", Resources::BinaryOperatorNotDefined,
				array(
					"op:div",
					SequenceType::WithTypeCodeAndCardinality( SequenceType::GetXmlTypeCodeFromObject(  $this->_value), XmlTypeCardinality::One ),
					SequenceType::WithTypeCodeAndCardinality( SequenceType::GetXmlTypeCodeFromObject( $value->getValue() ), XmlTypeCardinality::One )
				)
			);
	}
1357984
public function setOp($value): self
    {
        if (!in_array($value, self::ops(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_OP, implode(', ', self::ops())));
        }

        return $this->setAttribute('op', $value);
    }
764194
public function addValue( $value )
	{
		$value	= is_int( $value ) ? $value : (float) $value;
		$this->values[]	= $value;
		$this->dimension++;
	}
711241
public function addDraftIsTransformedToMessageIdList($value)
    {
        if ($this->DraftIsTransformedToMessageIdList === null) {
            $this->DraftIsTransformedToMessageIdList = new \Protobuf\ScalarCollection();
        }

        $this->DraftIsTransformedToMessageIdList->add($value);
    }
842237
public function addObject($value, $blnAddToBeginning = false)
    {
        if ($blnAddToBeginning) {
            array_unshift($this->collection, $value);
        } else {
            array_push($this->collection, $value);
        }
    }
470227
public function appendValue($value)
    {
        $appendValue = $this->formatValue($value);
        $this->message = $this->message . $appendValue;

        return $this;
    }
479836
protected function addSequentialNode(DOMElement $element, $value): void
    {
        if (empty($element->nodeValue)) {
            $element->nodeValue = \htmlspecialchars($value);
            return;
        }

        $child = $this->element($element->nodeName);
        $child->nodeValue = \htmlspecialchars($value);
        $element->parentNode->appendChild($child);
    }
474857
public function addDealerContactId($value)
    {
        $currentArray = $this->getDealerContactIds();
        $currentArray []= $value;
        $this->setDealerContactIds($currentArray);

        return $this;
    }
549842
public function setValue(string $value = null) : Element
    {
        if ($value && !preg_match("@^(https?|ftp)://@", $value)) {
            $value = "http://$value";
        }
        return parent::setValue($value);
    }
1337774
public function setAddition($value)
    {
        if (!isset($this->data->amount->subtotals)) {
            $this->data->amount->subtotals = new stdClass();
        }
        $this->data->amount->subtotals->addition = (float) $value;

        return $this;
    }
880422
public function setValue($value)
    {
        if (is_array($value)) {
            $value = implode(', ', $value);
        }

        if (!is_null($value)) {
            $this->_value = $value;
            $this->appendChild($value);
        }
    }
1283951
protected function Add( $value )
	{
		switch ( $value->GetValueCode() )
	    {
	        case DayTimeDurationProxyFactory::Code:
	        	/**
	        	 * @var DayTimeDurationProxy $value
	        	 */
	        	$clone = new DayTimeDurationValue( $this->_value->Value );
	        	$clone->Add( /* DayTimeDurationValue */ $value->getValue() );
	        	return new DayTimeDurationProxy( $clone );

	        case DateTimeProxyFactory::Code:
	        	/**
	        	 * @var DateTimeProxy $value
	        	 */
	            return new DateTimeProxy( DateTimeValue::AddDayTimeDuration( $value->getValue(), $this->_value ) );

	        case DateProxyFactory::Code:
	        	/**
	        	 * @var DateProxy $value
	        	 */
	        	return new DateProxy( DateValue::AddDayTimeDuration( $value->getValue(), $this->_value ) );
	        	// return new DateProxy(DateValue::Add( /* DateValue */ $value->getValue(),  $this->_value) );

	        case TimeProxyFactory::Code:
	            return new TimeProxy( TimeValue::AddDayTimeDuration( /* TimeValue */ $value->getValue(),  $this->_value) );

	        default:
	            throw XPath2Exception::withErrorCodeAndParams( "XPTY0004", Resources::BinaryOperatorNotDefined,
					array(
						"op:add",
						SequenceType::WithTypeCodeAndCardinality(SequenceType::GetXmlTypeCodeFromObject( $this->_value ), XmlTypeCardinality::One ),
						SequenceType::WithTypeCodeAndCardinality(SequenceType::GetXmlTypeCodeFromObject( $value->getValue() ), XmlTypeCardinality::One )
					)
				);
	    }
	}
1116685
public function addService(\google\protobuf\ServiceDescriptorProto $value)
    {
        if ($this->service === null) {
            $this->service = new \Protobuf\MessageCollection();
        }

        $this->service->add($value);
    }
1150333
public function addExtensionRange(\google\protobuf\DescriptorProto\ExtensionRange $value)
    {
        if ($this->extension_range === null) {
            $this->extension_range = new \Protobuf\MessageCollection();
        }

        $this->extension_range->add($value);
    }
155483
public function addPersonImageId($value)
    {
        $currentArray = $this->getPersonImageIds();
        $currentArray []= $value;
        $this->setPersonImageIds($currentArray);

        return $this;
    }
123076
protected function insertValue($value): void
    {
        // Grab the top item from the stack that we're currently parsing.
        $currentItem = array_pop($this->stack);

        // Examine the current item, and then:
        //   - if it's an object, associate the newly-parsed value with the most recent key
        //   - if it's an array, push the newly-parsed value to the array
        if ('object' === $currentItem['type']) {
            $currentItem['value'][array_pop($this->keys)] = $value;
        } else {
            $currentItem['value'][] = $value;
        }

        // Replace the current item on the stack.
        $this->stack[] = $currentItem;
    }