class ContextRule extends Message

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

Protobuf type Google\Api\ContextRule

Methods

__construct()

No description

string
getSelector()

Selects the methods to which this rule applies.

setSelector(string $var)

Selects the methods to which this rule applies.

RepeatedField
getRequested()

A list of full type names of requested contexts.

setRequested(array|RepeatedField $var)

A list of full type names of requested contexts.

RepeatedField
getProvided()

A list of full type names of provided contexts.

setProvided(array|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 63
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

at line 75
RepeatedField getRequested()

A list of full type names of requested contexts.

Generated from protobuf field repeated string requested = 2;

Return Value

RepeatedField

at line 86
setRequested(array|RepeatedField $var)

A list of full type names of requested contexts.

Generated from protobuf field repeated string requested = 2;

Parameters

array|RepeatedField $var

at line 98
RepeatedField getProvided()

A list of full type names of provided contexts.

Generated from protobuf field repeated string provided = 3;

Return Value

RepeatedField

at line 109
setProvided(array|RepeatedField $var)

A list of full type names of provided contexts.

Generated from protobuf field repeated string provided = 3;

Parameters

array|RepeatedField $var