diff --git a/CommonProtos/metadata/Api/Client.php b/CommonProtos/metadata/Api/Client.php index 1fdb799b541f..d56b8fa47dd5 100644 Binary files a/CommonProtos/metadata/Api/Client.php and b/CommonProtos/metadata/Api/Client.php differ diff --git a/CommonProtos/src/Api/SelectiveGapicGeneration.php b/CommonProtos/src/Api/SelectiveGapicGeneration.php index 50411f7fe547..c6ababaacaa3 100644 --- a/CommonProtos/src/Api/SelectiveGapicGeneration.php +++ b/CommonProtos/src/Api/SelectiveGapicGeneration.php @@ -23,6 +23,17 @@ class SelectiveGapicGeneration extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string methods = 1; */ private $methods; + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + */ + protected $generate_omitted_as_internal = false; /** * Constructor. @@ -33,6 +44,13 @@ class SelectiveGapicGeneration extends \Google\Protobuf\Internal\Message * @type array|\Google\Protobuf\Internal\RepeatedField $methods * An allowlist of the fully qualified names of RPCs that should be included * on public client surfaces. + * @type bool $generate_omitted_as_internal + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. * } */ public function __construct($data = NULL) { @@ -68,5 +86,41 @@ public function setMethods($var) return $this; } + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + * @return bool + */ + public function getGenerateOmittedAsInternal() + { + return $this->generate_omitted_as_internal; + } + + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + * @param bool $var + * @return $this + */ + public function setGenerateOmittedAsInternal($var) + { + GPBUtil::checkBool($var); + $this->generate_omitted_as_internal = $var; + + return $this; + } + }