DecodeOutput
extends Message
in package
DecodeOutput is the output message for the Decode method.
Generated from protobuf message exprml.v1.DecodeOutput
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- clearValue() : mixed
- getErrorMessage() : string
- Error message if is_error is true.
- getIsError() : bool
- Whether an error occurred during decoding.
- getValue() : Value|null
- Decoded JSON value.
- hasValue() : mixed
- setErrorMessage() : $this
- Error message if is_error is true.
- setIsError() : $this
- Whether an error occurred during decoding.
- setValue() : $this
- Decoded JSON value.
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 bool $is_error Whether an error occurred during decoding. @type string $error_message Error message if is_error is true. @type \Exprml\PB\Exprml\V1\Value $value Decoded JSON value.
}
clearValue()
public
clearValue() : mixed
getErrorMessage()
Error message if is_error is true.
public
getErrorMessage() : string
Generated from protobuf field string error_message = 2 [json_name = "errorMessage"];
Return values
stringgetIsError()
Whether an error occurred during decoding.
public
getIsError() : bool
Generated from protobuf field bool is_error = 1 [json_name = "isError"];
Return values
boolgetValue()
Decoded JSON value.
public
getValue() : Value|null
Generated from protobuf field .exprml.v1.Value value = 3 [json_name = "value"];
Return values
Value|nullhasValue()
public
hasValue() : mixed
setErrorMessage()
Error message if is_error is true.
public
setErrorMessage(string $var) : $this
Generated from protobuf field string error_message = 2 [json_name = "errorMessage"];
Parameters
- $var : string
Return values
$thissetIsError()
Whether an error occurred during decoding.
public
setIsError(bool $var) : $this
Generated from protobuf field bool is_error = 1 [json_name = "isError"];
Parameters
- $var : bool
Return values
$thissetValue()
Decoded JSON value.
public
setValue(Value $var) : $this
Generated from protobuf field .exprml.v1.Value value = 3 [json_name = "value"];
Parameters
- $var : Value