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

Breadcrumb

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

function FileOptions::setCcGenericServices

Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins). Generic services were the only kind of service generation supported by early versions of google.protobuf. Generic services are now considered deprecated in favor of using plugins that generate code specific to your particular RPC system. Therefore, these default to false. Old code which depends on generic services should explicitly set them to true.

Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>

Parameters

bool $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/Internal/FileOptions.php, line 619

Class

FileOptions
Generated from protobuf message <code>google.protobuf.FileOptions</code>

Namespace

Google\Protobuf\Internal

Code

public function setCcGenericServices($var) {
    GPBUtil::checkBool($var);
    $this->cc_generic_services = $var;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal