class DocumentationRule extends Message

A documentation rule provides information about individual API elements.

Protobuf type Google\Api\DocumentationRule

Methods

__construct()

No description

string
getSelector()

The selector is a comma-separated list of patterns. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard.

setSelector(string $var)

The selector is a comma-separated list of patterns. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard.

string
getDescription()

Description of the selected API(s).

setDescription(string $var)

Description of the selected API(s).

string
getDeprecationDescription()

Deprecation description of the selected element(s). It can be provided if an element is marked as deprecated.

setDeprecationDescription(string $var)

Deprecation description of the selected element(s). It can be provided if an element is marked as deprecated.

Details

at line 43
__construct()

at line 59
string getSelector()

The selector is a comma-separated list of patterns. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard.

Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo." is ok, but not "foo.b" or "foo..bar". To specify a default for all applicable elements, the whole pattern "" is used.

Generated from protobuf field string selector = 1;

Return Value

string

at line 75
setSelector(string $var)

The selector is a comma-separated list of patterns. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard.

Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo." is ok, but not "foo.b" or "foo..bar". To specify a default for all applicable elements, the whole pattern "" is used.

Generated from protobuf field string selector = 1;

Parameters

string $var

at line 87
string getDescription()

Description of the selected API(s).

Generated from protobuf field string description = 2;

Return Value

string

at line 98
setDescription(string $var)

Description of the selected API(s).

Generated from protobuf field string description = 2;

Parameters

string $var

at line 111
string getDeprecationDescription()

Deprecation description of the selected element(s). It can be provided if an element is marked as deprecated.

Generated from protobuf field string deprecation_description = 3;

Return Value

string

at line 123
setDeprecationDescription(string $var)

Deprecation description of the selected element(s). It can be provided if an element is marked as deprecated.

Generated from protobuf field string deprecation_description = 3;

Parameters

string $var