google.protobuf.Api */ class Api extends \Google\Protobuf\Internal\Message { /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The methods of this interface, in unspecified order. * * Generated from protobuf field repeated .google.protobuf.Method methods = 2; */ private $methods; /** * Any metadata attached to the interface. * * Generated from protobuf field repeated .google.protobuf.Option options = 3; */ private $options; /** * 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`, 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. * * Generated from protobuf field string version = 4; */ private $version = ''; /** * Source context for the protocol buffer service represented by this * message. * * Generated from protobuf field .google.protobuf.SourceContext source_context = 5; */ private $source_context = null; /** * Included interfaces. See [Mixin][]. * * Generated from protobuf field repeated .google.protobuf.Mixin mixins = 6; */ private $mixins; /** * The source syntax of the service. * * Generated from protobuf field .google.protobuf.Syntax syntax = 7; */ private $syntax = 0; public function __construct() { \GPBMetadata\Google\Protobuf\Api::initOnce(); parent::__construct(); } /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The methods of this interface, in unspecified order. * * Generated from protobuf field repeated .google.protobuf.Method methods = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMethods() { return $this->methods; } /** * The methods of this interface, in unspecified order. * * Generated from protobuf field repeated .google.protobuf.Method methods = 2; * @param \Google\Protobuf\Method[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMethods($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Method::class); $this->methods = $arr; return $this; } /** * Any metadata attached to the interface. * * Generated from protobuf field repeated .google.protobuf.Option options = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getOptions() { return $this->options; } /** * Any metadata attached to the interface. * * Generated from protobuf field repeated .google.protobuf.Option options = 3; * @param \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setOptions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Option::class); $this->options = $arr; return $this; } /** * 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`, 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. * * Generated from protobuf field string version = 4; * @return string */ public function getVersion() { return $this->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`, 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. * * Generated from protobuf field string version = 4; * @param string $var * @return $this */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; return $this; } /** * Source context for the protocol buffer service represented by this * message. * * Generated from protobuf field .google.protobuf.SourceContext source_context = 5; * @return \Google\Protobuf\SourceContext */ public function getSourceContext() { return $this->source_context; } /** * Source context for the protocol buffer service represented by this * message. * * Generated from protobuf field .google.protobuf.SourceContext source_context = 5; * @param \Google\Protobuf\SourceContext $var * @return $this */ public function setSourceContext($var) { GPBUtil::checkMessage($var, \Google\Protobuf\SourceContext::class); $this->source_context = $var; return $this; } /** * Included interfaces. See [Mixin][]. * * Generated from protobuf field repeated .google.protobuf.Mixin mixins = 6; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMixins() { return $this->mixins; } /** * Included interfaces. See [Mixin][]. * * Generated from protobuf field repeated .google.protobuf.Mixin mixins = 6; * @param \Google\Protobuf\Mixin[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMixins($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Mixin::class); $this->mixins = $arr; return $this; } /** * The source syntax of the service. * * Generated from protobuf field .google.protobuf.Syntax syntax = 7; * @return int */ public function getSyntax() { return $this->syntax; } /** * The source syntax of the service. * * Generated from protobuf field .google.protobuf.Syntax syntax = 7; * @param int $var * @return $this */ public function setSyntax($var) { GPBUtil::checkEnum($var, \Google\Protobuf\Syntax::class); $this->syntax = $var; return $this; } }