Documentation

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.

}

getErrorMessage()

Error message if is_error is true.

public getErrorMessage() : string

Generated from protobuf field string error_message = 2 [json_name = "errorMessage"];

Return values
string

getIsError()

Whether an error occurred during decoding.

public getIsError() : bool

Generated from protobuf field bool is_error = 1 [json_name = "isError"];

Return values
bool

getValue()

Decoded JSON value.

public getValue() : Value|null

Generated from protobuf field .exprml.v1.Value value = 3 [json_name = "value"];

Return values
Value|null

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
$this

setIsError()

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
$this

setValue()

Decoded JSON value.

public setValue(Value $var) : $this

Generated from protobuf field .exprml.v1.Value value = 3 [json_name = "value"];

Parameters
$var : Value
Return values
$this

        
On this page

Search results