<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/client.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* This message is used to configure the generation of a subset of the RPCs in
* a service for client libraries.
*
* Generated from protobuf message <code>google.api.SelectiveGapicGeneration</code>
*/
class SelectiveGapicGeneration extends \Google\Protobuf\Internal\Message
{
/**
* An allowlist of the fully qualified names of RPCs that should be included
* on public client surfaces.
*
* Generated from protobuf field <code>repeated string methods = 1;</code>
*/
private $methods;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $methods
* An allowlist of the fully qualified names of RPCs that should be included
* on public client surfaces.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Api\Client::initOnce();
parent::__construct($data);
}
/**
* An allowlist of the fully qualified names of RPCs that should be included
* on public client surfaces.
*
* Generated from protobuf field <code>repeated string methods = 1;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getMethods()
{
return $this->methods;
}
/**
* An allowlist of the fully qualified names of RPCs that should be included
* on public client surfaces.
*
* Generated from protobuf field <code>repeated string methods = 1;</code>
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMethods($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->methods = $arr;
return $this;
}
}
|