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

Breadcrumb

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

function FieldDescriptorProto::setDefaultValue

For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped.

Generated from protobuf field <code>optional string default_value = 7;</code>

Parameters

string $var:

Return value

$this

File

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

Class

FieldDescriptorProto
Describes a field within a message.

Namespace

Google\Protobuf\Internal

Code

public function setDefaultValue($var) {
    GPBUtil::checkString($var, True);
    $this->default_value = $var;
    return $this;
}
RSS feed
Powered by Drupal