class Api extends Message

Api is a light-weight descriptor for a protocol buffer service.

Protobuf type Google\Protobuf\Api

Methods

__construct()

No description

string
getName()

The fully qualified name of this api, including package name followed by the api's simple name.

setName(string $var)

The fully qualified name of this api, including package name followed by the api's simple name.

RepeatedField
getMethods()

The methods of this api, in unspecified order.

setMethods(array|RepeatedField $var)

The methods of this api, in unspecified order.

RepeatedField
getOptions()

Any metadata attached to the API.

setOptions(array|RepeatedField $var)

Any metadata attached to the API.

string
getVersion()

A version string for this api. If specified, must have the form major-version.minor-version, as in 1.10. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here.

setVersion(string $var)

A version string for this api. If specified, must have the form major-version.minor-version, as in 1.10. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here.

getSourceContext()

Source context for the protocol buffer service represented by this message.

setSourceContext(SourceContext $var)

Source context for the protocol buffer service represented by this message.

RepeatedField
getMixins()

Included APIs. See [Mixin][].

setMixins(array|RepeatedField $var)

Included APIs. See [Mixin][].

int
getSyntax()

The source syntax of the service.

setSyntax(int $var)

The source syntax of the service.

Details

at line 80
__construct()

at line 92
string getName()

The fully qualified name of this api, including package name followed by the api's simple name.

Generated from protobuf field string name = 1;

Return Value

string

at line 104
setName(string $var)

The fully qualified name of this api, including package name followed by the api's simple name.

Generated from protobuf field string name = 1;

Parameters

string $var

at line 116
RepeatedField getMethods()

The methods of this api, in unspecified order.

Generated from protobuf field repeated .google.protobuf.Method methods = 2;

Return Value

RepeatedField

at line 127
setMethods(array|RepeatedField $var)

The methods of this api, in unspecified order.

Generated from protobuf field repeated .google.protobuf.Method methods = 2;

Parameters

array|RepeatedField $var

at line 139
RepeatedField getOptions()

Any metadata attached to the API.

Generated from protobuf field repeated .google.protobuf.Option options = 3;

Return Value

RepeatedField

at line 150
setOptions(array|RepeatedField $var)

Any metadata attached to the API.

Generated from protobuf field repeated .google.protobuf.Option options = 3;

Parameters

array|RepeatedField $var

at line 179
string getVersion()

A version string for this api. If specified, must have the form major-version.minor-version, as in 1.10. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here.

The versioning schema uses semantic versioning where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the API, which must end in v<major-version>, as in google.feature.v1. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, none-GA apis.

Generated from protobuf field string version = 4;

Return Value

string

at line 207
setVersion(string $var)

A version string for this api. If specified, must have the form major-version.minor-version, as in 1.10. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here.

The versioning schema uses semantic versioning where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the API, which must end in v<major-version>, as in google.feature.v1. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, none-GA apis.

Generated from protobuf field string version = 4;

Parameters

string $var

at line 220
SourceContext getSourceContext()

Source context for the protocol buffer service represented by this message.

Generated from protobuf field .google.protobuf.SourceContext source_context = 5;

Return Value

SourceContext

at line 232
setSourceContext(SourceContext $var)

Source context for the protocol buffer service represented by this message.

Generated from protobuf field .google.protobuf.SourceContext source_context = 5;

Parameters

SourceContext $var

at line 244
RepeatedField getMixins()

Included APIs. See [Mixin][].

Generated from protobuf field repeated .google.protobuf.Mixin mixins = 6;

Return Value

RepeatedField

at line 255
setMixins(array|RepeatedField $var)

Included APIs. See [Mixin][].

Generated from protobuf field repeated .google.protobuf.Mixin mixins = 6;

Parameters

array|RepeatedField $var

at line 267
int getSyntax()

The source syntax of the service.

Generated from protobuf field .google.protobuf.Syntax syntax = 7;

Return Value

int

at line 278
setSyntax(int $var)

The source syntax of the service.

Generated from protobuf field .google.protobuf.Syntax syntax = 7;

Parameters

int $var