function Api::__construct
Constructor.
Parameters
array $data {: Optional. Data for populating the Message object.
@type string $name The fully qualified name of this interface, including package name followed by the interface's simple name. @type array<\Google\Protobuf\Method>|\Google\Protobuf\Internal\RepeatedField $methods The methods of this interface, in unspecified order. @type array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $options Any metadata attached to the interface. @type string $version A version string for this interface. 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](http://semver.org) 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 interface, 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, non-GA interfaces. @type \Google\Protobuf\SourceContext $source_context Source context for the protocol buffer service represented by this message. @type array<\Google\Protobuf\Mixin>|\Google\Protobuf\Internal\RepeatedField $mixins Included interfaces. See [Mixin][]. @type int $syntax The source syntax of the service. }
Overrides Message::__construct
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Api.php, line 126
Class
- Api
- Api is a light-weight descriptor for an API Interface. Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which…
Namespace
Google\ProtobufCode
public function __construct($data = NULL) {
\GPBMetadata\Google\Protobuf\Api::initOnce();
parent::__construct($data);
}