EncodeInput
extends Message
in package
EncodeInput is the input message for the Encode method.
Generated from protobuf message exprml.v1.EncodeInput
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- clearValue() : mixed
- getFormat() : int
- Format of the output string.
- getValue() : Value|null
- JSON value to encode.
- hasValue() : mixed
- setFormat() : $this
- Format of the output string.
- setValue() : $this
- JSON value to encode.
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type int $format Format of the output string. @type \Exprml\PB\Exprml\V1\Value $value JSON value to encode.
}
clearValue()
public
clearValue() : mixed
getFormat()
Format of the output string.
public
getFormat() : int
Generated from protobuf field .exprml.v1.EncodeInput.Format format = 1 [json_name = "format"];
Return values
intgetValue()
JSON value to encode.
public
getValue() : Value|null
Generated from protobuf field .exprml.v1.Value value = 3 [json_name = "value"];
Return values
Value|nullhasValue()
public
hasValue() : mixed
setFormat()
Format of the output string.
public
setFormat(int $var) : $this
Generated from protobuf field .exprml.v1.EncodeInput.Format format = 1 [json_name = "format"];
Parameters
- $var : int
Return values
$thissetValue()
JSON value to encode.
public
setValue(Value $var) : $this
Generated from protobuf field .exprml.v1.Value value = 3 [json_name = "value"];
Parameters
- $var : Value