proto library Client - Class UninterpretedOption (v5.36.2)

Reference documentation and code samples for the proto library Client class UninterpretedOption.

A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class.

DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.

Generated from protobuf message google.protobuf.UninterpretedOption

Namespace

Google \ Protobuf \ Internal

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name array<UninterpretedOption\NamePart>
↳ identifier_value string

The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.

↳ positive_int_value int|string
↳ negative_int_value int|string
↳ double_value float
↳ string_value string
↳ aggregate_value string

getName

Generated from protobuf field repeated .google.protobuf.UninterpretedOption.NamePart name = 2;

Returns
Type Description
Google\Protobuf\RepeatedField<UninterpretedOption\NamePart>

setName

Generated from protobuf field repeated .google.protobuf.UninterpretedOption.NamePart name = 2;

Parameter
Name Description
var array<UninterpretedOption\NamePart>
Returns
Type Description
$this

getIdentifierValue

The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.

Returns
Type Description
string

hasIdentifierValue

clearIdentifierValue

setIdentifierValue

The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.

Parameter
Name Description
var string
Returns
Type Description
$this

getPositiveIntValue

Generated from protobuf field optional uint64 positive_int_value = 4;

Returns
Type Description
int|string

hasPositiveIntValue

clearPositiveIntValue

setPositiveIntValue

Generated from protobuf field optional uint64 positive_int_value = 4;

Parameter
Name Description
var int|string
Returns
Type Description
$this

getNegativeIntValue

Generated from protobuf field optional int64 negative_int_value = 5;

Returns
Type Description
int|string

hasNegativeIntValue

clearNegativeIntValue

setNegativeIntValue

Generated from protobuf field optional int64 negative_int_value = 5;

Parameter
Name Description
var int|string
Returns
Type Description
$this

getDoubleValue

Generated from protobuf field optional double double_value = 6;

Returns
Type Description
float

hasDoubleValue

clearDoubleValue

setDoubleValue

Generated from protobuf field optional double double_value = 6;

Parameter
Name Description
var float
Returns
Type Description
$this

getStringValue

Generated from protobuf field optional bytes string_value = 7;

Returns
Type Description
string

hasStringValue

clearStringValue

setStringValue

Generated from protobuf field optional bytes string_value = 7;

Parameter
Name Description
var string
Returns
Type Description
$this

getAggregateValue

Generated from protobuf field optional string aggregate_value = 8;

Returns
Type Description
string

hasAggregateValue

clearAggregateValue

setAggregateValue

Generated from protobuf field optional string aggregate_value = 8;

Parameter
Name Description
var string
Returns
Type Description
$this