<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/api/service.proto

namespace Google\Api;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * `Service` is the root object of Google API service configuration (service
 * config). It describes the basic information about a logical service,
 * such as the service name and the user-facing title, and delegates other
 * aspects to sub-sections. Each sub-section is either a proto message or a
 * repeated proto message that configures a specific aspect, such as auth.
 * For more information, see each proto message definition.
 * Example:
 *     type: google.api.Service
 *     name: calendar.googleapis.com
 *     title: Google Calendar API
 *     apis:
 *     - name: google.calendar.v3.Calendar
 *     visibility:
 *       rules:
 *       - selector: "google.calendar.v3.*"
 *         restriction: PREVIEW
 *     backend:
 *       rules:
 *       - selector: "google.calendar.v3.*"
 *         address: calendar.example.com
 *     authentication:
 *       providers:
 *       - id: google_calendar_auth
 *         jwks_uri: https://www.googleapis.com/oauth2/v1/certs
 *         issuer: https://securetoken.google.com
 *       rules:
 *       - selector: "*"
 *         requirements:
 *           provider_id: google_calendar_auth
 *
 * Generated from protobuf message <code>google.api.Service</code>
 */
class Service extends \Google\Protobuf\Internal\Message
{
    /**
     * The service name, which is a DNS-like logical identifier for the
     * service, such as `calendar.googleapis.com`. The service name
     * typically goes through DNS verification to make sure the owner
     * of the service also owns the DNS name.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * The product title for this service, it is the name displayed in Google
     * Cloud Console.
     *
     * Generated from protobuf field <code>string title = 2;</code>
     */
    protected $title = '';
    /**
     * The Google project that owns this service.
     *
     * Generated from protobuf field <code>string producer_project_id = 22;</code>
     */
    protected $producer_project_id = '';
    /**
     * A unique ID for a specific instance of this message, typically assigned
     * by the client for tracking purpose. Must be no longer than 63 characters
     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
     * empty, the server may choose to generate one instead.
     *
     * Generated from protobuf field <code>string id = 33;</code>
     */
    protected $id = '';
    /**
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by
     * the configuration author, as the remaining fields will be derived from the
     * IDL during the normalization process. It is an error to specify an API
     * interface here which cannot be resolved against the associated IDL files.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Api apis = 3;</code>
     */
    private $apis;
    /**
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are automatically
     * included.  Messages which are not referenced but shall be included, such as
     * types used by the `google.protobuf.Any` type, should be listed here by
     * name by the configuration author. Example:
     *     types:
     *     - name: google.protobuf.Int32
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Type types = 4;</code>
     */
    private $types;
    /**
     * A list of all enum types included in this API service.  Enums referenced
     * directly or indirectly by the `apis` are automatically included.  Enums
     * which are not referenced but shall be included should be listed here by
     * name by the configuration author. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Enum enums = 5;</code>
     */
    private $enums;
    /**
     * Additional API documentation.
     *
     * Generated from protobuf field <code>.google.api.Documentation documentation = 6;</code>
     */
    protected $documentation = null;
    /**
     * API backend configuration.
     *
     * Generated from protobuf field <code>.google.api.Backend backend = 8;</code>
     */
    protected $backend = null;
    /**
     * HTTP configuration.
     *
     * Generated from protobuf field <code>.google.api.Http http = 9;</code>
     */
    protected $http = null;
    /**
     * Quota configuration.
     *
     * Generated from protobuf field <code>.google.api.Quota quota = 10;</code>
     */
    protected $quota = null;
    /**
     * Auth configuration.
     *
     * Generated from protobuf field <code>.google.api.Authentication authentication = 11;</code>
     */
    protected $authentication = null;
    /**
     * Context configuration.
     *
     * Generated from protobuf field <code>.google.api.Context context = 12;</code>
     */
    protected $context = null;
    /**
     * Configuration controlling usage of this service.
     *
     * Generated from protobuf field <code>.google.api.Usage usage = 15;</code>
     */
    protected $usage = null;
    /**
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     *
     * Generated from protobuf field <code>repeated .google.api.Endpoint endpoints = 18;</code>
     */
    private $endpoints;
    /**
     * Configuration for the service control plane.
     *
     * Generated from protobuf field <code>.google.api.Control control = 21;</code>
     */
    protected $control = null;
    /**
     * Defines the logs used by this service.
     *
     * Generated from protobuf field <code>repeated .google.api.LogDescriptor logs = 23;</code>
     */
    private $logs;
    /**
     * Defines the metrics used by this service.
     *
     * Generated from protobuf field <code>repeated .google.api.MetricDescriptor metrics = 24;</code>
     */
    private $metrics;
    /**
     * Defines the monitored resources used by this service. This is required
     * by the `Service.monitoring` and `Service.logging` configurations.
     *
     * Generated from protobuf field <code>repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;</code>
     */
    private $monitored_resources;
    /**
     * Billing configuration.
     *
     * Generated from protobuf field <code>.google.api.Billing billing = 26;</code>
     */
    protected $billing = null;
    /**
     * Logging configuration.
     *
     * Generated from protobuf field <code>.google.api.Logging logging = 27;</code>
     */
    protected $logging = null;
    /**
     * Monitoring configuration.
     *
     * Generated from protobuf field <code>.google.api.Monitoring monitoring = 28;</code>
     */
    protected $monitoring = null;
    /**
     * System parameter configuration.
     *
     * Generated from protobuf field <code>.google.api.SystemParameters system_parameters = 29;</code>
     */
    protected $system_parameters = null;
    /**
     * Output only. The source information for this configuration if available.
     *
     * Generated from protobuf field <code>.google.api.SourceInfo source_info = 37;</code>
     */
    protected $source_info = null;
    /**
     * Settings for [Google Cloud Client
     * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
     * generated from APIs defined as protocol buffers.
     *
     * Generated from protobuf field <code>.google.api.Publishing publishing = 45;</code>
     */
    protected $publishing = null;
    /**
     * Obsolete. Do not use.
     * This field has no semantic meaning. The service config compiler always
     * sets this field to `3`.
     *
     * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
     */
    protected $config_version = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The service name, which is a DNS-like logical identifier for the
     *           service, such as `calendar.googleapis.com`. The service name
     *           typically goes through DNS verification to make sure the owner
     *           of the service also owns the DNS name.
     *     @type string $title
     *           The product title for this service, it is the name displayed in Google
     *           Cloud Console.
     *     @type string $producer_project_id
     *           The Google project that owns this service.
     *     @type string $id
     *           A unique ID for a specific instance of this message, typically assigned
     *           by the client for tracking purpose. Must be no longer than 63 characters
     *           and only lower case letters, digits, '.', '_' and '-' are allowed. If
     *           empty, the server may choose to generate one instead.
     *     @type \Google\Protobuf\Api[] $apis
     *           A list of API interfaces exported by this service. Only the `name` field
     *           of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by
     *           the configuration author, as the remaining fields will be derived from the
     *           IDL during the normalization process. It is an error to specify an API
     *           interface here which cannot be resolved against the associated IDL files.
     *     @type \Google\Protobuf\Type[] $types
     *           A list of all proto message types included in this API service.
     *           Types referenced directly or indirectly by the `apis` are automatically
     *           included.  Messages which are not referenced but shall be included, such as
     *           types used by the `google.protobuf.Any` type, should be listed here by
     *           name by the configuration author. Example:
     *               types:
     *               - name: google.protobuf.Int32
     *     @type \Google\Protobuf\Enum[] $enums
     *           A list of all enum types included in this API service.  Enums referenced
     *           directly or indirectly by the `apis` are automatically included.  Enums
     *           which are not referenced but shall be included should be listed here by
     *           name by the configuration author. Example:
     *               enums:
     *               - name: google.someapi.v1.SomeEnum
     *     @type \Google\Api\Documentation $documentation
     *           Additional API documentation.
     *     @type \Google\Api\Backend $backend
     *           API backend configuration.
     *     @type \Google\Api\Http $http
     *           HTTP configuration.
     *     @type \Google\Api\Quota $quota
     *           Quota configuration.
     *     @type \Google\Api\Authentication $authentication
     *           Auth configuration.
     *     @type \Google\Api\Context $context
     *           Context configuration.
     *     @type \Google\Api\Usage $usage
     *           Configuration controlling usage of this service.
     *     @type \Google\Api\Endpoint[] $endpoints
     *           Configuration for network endpoints.  If this is empty, then an endpoint
     *           with the same name as the service is automatically generated to service all
     *           defined APIs.
     *     @type \Google\Api\Control $control
     *           Configuration for the service control plane.
     *     @type \Google\Api\LogDescriptor[] $logs
     *           Defines the logs used by this service.
     *     @type \Google\Api\MetricDescriptor[] $metrics
     *           Defines the metrics used by this service.
     *     @type \Google\Api\MonitoredResourceDescriptor[] $monitored_resources
     *           Defines the monitored resources used by this service. This is required
     *           by the `Service.monitoring` and `Service.logging` configurations.
     *     @type \Google\Api\Billing $billing
     *           Billing configuration.
     *     @type \Google\Api\Logging $logging
     *           Logging configuration.
     *     @type \Google\Api\Monitoring $monitoring
     *           Monitoring configuration.
     *     @type \Google\Api\SystemParameters $system_parameters
     *           System parameter configuration.
     *     @type \Google\Api\SourceInfo $source_info
     *           Output only. The source information for this configuration if available.
     *     @type \Google\Api\Publishing $publishing
     *           Settings for [Google Cloud Client
     *           libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
     *           generated from APIs defined as protocol buffers.
     *     @type \Google\Protobuf\UInt32Value $config_version
     *           Obsolete. Do not use.
     *           This field has no semantic meaning. The service config compiler always
     *           sets this field to `3`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Api\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * The service name, which is a DNS-like logical identifier for the
     * service, such as `calendar.googleapis.com`. The service name
     * typically goes through DNS verification to make sure the owner
     * of the service also owns the DNS name.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The service name, which is a DNS-like logical identifier for the
     * service, such as `calendar.googleapis.com`. The service name
     * typically goes through DNS verification to make sure the owner
     * of the service also owns the DNS name.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The product title for this service, it is the name displayed in Google
     * Cloud Console.
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * The product title for this service, it is the name displayed in Google
     * Cloud Console.
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * The Google project that owns this service.
     *
     * Generated from protobuf field <code>string producer_project_id = 22;</code>
     * @return string
     */
    public function getProducerProjectId()
    {
        return $this->producer_project_id;
    }

    /**
     * The Google project that owns this service.
     *
     * Generated from protobuf field <code>string producer_project_id = 22;</code>
     * @param string $var
     * @return $this
     */
    public function setProducerProjectId($var)
    {
        GPBUtil::checkString($var, True);
        $this->producer_project_id = $var;

        return $this;
    }

    /**
     * A unique ID for a specific instance of this message, typically assigned
     * by the client for tracking purpose. Must be no longer than 63 characters
     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
     * empty, the server may choose to generate one instead.
     *
     * Generated from protobuf field <code>string id = 33;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * A unique ID for a specific instance of this message, typically assigned
     * by the client for tracking purpose. Must be no longer than 63 characters
     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
     * empty, the server may choose to generate one instead.
     *
     * Generated from protobuf field <code>string id = 33;</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $var;

        return $this;
    }

    /**
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by
     * the configuration author, as the remaining fields will be derived from the
     * IDL during the normalization process. It is an error to specify an API
     * interface here which cannot be resolved against the associated IDL files.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Api apis = 3;</code>
     * @return RepeatedField<\Google\Protobuf\Api>
     */
    public function getApis()
    {
        return $this->apis;
    }

    /**
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by
     * the configuration author, as the remaining fields will be derived from the
     * IDL during the normalization process. It is an error to specify an API
     * interface here which cannot be resolved against the associated IDL files.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Api apis = 3;</code>
     * @param \Google\Protobuf\Api[] $var
     * @return $this
     */
    public function setApis($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Api::class);
        $this->apis = $arr;

        return $this;
    }

    /**
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are automatically
     * included.  Messages which are not referenced but shall be included, such as
     * types used by the `google.protobuf.Any` type, should be listed here by
     * name by the configuration author. Example:
     *     types:
     *     - name: google.protobuf.Int32
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Type types = 4;</code>
     * @return RepeatedField<\Google\Protobuf\Type>
     */
    public function getTypes()
    {
        return $this->types;
    }

    /**
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are automatically
     * included.  Messages which are not referenced but shall be included, such as
     * types used by the `google.protobuf.Any` type, should be listed here by
     * name by the configuration author. Example:
     *     types:
     *     - name: google.protobuf.Int32
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Type types = 4;</code>
     * @param \Google\Protobuf\Type[] $var
     * @return $this
     */
    public function setTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Type::class);
        $this->types = $arr;

        return $this;
    }

    /**
     * A list of all enum types included in this API service.  Enums referenced
     * directly or indirectly by the `apis` are automatically included.  Enums
     * which are not referenced but shall be included should be listed here by
     * name by the configuration author. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Enum enums = 5;</code>
     * @return RepeatedField<\Google\Protobuf\Enum>
     */
    public function getEnums()
    {
        return $this->enums;
    }

    /**
     * A list of all enum types included in this API service.  Enums referenced
     * directly or indirectly by the `apis` are automatically included.  Enums
     * which are not referenced but shall be included should be listed here by
     * name by the configuration author. Example:
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Enum enums = 5;</code>
     * @param \Google\Protobuf\Enum[] $var
     * @return $this
     */
    public function setEnums($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Enum::class);
        $this->enums = $arr;

        return $this;
    }

    /**
     * Additional API documentation.
     *
     * Generated from protobuf field <code>.google.api.Documentation documentation = 6;</code>
     * @return \Google\Api\Documentation|null
     */
    public function getDocumentation()
    {
        return $this->documentation;
    }

    public function hasDocumentation()
    {
        return isset($this->documentation);
    }

    public function clearDocumentation()
    {
        unset($this->documentation);
    }

    /**
     * Additional API documentation.
     *
     * Generated from protobuf field <code>.google.api.Documentation documentation = 6;</code>
     * @param \Google\Api\Documentation $var
     * @return $this
     */
    public function setDocumentation($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Documentation::class);
        $this->documentation = $var;

        return $this;
    }

    /**
     * API backend configuration.
     *
     * Generated from protobuf field <code>.google.api.Backend backend = 8;</code>
     * @return \Google\Api\Backend|null
     */
    public function getBackend()
    {
        return $this->backend;
    }

    public function hasBackend()
    {
        return isset($this->backend);
    }

    public function clearBackend()
    {
        unset($this->backend);
    }

    /**
     * API backend configuration.
     *
     * Generated from protobuf field <code>.google.api.Backend backend = 8;</code>
     * @param \Google\Api\Backend $var
     * @return $this
     */
    public function setBackend($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Backend::class);
        $this->backend = $var;

        return $this;
    }

    /**
     * HTTP configuration.
     *
     * Generated from protobuf field <code>.google.api.Http http = 9;</code>
     * @return \Google\Api\Http|null
     */
    public function getHttp()
    {
        return $this->http;
    }

    public function hasHttp()
    {
        return isset($this->http);
    }

    public function clearHttp()
    {
        unset($this->http);
    }

    /**
     * HTTP configuration.
     *
     * Generated from protobuf field <code>.google.api.Http http = 9;</code>
     * @param \Google\Api\Http $var
     * @return $this
     */
    public function setHttp($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Http::class);
        $this->http = $var;

        return $this;
    }

    /**
     * Quota configuration.
     *
     * Generated from protobuf field <code>.google.api.Quota quota = 10;</code>
     * @return \Google\Api\Quota|null
     */
    public function getQuota()
    {
        return $this->quota;
    }

    public function hasQuota()
    {
        return isset($this->quota);
    }

    public function clearQuota()
    {
        unset($this->quota);
    }

    /**
     * Quota configuration.
     *
     * Generated from protobuf field <code>.google.api.Quota quota = 10;</code>
     * @param \Google\Api\Quota $var
     * @return $this
     */
    public function setQuota($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Quota::class);
        $this->quota = $var;

        return $this;
    }

    /**
     * Auth configuration.
     *
     * Generated from protobuf field <code>.google.api.Authentication authentication = 11;</code>
     * @return \Google\Api\Authentication|null
     */
    public function getAuthentication()
    {
        return $this->authentication;
    }

    public function hasAuthentication()
    {
        return isset($this->authentication);
    }

    public function clearAuthentication()
    {
        unset($this->authentication);
    }

    /**
     * Auth configuration.
     *
     * Generated from protobuf field <code>.google.api.Authentication authentication = 11;</code>
     * @param \Google\Api\Authentication $var
     * @return $this
     */
    public function setAuthentication($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Authentication::class);
        $this->authentication = $var;

        return $this;
    }

    /**
     * Context configuration.
     *
     * Generated from protobuf field <code>.google.api.Context context = 12;</code>
     * @return \Google\Api\Context|null
     */
    public function getContext()
    {
        return $this->context;
    }

    public function hasContext()
    {
        return isset($this->context);
    }

    public function clearContext()
    {
        unset($this->context);
    }

    /**
     * Context configuration.
     *
     * Generated from protobuf field <code>.google.api.Context context = 12;</code>
     * @param \Google\Api\Context $var
     * @return $this
     */
    public function setContext($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Context::class);
        $this->context = $var;

        return $this;
    }

    /**
     * Configuration controlling usage of this service.
     *
     * Generated from protobuf field <code>.google.api.Usage usage = 15;</code>
     * @return \Google\Api\Usage|null
     */
    public function getUsage()
    {
        return $this->usage;
    }

    public function hasUsage()
    {
        return isset($this->usage);
    }

    public function clearUsage()
    {
        unset($this->usage);
    }

    /**
     * Configuration controlling usage of this service.
     *
     * Generated from protobuf field <code>.google.api.Usage usage = 15;</code>
     * @param \Google\Api\Usage $var
     * @return $this
     */
    public function setUsage($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Usage::class);
        $this->usage = $var;

        return $this;
    }

    /**
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     *
     * Generated from protobuf field <code>repeated .google.api.Endpoint endpoints = 18;</code>
     * @return RepeatedField<\Google\Api\Endpoint>
     */
    public function getEndpoints()
    {
        return $this->endpoints;
    }

    /**
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     *
     * Generated from protobuf field <code>repeated .google.api.Endpoint endpoints = 18;</code>
     * @param \Google\Api\Endpoint[] $var
     * @return $this
     */
    public function setEndpoints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Endpoint::class);
        $this->endpoints = $arr;

        return $this;
    }

    /**
     * Configuration for the service control plane.
     *
     * Generated from protobuf field <code>.google.api.Control control = 21;</code>
     * @return \Google\Api\Control|null
     */
    public function getControl()
    {
        return $this->control;
    }

    public function hasControl()
    {
        return isset($this->control);
    }

    public function clearControl()
    {
        unset($this->control);
    }

    /**
     * Configuration for the service control plane.
     *
     * Generated from protobuf field <code>.google.api.Control control = 21;</code>
     * @param \Google\Api\Control $var
     * @return $this
     */
    public function setControl($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Control::class);
        $this->control = $var;

        return $this;
    }

    /**
     * Defines the logs used by this service.
     *
     * Generated from protobuf field <code>repeated .google.api.LogDescriptor logs = 23;</code>
     * @return RepeatedField<\Google\Api\LogDescriptor>
     */
    public function getLogs()
    {
        return $this->logs;
    }

    /**
     * Defines the logs used by this service.
     *
     * Generated from protobuf field <code>repeated .google.api.LogDescriptor logs = 23;</code>
     * @param \Google\Api\LogDescriptor[] $var
     * @return $this
     */
    public function setLogs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LogDescriptor::class);
        $this->logs = $arr;

        return $this;
    }

    /**
     * Defines the metrics used by this service.
     *
     * Generated from protobuf field <code>repeated .google.api.MetricDescriptor metrics = 24;</code>
     * @return RepeatedField<\Google\Api\MetricDescriptor>
     */
    public function getMetrics()
    {
        return $this->metrics;
    }

    /**
     * Defines the metrics used by this service.
     *
     * Generated from protobuf field <code>repeated .google.api.MetricDescriptor metrics = 24;</code>
     * @param \Google\Api\MetricDescriptor[] $var
     * @return $this
     */
    public function setMetrics($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricDescriptor::class);
        $this->metrics = $arr;

        return $this;
    }

    /**
     * Defines the monitored resources used by this service. This is required
     * by the `Service.monitoring` and `Service.logging` configurations.
     *
     * Generated from protobuf field <code>repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;</code>
     * @return RepeatedField<\Google\Api\MonitoredResourceDescriptor>
     */
    public function getMonitoredResources()
    {
        return $this->monitored_resources;
    }

    /**
     * Defines the monitored resources used by this service. This is required
     * by the `Service.monitoring` and `Service.logging` configurations.
     *
     * Generated from protobuf field <code>repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;</code>
     * @param \Google\Api\MonitoredResourceDescriptor[] $var
     * @return $this
     */
    public function setMonitoredResources($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MonitoredResourceDescriptor::class);
        $this->monitored_resources = $arr;

        return $this;
    }

    /**
     * Billing configuration.
     *
     * Generated from protobuf field <code>.google.api.Billing billing = 26;</code>
     * @return \Google\Api\Billing|null
     */
    public function getBilling()
    {
        return $this->billing;
    }

    public function hasBilling()
    {
        return isset($this->billing);
    }

    public function clearBilling()
    {
        unset($this->billing);
    }

    /**
     * Billing configuration.
     *
     * Generated from protobuf field <code>.google.api.Billing billing = 26;</code>
     * @param \Google\Api\Billing $var
     * @return $this
     */
    public function setBilling($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Billing::class);
        $this->billing = $var;

        return $this;
    }

    /**
     * Logging configuration.
     *
     * Generated from protobuf field <code>.google.api.Logging logging = 27;</code>
     * @return \Google\Api\Logging|null
     */
    public function getLogging()
    {
        return $this->logging;
    }

    public function hasLogging()
    {
        return isset($this->logging);
    }

    public function clearLogging()
    {
        unset($this->logging);
    }

    /**
     * Logging configuration.
     *
     * Generated from protobuf field <code>.google.api.Logging logging = 27;</code>
     * @param \Google\Api\Logging $var
     * @return $this
     */
    public function setLogging($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Logging::class);
        $this->logging = $var;

        return $this;
    }

    /**
     * Monitoring configuration.
     *
     * Generated from protobuf field <code>.google.api.Monitoring monitoring = 28;</code>
     * @return \Google\Api\Monitoring|null
     */
    public function getMonitoring()
    {
        return $this->monitoring;
    }

    public function hasMonitoring()
    {
        return isset($this->monitoring);
    }

    public function clearMonitoring()
    {
        unset($this->monitoring);
    }

    /**
     * Monitoring configuration.
     *
     * Generated from protobuf field <code>.google.api.Monitoring monitoring = 28;</code>
     * @param \Google\Api\Monitoring $var
     * @return $this
     */
    public function setMonitoring($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Monitoring::class);
        $this->monitoring = $var;

        return $this;
    }

    /**
     * System parameter configuration.
     *
     * Generated from protobuf field <code>.google.api.SystemParameters system_parameters = 29;</code>
     * @return \Google\Api\SystemParameters|null
     */
    public function getSystemParameters()
    {
        return $this->system_parameters;
    }

    public function hasSystemParameters()
    {
        return isset($this->system_parameters);
    }

    public function clearSystemParameters()
    {
        unset($this->system_parameters);
    }

    /**
     * System parameter configuration.
     *
     * Generated from protobuf field <code>.google.api.SystemParameters system_parameters = 29;</code>
     * @param \Google\Api\SystemParameters $var
     * @return $this
     */
    public function setSystemParameters($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\SystemParameters::class);
        $this->system_parameters = $var;

        return $this;
    }

    /**
     * Output only. The source information for this configuration if available.
     *
     * Generated from protobuf field <code>.google.api.SourceInfo source_info = 37;</code>
     * @return \Google\Api\SourceInfo|null
     */
    public function getSourceInfo()
    {
        return $this->source_info;
    }

    public function hasSourceInfo()
    {
        return isset($this->source_info);
    }

    public function clearSourceInfo()
    {
        unset($this->source_info);
    }

    /**
     * Output only. The source information for this configuration if available.
     *
     * Generated from protobuf field <code>.google.api.SourceInfo source_info = 37;</code>
     * @param \Google\Api\SourceInfo $var
     * @return $this
     */
    public function setSourceInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\SourceInfo::class);
        $this->source_info = $var;

        return $this;
    }

    /**
     * Settings for [Google Cloud Client
     * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
     * generated from APIs defined as protocol buffers.
     *
     * Generated from protobuf field <code>.google.api.Publishing publishing = 45;</code>
     * @return \Google\Api\Publishing|null
     */
    public function getPublishing()
    {
        return $this->publishing;
    }

    public function hasPublishing()
    {
        return isset($this->publishing);
    }

    public function clearPublishing()
    {
        unset($this->publishing);
    }

    /**
     * Settings for [Google Cloud Client
     * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
     * generated from APIs defined as protocol buffers.
     *
     * Generated from protobuf field <code>.google.api.Publishing publishing = 45;</code>
     * @param \Google\Api\Publishing $var
     * @return $this
     */
    public function setPublishing($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Publishing::class);
        $this->publishing = $var;

        return $this;
    }

    /**
     * Obsolete. Do not use.
     * This field has no semantic meaning. The service config compiler always
     * sets this field to `3`.
     *
     * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
     * @return \Google\Protobuf\UInt32Value|null
     */
    public function getConfigVersion()
    {
        return $this->config_version;
    }

    public function hasConfigVersion()
    {
        return isset($this->config_version);
    }

    public function clearConfigVersion()
    {
        unset($this->config_version);
    }

    /**
     * Returns the unboxed value from <code>getConfigVersion()</code>

     * Obsolete. Do not use.
     * This field has no semantic meaning. The service config compiler always
     * sets this field to `3`.
     *
     * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
     * @return int|null
     */
    public function getConfigVersionUnwrapped()
    {
        return $this->readWrapperValue("config_version");
    }

    /**
     * Obsolete. Do not use.
     * This field has no semantic meaning. The service config compiler always
     * sets this field to `3`.
     *
     * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
     * @param \Google\Protobuf\UInt32Value $var
     * @return $this
     */
    public function setConfigVersion($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\UInt32Value::class);
        $this->config_version = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\UInt32Value object.

     * Obsolete. Do not use.
     * This field has no semantic meaning. The service config compiler always
     * sets this field to `3`.
     *
     * Generated from protobuf field <code>.google.protobuf.UInt32Value config_version = 20;</code>
     * @param int|null $var
     * @return $this
     */
    public function setConfigVersionUnwrapped($var)
    {
        $this->writeWrapperValue("config_version", $var);
        return $this;}

}

