google.devtools.cloudbuild.v2.GitHubConfig */ class GitHubConfig extends \Google\Protobuf\Internal\Message { /** * OAuth credential of the account that authorized the Cloud Build GitHub App. * It is recommended to use a robot account instead of a human user account. * The OAuth token must be tied to the Cloud Build GitHub App. * * Generated from protobuf field .google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1; */ protected $authorizer_credential = null; /** * GitHub App installation id. * * Generated from protobuf field int64 app_installation_id = 2; */ protected $app_installation_id = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\Build\V2\OAuthCredential $authorizer_credential * OAuth credential of the account that authorized the Cloud Build GitHub App. * It is recommended to use a robot account instead of a human user account. * The OAuth token must be tied to the Cloud Build GitHub App. * @type int|string $app_installation_id * GitHub App installation id. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); parent::__construct($data); } /** * OAuth credential of the account that authorized the Cloud Build GitHub App. * It is recommended to use a robot account instead of a human user account. * The OAuth token must be tied to the Cloud Build GitHub App. * * Generated from protobuf field .google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1; * @return \Google\Cloud\Build\V2\OAuthCredential|null */ public function getAuthorizerCredential() { return $this->authorizer_credential; } public function hasAuthorizerCredential() { return isset($this->authorizer_credential); } public function clearAuthorizerCredential() { unset($this->authorizer_credential); } /** * OAuth credential of the account that authorized the Cloud Build GitHub App. * It is recommended to use a robot account instead of a human user account. * The OAuth token must be tied to the Cloud Build GitHub App. * * Generated from protobuf field .google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1; * @param \Google\Cloud\Build\V2\OAuthCredential $var * @return $this */ public function setAuthorizerCredential($var) { GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\OAuthCredential::class); $this->authorizer_credential = $var; return $this; } /** * GitHub App installation id. * * Generated from protobuf field int64 app_installation_id = 2; * @return int|string */ public function getAppInstallationId() { return $this->app_installation_id; } /** * GitHub App installation id. * * Generated from protobuf field int64 app_installation_id = 2; * @param int|string $var * @return $this */ public function setAppInstallationId($var) { GPBUtil::checkInt64($var); $this->app_installation_id = $var; return $this; } }