class ContextRule extends Message

A context rule provides information about the context for an individual API element.

Generated from protobuf message google.api.ContextRule

Methods

__construct()

No description

string
getSelector()

Selects the methods to which this rule applies.

$this
setSelector(string $var)

Selects the methods to which this rule applies.

RepeatedField
getRequested()

A list of full type names of requested contexts.

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

A list of full type names of requested contexts.

RepeatedField
getProvided()

A list of full type names of provided contexts.

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

A list of full type names of provided contexts.

Details

at line 39
__construct()

at line 51
string getSelector()

Selects the methods to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

Generated from protobuf field string selector = 1;

Return Value

string

at line 64
$this setSelector(string $var)

Selects the methods to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

Generated from protobuf field string selector = 1;

Parameters

string $var

Return Value

$this

at line 78
RepeatedField getRequested()

A list of full type names of requested contexts.

Generated from protobuf field repeated string requested = 2;

Return Value

RepeatedField

at line 90
$this setRequested(string[]|RepeatedField $var)

A list of full type names of requested contexts.

Generated from protobuf field repeated string requested = 2;

Parameters

string[]|RepeatedField $var

Return Value

$this

at line 104
RepeatedField getProvided()

A list of full type names of provided contexts.

Generated from protobuf field repeated string provided = 3;

Return Value

RepeatedField

at line 116
$this setProvided(string[]|RepeatedField $var)

A list of full type names of provided contexts.

Generated from protobuf field repeated string provided = 3;

Parameters

string[]|RepeatedField $var

Return Value

$this