Hobby
extends Message
in package
Generated from protobuf message <code>users.hobbies.Hobby</code>
Table of Contents
Properties
- $id : mixed
- Generated from protobuf field <code>int64 id = 1;</code>
- $name : mixed
- Generated from protobuf field <code>string name = 2;</code>
Methods
- __construct() : mixed
- Constructor.
- getId() : int|string
- Generated from protobuf field <code>int64 id = 1;</code>
- getName() : string
- Generated from protobuf field <code>string name = 2;</code>
- setId() : $this
- Generated from protobuf field <code>int64 id = 1;</code>
- setName() : $this
- Generated from protobuf field <code>string name = 2;</code>
Properties
$id
Generated from protobuf field <code>int64 id = 1;</code>
protected
mixed
$id
= 0
$name
Generated from protobuf field <code>string name = 2;</code>
protected
mixed
$name
= ''
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|string $id @type string $name}
getId()
Generated from protobuf field <code>int64 id = 1;</code>
public
getId() : int|string
Return values
int|stringgetName()
Generated from protobuf field <code>string name = 2;</code>
public
getName() : string
Return values
stringsetId()
Generated from protobuf field <code>int64 id = 1;</code>
public
setId(int|string $var) : $this
Parameters
- $var : int|string
Return values
$thissetName()
Generated from protobuf field <code>string name = 2;</code>
public
setName(string $var) : $this
Parameters
- $var : string