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

Breadcrumb

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

function FieldDescriptorProto::getOneofIndex

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>

Return value

int

File

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

Class

FieldDescriptorProto
Describes a field within a message.

Namespace

Google\Protobuf\Internal

Code

public function getOneofIndex() {
    return isset($this->oneof_index) ? $this->oneof_index : 0;
}
RSS feed
Powered by Drupal