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(array $data = NULL)

Constructor.

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 54
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $selector
      Selects the methods to which this rule applies.
      Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
@type string[]|\Google\Protobuf\Internal\RepeatedField $requested
      A list of full type names of requested contexts.
@type string[]|\Google\Protobuf\Internal\RepeatedField $provided
      A list of full type names of provided contexts.

}

at line 66
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 79
$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 93
RepeatedField getRequested()

A list of full type names of requested contexts.

Generated from protobuf field repeated string requested = 2;

Return Value

RepeatedField

at line 105
$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 119
RepeatedField getProvided()

A list of full type names of provided contexts.

Generated from protobuf field repeated string provided = 3;

Return Value

RepeatedField

at line 131
$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