Google is committed to advancing racial equity for Black communities. See how.

fuchsia.examples

PROTOCOLS

Echo

Defined in fuchsia.examples/echo.test.fidl

EchoString

Request

NameType
value string[32]

Response

NameType
response string[32]

OnString

Response

NameType
response string[32]

SendString

Request

NameType
value string[32]

EchoLauncher

Defined in fuchsia.examples/echo.test.fidl

GetEcho

Request

NameType
echo_prefix string[32]

Response

NameType
response Echo

GetEchoPipelined

Request

NameType
echo_prefix string[32]
request request<Echo>

TicTacToe

Defined in fuchsia.examples/types.test.fidl

MakeMove

Request

NameType
row uint8
col uint8

Response

NameType
success bool
new_state GameState?

OnOpponentMove

Response

NameType
new_state GameState

StartGame

Request

NameType
start_first bool

STRUCTS

Color

Defined in fuchsia.examples/types.test.fidl

NameTypeDescriptionDefault
id uint32 No default
name string[32] red

GameState

Defined in fuchsia.examples/types.test.fidl

NameTypeDescriptionDefault

ENUMS

LocationType

Type: uint32

Defined in fuchsia.examples/types.test.fidl

NameValueDescription
MUSEUM 1
AIRPORT 2
RESTAURANT 3

TABLES

User

Defined in fuchsia.examples/types.test.fidl

OrdinalNameTypeDescription
1
2 age uint8
3 name string[32]

UNIONS

JsonValue

Defined in fuchsia.examples/types.test.fidl

NameTypeDescription
int_value int32
string_value string[32]

BITS

FileMode

Type: uint16

Defined in fuchsia.examples/types.test.fidl

NameValueDescription
READ 1
WRITE 2
EXECUTE 4

CONSTANTS

NameValueTypeDescription
BOARD_SIZE 9 uint8
MAX_STRING_LENGTH 32 uint64
NAME Tic-Tac-Toe String