1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\CloudDebugger; 19 20class SourceContext extends \Google\Model 21{ 22 protected $cloudRepoType = CloudRepoSourceContext::class; 23 protected $cloudRepoDataType = ''; 24 protected $cloudWorkspaceType = CloudWorkspaceSourceContext::class; 25 protected $cloudWorkspaceDataType = ''; 26 protected $gerritType = GerritSourceContext::class; 27 protected $gerritDataType = ''; 28 protected $gitType = GitSourceContext::class; 29 protected $gitDataType = ''; 30 31 /** 32 * @param CloudRepoSourceContext 33 */ 34 public function setCloudRepo(CloudRepoSourceContext $cloudRepo) 35 { 36 $this->cloudRepo = $cloudRepo; 37 } 38 /** 39 * @return CloudRepoSourceContext 40 */ 41 public function getCloudRepo() 42 { 43 return $this->cloudRepo; 44 } 45 /** 46 * @param CloudWorkspaceSourceContext 47 */ 48 public function setCloudWorkspace(CloudWorkspaceSourceContext $cloudWorkspace) 49 { 50 $this->cloudWorkspace = $cloudWorkspace; 51 } 52 /** 53 * @return CloudWorkspaceSourceContext 54 */ 55 public function getCloudWorkspace() 56 { 57 return $this->cloudWorkspace; 58 } 59 /** 60 * @param GerritSourceContext 61 */ 62 public function setGerrit(GerritSourceContext $gerrit) 63 { 64 $this->gerrit = $gerrit; 65 } 66 /** 67 * @return GerritSourceContext 68 */ 69 public function getGerrit() 70 { 71 return $this->gerrit; 72 } 73 /** 74 * @param GitSourceContext 75 */ 76 public function setGit(GitSourceContext $git) 77 { 78 $this->git = $git; 79 } 80 /** 81 * @return GitSourceContext 82 */ 83 public function getGit() 84 { 85 return $this->git; 86 } 87} 88 89// Adding a class alias for backwards compatibility with the previous class name. 90class_alias(SourceContext::class, 'Google_Service_CloudDebugger_SourceContext'); 91