Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldDescriptorProto.php

function FieldDescriptorProto::setOneofIndex

If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof.

Generated from protobuf field <code>optional int32 oneof_index = 9;</code>

Parameters

int $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto.php, line 458

Class

FieldDescriptorProto
Describes a field within a message.

Namespace

Google\Protobuf\Internal

Code

public function setOneofIndex($var) {
    GPBUtil::checkInt32($var);
    $this->oneof_index = $var;
    return $this;
}
RSS feed
Powered by Drupal