class MockResponse extends Message (View source)

internal  
 

Generated from protobuf message google.apicore.testing.MockResponse

Properties

protected $name

Generated from protobuf field string name = 1;

protected $number

Generated from protobuf field uint64 number = 2;

protected $next_page_token

Generated from protobuf field string next_page_token = 4;

Methods

__construct(array $data = NULL)

Constructor.

string
getName()

Generated from protobuf field string name = 1;

$this
setName(string $var)

Generated from protobuf field string name = 1;

int|string
getNumber()

Generated from protobuf field uint64 number = 2;

$this
setNumber(int|string $var)

Generated from protobuf field uint64 number = 2;

RepeatedField
getResourcesList()

Generated from protobuf field repeated string resources_list = 3;

$this
setResourcesList(string[]|RepeatedField $var)

Generated from protobuf field repeated string resources_list = 3;

string
getNextPageToken()

Generated from protobuf field string next_page_token = 4;

$this
setNextPageToken(string $var)

Generated from protobuf field string next_page_token = 4;

MapField
getResourcesMap()

Generated from protobuf field map<string, string> resources_map = 5;

$this
setResourcesMap(array|MapField $var)

Generated from protobuf field map<string, string> resources_map = 5;

Details

__construct(array $data = NULL)

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $name
@type int|string $number
@type string[]|\Google\Protobuf\Internal\RepeatedField $resources_list
@type string $next_page_token
@type array|\Google\Protobuf\Internal\MapField $resources_map

}

string getName()

Generated from protobuf field string name = 1;

Return Value

string

$this setName(string $var)

Generated from protobuf field string name = 1;

Parameters

string $var

Return Value

$this

int|string getNumber()

Generated from protobuf field uint64 number = 2;

Return Value

int|string

$this setNumber(int|string $var)

Generated from protobuf field uint64 number = 2;

Parameters

int|string $var

Return Value

$this

RepeatedField getResourcesList()

Generated from protobuf field repeated string resources_list = 3;

Return Value

RepeatedField

$this setResourcesList(string[]|RepeatedField $var)

Generated from protobuf field repeated string resources_list = 3;

Parameters

string[]|RepeatedField $var

Return Value

$this

string getNextPageToken()

Generated from protobuf field string next_page_token = 4;

Return Value

string

$this setNextPageToken(string $var)

Generated from protobuf field string next_page_token = 4;

Parameters

string $var

Return Value

$this

MapField getResourcesMap()

Generated from protobuf field map<string, string> resources_map = 5;

Return Value

MapField

$this setResourcesMap(array|MapField $var)

Generated from protobuf field map<string, string> resources_map = 5;

Parameters

array|MapField $var

Return Value

$this