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

Breadcrumb

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

function FieldDescriptorProto::getDefaultValue

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>

Return value

string

File

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

Class

FieldDescriptorProto
Describes a field within a message.

Namespace

Google\Protobuf\Internal

Code

public function getDefaultValue() {
    return isset($this->default_value) ? $this->default_value : '';
}
RSS feed
Powered by Drupal