PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Api / Service.php
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Api Last commit date
BackendRule 3 years ago Billing 3 years ago Distribution 3 years ago Expr 3 years ago LabelDescriptor 3 years ago Logging 3 years ago MetricDescriptor 3 years ago Monitoring 3 years ago Property 3 years ago ResourceDescriptor 3 years ago Advice.php 3 years ago AuthProvider.php 3 years ago AuthRequirement.php 3 years ago Authentication.php 3 years ago AuthenticationRule.php 3 years ago Backend.php 3 years ago BackendRule.php 3 years ago BackendRule_PathTranslation.php 3 years ago Billing.php 3 years ago Billing_BillingDestination.php 3 years ago ChangeType.php 3 years ago ConfigChange.php 3 years ago Context.php 3 years ago ContextRule.php 3 years ago Control.php 3 years ago CustomHttpPattern.php 3 years ago Distribution.php 3 years ago Distribution_BucketOptions.php 3 years ago Distribution_BucketOptions_Explicit.php 3 years ago Distribution_BucketOptions_Exponential.php 3 years ago Distribution_BucketOptions_Linear.php 3 years ago Distribution_Exemplar.php 3 years ago Distribution_Range.php 3 years ago Documentation.php 3 years ago DocumentationRule.php 3 years ago Endpoint.php 3 years ago FieldBehavior.php 3 years ago Http.php 3 years ago HttpBody.php 3 years ago HttpRule.php 3 years ago LabelDescriptor.php 3 years ago LabelDescriptor_ValueType.php 3 years ago LaunchStage.php 3 years ago LogDescriptor.php 3 years ago Logging.php 3 years ago Logging_LoggingDestination.php 3 years ago Metric.php 3 years ago MetricDescriptor.php 3 years ago MetricDescriptor_MetricDescriptorMetadata.php 3 years ago MetricDescriptor_MetricKind.php 3 years ago MetricDescriptor_ValueType.php 3 years ago MetricRule.php 3 years ago MonitoredResource.php 3 years ago MonitoredResourceDescriptor.php 3 years ago MonitoredResourceMetadata.php 3 years ago Monitoring.php 3 years ago Monitoring_MonitoringDestination.php 3 years ago OAuthRequirements.php 3 years ago Page.php 3 years ago ProjectProperties.php 3 years ago Property.php 3 years ago Property_PropertyType.php 3 years ago Quota.php 3 years ago QuotaLimit.php 3 years ago ResourceDescriptor.php 3 years ago ResourceDescriptor_History.php 3 years ago ResourceReference.php 3 years ago RoutingParameter.php 3 years ago RoutingRule.php 3 years ago Service.php 3 years ago SourceInfo.php 3 years ago SystemParameter.php 3 years ago SystemParameterRule.php 3 years ago SystemParameters.php 3 years ago Usage.php 3 years ago UsageRule.php 3 years ago
Service.php
1035 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/api/service.proto
4
5 namespace Google\Api;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * `Service` is the root object of Google service configuration schema. It
13 * describes basic information about a service, such as the name and the
14 * title, and delegates other aspects to sub-sections. Each sub-section is
15 * either a proto message or a repeated proto message that configures a
16 * specific aspect, such as auth. See each proto message definition for details.
17 * Example:
18 * type: google.api.Service
19 * config_version: 3
20 * name: calendar.googleapis.com
21 * title: Google Calendar API
22 * apis:
23 * - name: google.calendar.v3.Calendar
24 * authentication:
25 * providers:
26 * - id: google_calendar_auth
27 * jwks_uri: https://www.googleapis.com/oauth2/v1/certs
28 * issuer: https://securetoken.google.com
29 * rules:
30 * - selector: "*"
31 * requirements:
32 * provider_id: google_calendar_auth
33 *
34 * Generated from protobuf message <code>google.api.Service</code>
35 */
36 class Service extends \Google\Protobuf\Internal\Message
37 {
38 /**
39 * The semantic version of the service configuration. The config version
40 * affects the interpretation of the service configuration. For example,
41 * certain features are enabled by default for certain config versions.
42 * The latest config version is `3`.
43 *
44 * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
45 */
46 private $config_version = null;
47 /**
48 * The DNS address at which this service is available,
49 * e.g. `calendar.googleapis.com`.
50 *
51 * Generated from protobuf field <code>string name = 1;</code>
52 */
53 private $name = '';
54 /**
55 * A unique ID for a specific instance of this message, typically assigned
56 * by the client for tracking purpose. If empty, the server may choose to
57 * generate one instead.
58 *
59 * Generated from protobuf field <code>string id = 33;</code>
60 */
61 private $id = '';
62 /**
63 * The product title for this service.
64 *
65 * Generated from protobuf field <code>string title = 2;</code>
66 */
67 private $title = '';
68 /**
69 * The Google project that owns this service.
70 *
71 * Generated from protobuf field <code>string producer_project_id = 22;</code>
72 */
73 private $producer_project_id = '';
74 /**
75 * A list of API interfaces exported by this service. Only the `name` field
76 * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
77 * author, as the remaining fields will be derived from the IDL during the
78 * normalization process. It is an error to specify an API interface here
79 * which cannot be resolved against the associated IDL files.
80 *
81 * Generated from protobuf field <code>repeated .google.protobuf.Api apis = 3;</code>
82 */
83 private $apis;
84 /**
85 * A list of all proto message types included in this API service.
86 * Types referenced directly or indirectly by the `apis` are
87 * automatically included. Messages which are not referenced but
88 * shall be included, such as types used by the `google.protobuf.Any` type,
89 * should be listed here by name. Example:
90 * types:
91 * - name: google.protobuf.Int32
92 *
93 * Generated from protobuf field <code>repeated .google.protobuf.Type types = 4;</code>
94 */
95 private $types;
96 /**
97 * A list of all enum types included in this API service. Enums
98 * referenced directly or indirectly by the `apis` are automatically
99 * included. Enums which are not referenced but shall be included
100 * should be listed here by name. Example:
101 * enums:
102 * - name: google.someapi.v1.SomeEnum
103 *
104 * Generated from protobuf field <code>repeated .google.protobuf.Enum enums = 5;</code>
105 */
106 private $enums;
107 /**
108 * Additional API documentation.
109 *
110 * Generated from protobuf field <code>.google.api.Documentation documentation = 6;</code>
111 */
112 private $documentation = null;
113 /**
114 * API backend configuration.
115 *
116 * Generated from protobuf field <code>.google.api.Backend backend = 8;</code>
117 */
118 private $backend = null;
119 /**
120 * HTTP configuration.
121 *
122 * Generated from protobuf field <code>.google.api.Http http = 9;</code>
123 */
124 private $http = null;
125 /**
126 * Quota configuration.
127 *
128 * Generated from protobuf field <code>.google.api.Quota quota = 10;</code>
129 */
130 private $quota = null;
131 /**
132 * Auth configuration.
133 *
134 * Generated from protobuf field <code>.google.api.Authentication authentication = 11;</code>
135 */
136 private $authentication = null;
137 /**
138 * Context configuration.
139 *
140 * Generated from protobuf field <code>.google.api.Context context = 12;</code>
141 */
142 private $context = null;
143 /**
144 * Configuration controlling usage of this service.
145 *
146 * Generated from protobuf field <code>.google.api.Usage usage = 15;</code>
147 */
148 private $usage = null;
149 /**
150 * Configuration for network endpoints. If this is empty, then an endpoint
151 * with the same name as the service is automatically generated to service all
152 * defined APIs.
153 *
154 * Generated from protobuf field <code>repeated .google.api.Endpoint endpoints = 18;</code>
155 */
156 private $endpoints;
157 /**
158 * Configuration for the service control plane.
159 *
160 * Generated from protobuf field <code>.google.api.Control control = 21;</code>
161 */
162 private $control = null;
163 /**
164 * Defines the logs used by this service.
165 *
166 * Generated from protobuf field <code>repeated .google.api.LogDescriptor logs = 23;</code>
167 */
168 private $logs;
169 /**
170 * Defines the metrics used by this service.
171 *
172 * Generated from protobuf field <code>repeated .google.api.MetricDescriptor metrics = 24;</code>
173 */
174 private $metrics;
175 /**
176 * Defines the monitored resources used by this service. This is required
177 * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
178 *
179 * Generated from protobuf field <code>repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;</code>
180 */
181 private $monitored_resources;
182 /**
183 * Billing configuration.
184 *
185 * Generated from protobuf field <code>.google.api.Billing billing = 26;</code>
186 */
187 private $billing = null;
188 /**
189 * Logging configuration.
190 *
191 * Generated from protobuf field <code>.google.api.Logging logging = 27;</code>
192 */
193 private $logging = null;
194 /**
195 * Monitoring configuration.
196 *
197 * Generated from protobuf field <code>.google.api.Monitoring monitoring = 28;</code>
198 */
199 private $monitoring = null;
200 /**
201 * System parameter configuration.
202 *
203 * Generated from protobuf field <code>.google.api.SystemParameters system_parameters = 29;</code>
204 */
205 private $system_parameters = null;
206 /**
207 * Output only. The source information for this configuration if available.
208 *
209 * Generated from protobuf field <code>.google.api.SourceInfo source_info = 37;</code>
210 */
211 private $source_info = null;
212
213 /**
214 * Constructor.
215 *
216 * @param array $data {
217 * Optional. Data for populating the Message object.
218 *
219 * @type \Google\Protobuf\UInt32Value $config_version
220 * The semantic version of the service configuration. The config version
221 * affects the interpretation of the service configuration. For example,
222 * certain features are enabled by default for certain config versions.
223 * The latest config version is `3`.
224 * @type string $name
225 * The DNS address at which this service is available,
226 * e.g. `calendar.googleapis.com`.
227 * @type string $id
228 * A unique ID for a specific instance of this message, typically assigned
229 * by the client for tracking purpose. If empty, the server may choose to
230 * generate one instead.
231 * @type string $title
232 * The product title for this service.
233 * @type string $producer_project_id
234 * The Google project that owns this service.
235 * @type \Google\Protobuf\Api[]|\Google\Protobuf\Internal\RepeatedField $apis
236 * A list of API interfaces exported by this service. Only the `name` field
237 * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
238 * author, as the remaining fields will be derived from the IDL during the
239 * normalization process. It is an error to specify an API interface here
240 * which cannot be resolved against the associated IDL files.
241 * @type \Google\Protobuf\Type[]|\Google\Protobuf\Internal\RepeatedField $types
242 * A list of all proto message types included in this API service.
243 * Types referenced directly or indirectly by the `apis` are
244 * automatically included. Messages which are not referenced but
245 * shall be included, such as types used by the `google.protobuf.Any` type,
246 * should be listed here by name. Example:
247 * types:
248 * - name: google.protobuf.Int32
249 * @type \Google\Protobuf\Enum[]|\Google\Protobuf\Internal\RepeatedField $enums
250 * A list of all enum types included in this API service. Enums
251 * referenced directly or indirectly by the `apis` are automatically
252 * included. Enums which are not referenced but shall be included
253 * should be listed here by name. Example:
254 * enums:
255 * - name: google.someapi.v1.SomeEnum
256 * @type \Google\Api\Documentation $documentation
257 * Additional API documentation.
258 * @type \Google\Api\Backend $backend
259 * API backend configuration.
260 * @type \Google\Api\Http $http
261 * HTTP configuration.
262 * @type \Google\Api\Quota $quota
263 * Quota configuration.
264 * @type \Google\Api\Authentication $authentication
265 * Auth configuration.
266 * @type \Google\Api\Context $context
267 * Context configuration.
268 * @type \Google\Api\Usage $usage
269 * Configuration controlling usage of this service.
270 * @type \Google\Api\Endpoint[]|\Google\Protobuf\Internal\RepeatedField $endpoints
271 * Configuration for network endpoints. If this is empty, then an endpoint
272 * with the same name as the service is automatically generated to service all
273 * defined APIs.
274 * @type \Google\Api\Control $control
275 * Configuration for the service control plane.
276 * @type \Google\Api\LogDescriptor[]|\Google\Protobuf\Internal\RepeatedField $logs
277 * Defines the logs used by this service.
278 * @type \Google\Api\MetricDescriptor[]|\Google\Protobuf\Internal\RepeatedField $metrics
279 * Defines the metrics used by this service.
280 * @type \Google\Api\MonitoredResourceDescriptor[]|\Google\Protobuf\Internal\RepeatedField $monitored_resources
281 * Defines the monitored resources used by this service. This is required
282 * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
283 * @type \Google\Api\Billing $billing
284 * Billing configuration.
285 * @type \Google\Api\Logging $logging
286 * Logging configuration.
287 * @type \Google\Api\Monitoring $monitoring
288 * Monitoring configuration.
289 * @type \Google\Api\SystemParameters $system_parameters
290 * System parameter configuration.
291 * @type \Google\Api\SourceInfo $source_info
292 * Output only. The source information for this configuration if available.
293 * }
294 */
295 public function __construct($data = NULL) {
296 \GPBMetadata\Google\Api\Service::initOnce();
297 parent::__construct($data);
298 }
299
300 /**
301 * The semantic version of the service configuration. The config version
302 * affects the interpretation of the service configuration. For example,
303 * certain features are enabled by default for certain config versions.
304 * The latest config version is `3`.
305 *
306 * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
307 * @return \Google\Protobuf\UInt32Value
308 */
309 public function getConfigVersion()
310 {
311 return $this->config_version;
312 }
313
314 /**
315 * Returns the unboxed value from <code>getConfigVersion()</code>
316
317 * The semantic version of the service configuration. The config version
318 * affects the interpretation of the service configuration. For example,
319 * certain features are enabled by default for certain config versions.
320 * The latest config version is `3`.
321 *
322 * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
323 * @return int|null
324 */
325 public function getConfigVersionUnwrapped()
326 {
327 $wrapper = $this->getConfigVersion();
328 return is_null($wrapper) ? null : $wrapper->getValue();
329 }
330
331 /**
332 * The semantic version of the service configuration. The config version
333 * affects the interpretation of the service configuration. For example,
334 * certain features are enabled by default for certain config versions.
335 * The latest config version is `3`.
336 *
337 * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
338 * @param \Google\Protobuf\UInt32Value $var
339 * @return $this
340 */
341 public function setConfigVersion($var)
342 {
343 GPBUtil::checkMessage($var, \Google\Protobuf\UInt32Value::class);
344 $this->config_version = $var;
345
346 return $this;
347 }
348
349 /**
350 * Sets the field by wrapping a primitive type in a Google\Protobuf\UInt32Value object.
351
352 * The semantic version of the service configuration. The config version
353 * affects the interpretation of the service configuration. For example,
354 * certain features are enabled by default for certain config versions.
355 * The latest config version is `3`.
356 *
357 * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
358 * @param int|null $var
359 * @return $this
360 */
361 public function setConfigVersionUnwrapped($var)
362 {
363 $wrappedVar = is_null($var) ? null : new \Google\Protobuf\UInt32Value(['value' => $var]);
364 return $this->setConfigVersion($wrappedVar);
365 }
366
367 /**
368 * The DNS address at which this service is available,
369 * e.g. `calendar.googleapis.com`.
370 *
371 * Generated from protobuf field <code>string name = 1;</code>
372 * @return string
373 */
374 public function getName()
375 {
376 return $this->name;
377 }
378
379 /**
380 * The DNS address at which this service is available,
381 * e.g. `calendar.googleapis.com`.
382 *
383 * Generated from protobuf field <code>string name = 1;</code>
384 * @param string $var
385 * @return $this
386 */
387 public function setName($var)
388 {
389 GPBUtil::checkString($var, True);
390 $this->name = $var;
391
392 return $this;
393 }
394
395 /**
396 * A unique ID for a specific instance of this message, typically assigned
397 * by the client for tracking purpose. If empty, the server may choose to
398 * generate one instead.
399 *
400 * Generated from protobuf field <code>string id = 33;</code>
401 * @return string
402 */
403 public function getId()
404 {
405 return $this->id;
406 }
407
408 /**
409 * A unique ID for a specific instance of this message, typically assigned
410 * by the client for tracking purpose. If empty, the server may choose to
411 * generate one instead.
412 *
413 * Generated from protobuf field <code>string id = 33;</code>
414 * @param string $var
415 * @return $this
416 */
417 public function setId($var)
418 {
419 GPBUtil::checkString($var, True);
420 $this->id = $var;
421
422 return $this;
423 }
424
425 /**
426 * The product title for this service.
427 *
428 * Generated from protobuf field <code>string title = 2;</code>
429 * @return string
430 */
431 public function getTitle()
432 {
433 return $this->title;
434 }
435
436 /**
437 * The product title for this service.
438 *
439 * Generated from protobuf field <code>string title = 2;</code>
440 * @param string $var
441 * @return $this
442 */
443 public function setTitle($var)
444 {
445 GPBUtil::checkString($var, True);
446 $this->title = $var;
447
448 return $this;
449 }
450
451 /**
452 * The Google project that owns this service.
453 *
454 * Generated from protobuf field <code>string producer_project_id = 22;</code>
455 * @return string
456 */
457 public function getProducerProjectId()
458 {
459 return $this->producer_project_id;
460 }
461
462 /**
463 * The Google project that owns this service.
464 *
465 * Generated from protobuf field <code>string producer_project_id = 22;</code>
466 * @param string $var
467 * @return $this
468 */
469 public function setProducerProjectId($var)
470 {
471 GPBUtil::checkString($var, True);
472 $this->producer_project_id = $var;
473
474 return $this;
475 }
476
477 /**
478 * A list of API interfaces exported by this service. Only the `name` field
479 * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
480 * author, as the remaining fields will be derived from the IDL during the
481 * normalization process. It is an error to specify an API interface here
482 * which cannot be resolved against the associated IDL files.
483 *
484 * Generated from protobuf field <code>repeated .google.protobuf.Api apis = 3;</code>
485 * @return \Google\Protobuf\Internal\RepeatedField
486 */
487 public function getApis()
488 {
489 return $this->apis;
490 }
491
492 /**
493 * A list of API interfaces exported by this service. Only the `name` field
494 * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
495 * author, as the remaining fields will be derived from the IDL during the
496 * normalization process. It is an error to specify an API interface here
497 * which cannot be resolved against the associated IDL files.
498 *
499 * Generated from protobuf field <code>repeated .google.protobuf.Api apis = 3;</code>
500 * @param \Google\Protobuf\Api[]|\Google\Protobuf\Internal\RepeatedField $var
501 * @return $this
502 */
503 public function setApis($var)
504 {
505 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Api::class);
506 $this->apis = $arr;
507
508 return $this;
509 }
510
511 /**
512 * A list of all proto message types included in this API service.
513 * Types referenced directly or indirectly by the `apis` are
514 * automatically included. Messages which are not referenced but
515 * shall be included, such as types used by the `google.protobuf.Any` type,
516 * should be listed here by name. Example:
517 * types:
518 * - name: google.protobuf.Int32
519 *
520 * Generated from protobuf field <code>repeated .google.protobuf.Type types = 4;</code>
521 * @return \Google\Protobuf\Internal\RepeatedField
522 */
523 public function getTypes()
524 {
525 return $this->types;
526 }
527
528 /**
529 * A list of all proto message types included in this API service.
530 * Types referenced directly or indirectly by the `apis` are
531 * automatically included. Messages which are not referenced but
532 * shall be included, such as types used by the `google.protobuf.Any` type,
533 * should be listed here by name. Example:
534 * types:
535 * - name: google.protobuf.Int32
536 *
537 * Generated from protobuf field <code>repeated .google.protobuf.Type types = 4;</code>
538 * @param \Google\Protobuf\Type[]|\Google\Protobuf\Internal\RepeatedField $var
539 * @return $this
540 */
541 public function setTypes($var)
542 {
543 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Type::class);
544 $this->types = $arr;
545
546 return $this;
547 }
548
549 /**
550 * A list of all enum types included in this API service. Enums
551 * referenced directly or indirectly by the `apis` are automatically
552 * included. Enums which are not referenced but shall be included
553 * should be listed here by name. Example:
554 * enums:
555 * - name: google.someapi.v1.SomeEnum
556 *
557 * Generated from protobuf field <code>repeated .google.protobuf.Enum enums = 5;</code>
558 * @return \Google\Protobuf\Internal\RepeatedField
559 */
560 public function getEnums()
561 {
562 return $this->enums;
563 }
564
565 /**
566 * A list of all enum types included in this API service. Enums
567 * referenced directly or indirectly by the `apis` are automatically
568 * included. Enums which are not referenced but shall be included
569 * should be listed here by name. Example:
570 * enums:
571 * - name: google.someapi.v1.SomeEnum
572 *
573 * Generated from protobuf field <code>repeated .google.protobuf.Enum enums = 5;</code>
574 * @param \Google\Protobuf\Enum[]|\Google\Protobuf\Internal\RepeatedField $var
575 * @return $this
576 */
577 public function setEnums($var)
578 {
579 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Enum::class);
580 $this->enums = $arr;
581
582 return $this;
583 }
584
585 /**
586 * Additional API documentation.
587 *
588 * Generated from protobuf field <code>.google.api.Documentation documentation = 6;</code>
589 * @return \Google\Api\Documentation
590 */
591 public function getDocumentation()
592 {
593 return $this->documentation;
594 }
595
596 /**
597 * Additional API documentation.
598 *
599 * Generated from protobuf field <code>.google.api.Documentation documentation = 6;</code>
600 * @param \Google\Api\Documentation $var
601 * @return $this
602 */
603 public function setDocumentation($var)
604 {
605 GPBUtil::checkMessage($var, \Google\Api\Documentation::class);
606 $this->documentation = $var;
607
608 return $this;
609 }
610
611 /**
612 * API backend configuration.
613 *
614 * Generated from protobuf field <code>.google.api.Backend backend = 8;</code>
615 * @return \Google\Api\Backend
616 */
617 public function getBackend()
618 {
619 return $this->backend;
620 }
621
622 /**
623 * API backend configuration.
624 *
625 * Generated from protobuf field <code>.google.api.Backend backend = 8;</code>
626 * @param \Google\Api\Backend $var
627 * @return $this
628 */
629 public function setBackend($var)
630 {
631 GPBUtil::checkMessage($var, \Google\Api\Backend::class);
632 $this->backend = $var;
633
634 return $this;
635 }
636
637 /**
638 * HTTP configuration.
639 *
640 * Generated from protobuf field <code>.google.api.Http http = 9;</code>
641 * @return \Google\Api\Http
642 */
643 public function getHttp()
644 {
645 return $this->http;
646 }
647
648 /**
649 * HTTP configuration.
650 *
651 * Generated from protobuf field <code>.google.api.Http http = 9;</code>
652 * @param \Google\Api\Http $var
653 * @return $this
654 */
655 public function setHttp($var)
656 {
657 GPBUtil::checkMessage($var, \Google\Api\Http::class);
658 $this->http = $var;
659
660 return $this;
661 }
662
663 /**
664 * Quota configuration.
665 *
666 * Generated from protobuf field <code>.google.api.Quota quota = 10;</code>
667 * @return \Google\Api\Quota
668 */
669 public function getQuota()
670 {
671 return $this->quota;
672 }
673
674 /**
675 * Quota configuration.
676 *
677 * Generated from protobuf field <code>.google.api.Quota quota = 10;</code>
678 * @param \Google\Api\Quota $var
679 * @return $this
680 */
681 public function setQuota($var)
682 {
683 GPBUtil::checkMessage($var, \Google\Api\Quota::class);
684 $this->quota = $var;
685
686 return $this;
687 }
688
689 /**
690 * Auth configuration.
691 *
692 * Generated from protobuf field <code>.google.api.Authentication authentication = 11;</code>
693 * @return \Google\Api\Authentication
694 */
695 public function getAuthentication()
696 {
697 return $this->authentication;
698 }
699
700 /**
701 * Auth configuration.
702 *
703 * Generated from protobuf field <code>.google.api.Authentication authentication = 11;</code>
704 * @param \Google\Api\Authentication $var
705 * @return $this
706 */
707 public function setAuthentication($var)
708 {
709 GPBUtil::checkMessage($var, \Google\Api\Authentication::class);
710 $this->authentication = $var;
711
712 return $this;
713 }
714
715 /**
716 * Context configuration.
717 *
718 * Generated from protobuf field <code>.google.api.Context context = 12;</code>
719 * @return \Google\Api\Context
720 */
721 public function getContext()
722 {
723 return $this->context;
724 }
725
726 /**
727 * Context configuration.
728 *
729 * Generated from protobuf field <code>.google.api.Context context = 12;</code>
730 * @param \Google\Api\Context $var
731 * @return $this
732 */
733 public function setContext($var)
734 {
735 GPBUtil::checkMessage($var, \Google\Api\Context::class);
736 $this->context = $var;
737
738 return $this;
739 }
740
741 /**
742 * Configuration controlling usage of this service.
743 *
744 * Generated from protobuf field <code>.google.api.Usage usage = 15;</code>
745 * @return \Google\Api\Usage
746 */
747 public function getUsage()
748 {
749 return $this->usage;
750 }
751
752 /**
753 * Configuration controlling usage of this service.
754 *
755 * Generated from protobuf field <code>.google.api.Usage usage = 15;</code>
756 * @param \Google\Api\Usage $var
757 * @return $this
758 */
759 public function setUsage($var)
760 {
761 GPBUtil::checkMessage($var, \Google\Api\Usage::class);
762 $this->usage = $var;
763
764 return $this;
765 }
766
767 /**
768 * Configuration for network endpoints. If this is empty, then an endpoint
769 * with the same name as the service is automatically generated to service all
770 * defined APIs.
771 *
772 * Generated from protobuf field <code>repeated .google.api.Endpoint endpoints = 18;</code>
773 * @return \Google\Protobuf\Internal\RepeatedField
774 */
775 public function getEndpoints()
776 {
777 return $this->endpoints;
778 }
779
780 /**
781 * Configuration for network endpoints. If this is empty, then an endpoint
782 * with the same name as the service is automatically generated to service all
783 * defined APIs.
784 *
785 * Generated from protobuf field <code>repeated .google.api.Endpoint endpoints = 18;</code>
786 * @param \Google\Api\Endpoint[]|\Google\Protobuf\Internal\RepeatedField $var
787 * @return $this
788 */
789 public function setEndpoints($var)
790 {
791 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Endpoint::class);
792 $this->endpoints = $arr;
793
794 return $this;
795 }
796
797 /**
798 * Configuration for the service control plane.
799 *
800 * Generated from protobuf field <code>.google.api.Control control = 21;</code>
801 * @return \Google\Api\Control
802 */
803 public function getControl()
804 {
805 return $this->control;
806 }
807
808 /**
809 * Configuration for the service control plane.
810 *
811 * Generated from protobuf field <code>.google.api.Control control = 21;</code>
812 * @param \Google\Api\Control $var
813 * @return $this
814 */
815 public function setControl($var)
816 {
817 GPBUtil::checkMessage($var, \Google\Api\Control::class);
818 $this->control = $var;
819
820 return $this;
821 }
822
823 /**
824 * Defines the logs used by this service.
825 *
826 * Generated from protobuf field <code>repeated .google.api.LogDescriptor logs = 23;</code>
827 * @return \Google\Protobuf\Internal\RepeatedField
828 */
829 public function getLogs()
830 {
831 return $this->logs;
832 }
833
834 /**
835 * Defines the logs used by this service.
836 *
837 * Generated from protobuf field <code>repeated .google.api.LogDescriptor logs = 23;</code>
838 * @param \Google\Api\LogDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var
839 * @return $this
840 */
841 public function setLogs($var)
842 {
843 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LogDescriptor::class);
844 $this->logs = $arr;
845
846 return $this;
847 }
848
849 /**
850 * Defines the metrics used by this service.
851 *
852 * Generated from protobuf field <code>repeated .google.api.MetricDescriptor metrics = 24;</code>
853 * @return \Google\Protobuf\Internal\RepeatedField
854 */
855 public function getMetrics()
856 {
857 return $this->metrics;
858 }
859
860 /**
861 * Defines the metrics used by this service.
862 *
863 * Generated from protobuf field <code>repeated .google.api.MetricDescriptor metrics = 24;</code>
864 * @param \Google\Api\MetricDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var
865 * @return $this
866 */
867 public function setMetrics($var)
868 {
869 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricDescriptor::class);
870 $this->metrics = $arr;
871
872 return $this;
873 }
874
875 /**
876 * Defines the monitored resources used by this service. This is required
877 * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
878 *
879 * Generated from protobuf field <code>repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;</code>
880 * @return \Google\Protobuf\Internal\RepeatedField
881 */
882 public function getMonitoredResources()
883 {
884 return $this->monitored_resources;
885 }
886
887 /**
888 * Defines the monitored resources used by this service. This is required
889 * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
890 *
891 * Generated from protobuf field <code>repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;</code>
892 * @param \Google\Api\MonitoredResourceDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var
893 * @return $this
894 */
895 public function setMonitoredResources($var)
896 {
897 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MonitoredResourceDescriptor::class);
898 $this->monitored_resources = $arr;
899
900 return $this;
901 }
902
903 /**
904 * Billing configuration.
905 *
906 * Generated from protobuf field <code>.google.api.Billing billing = 26;</code>
907 * @return \Google\Api\Billing
908 */
909 public function getBilling()
910 {
911 return $this->billing;
912 }
913
914 /**
915 * Billing configuration.
916 *
917 * Generated from protobuf field <code>.google.api.Billing billing = 26;</code>
918 * @param \Google\Api\Billing $var
919 * @return $this
920 */
921 public function setBilling($var)
922 {
923 GPBUtil::checkMessage($var, \Google\Api\Billing::class);
924 $this->billing = $var;
925
926 return $this;
927 }
928
929 /**
930 * Logging configuration.
931 *
932 * Generated from protobuf field <code>.google.api.Logging logging = 27;</code>
933 * @return \Google\Api\Logging
934 */
935 public function getLogging()
936 {
937 return $this->logging;
938 }
939
940 /**
941 * Logging configuration.
942 *
943 * Generated from protobuf field <code>.google.api.Logging logging = 27;</code>
944 * @param \Google\Api\Logging $var
945 * @return $this
946 */
947 public function setLogging($var)
948 {
949 GPBUtil::checkMessage($var, \Google\Api\Logging::class);
950 $this->logging = $var;
951
952 return $this;
953 }
954
955 /**
956 * Monitoring configuration.
957 *
958 * Generated from protobuf field <code>.google.api.Monitoring monitoring = 28;</code>
959 * @return \Google\Api\Monitoring
960 */
961 public function getMonitoring()
962 {
963 return $this->monitoring;
964 }
965
966 /**
967 * Monitoring configuration.
968 *
969 * Generated from protobuf field <code>.google.api.Monitoring monitoring = 28;</code>
970 * @param \Google\Api\Monitoring $var
971 * @return $this
972 */
973 public function setMonitoring($var)
974 {
975 GPBUtil::checkMessage($var, \Google\Api\Monitoring::class);
976 $this->monitoring = $var;
977
978 return $this;
979 }
980
981 /**
982 * System parameter configuration.
983 *
984 * Generated from protobuf field <code>.google.api.SystemParameters system_parameters = 29;</code>
985 * @return \Google\Api\SystemParameters
986 */
987 public function getSystemParameters()
988 {
989 return $this->system_parameters;
990 }
991
992 /**
993 * System parameter configuration.
994 *
995 * Generated from protobuf field <code>.google.api.SystemParameters system_parameters = 29;</code>
996 * @param \Google\Api\SystemParameters $var
997 * @return $this
998 */
999 public function setSystemParameters($var)
1000 {
1001 GPBUtil::checkMessage($var, \Google\Api\SystemParameters::class);
1002 $this->system_parameters = $var;
1003
1004 return $this;
1005 }
1006
1007 /**
1008 * Output only. The source information for this configuration if available.
1009 *
1010 * Generated from protobuf field <code>.google.api.SourceInfo source_info = 37;</code>
1011 * @return \Google\Api\SourceInfo
1012 */
1013 public function getSourceInfo()
1014 {
1015 return $this->source_info;
1016 }
1017
1018 /**
1019 * Output only. The source information for this configuration if available.
1020 *
1021 * Generated from protobuf field <code>.google.api.SourceInfo source_info = 37;</code>
1022 * @param \Google\Api\SourceInfo $var
1023 * @return $this
1024 */
1025 public function setSourceInfo($var)
1026 {
1027 GPBUtil::checkMessage($var, \Google\Api\SourceInfo::class);
1028 $this->source_info = $var;
1029
1030 return $this;
1031 }
1032
1033 }
1034
1035