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
Logging.php
152 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/logging.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 | * Logging configuration of the service. |
| 13 | * The following example shows how to configure logs to be sent to the |
| 14 | * producer and consumer projects. In the example, the `activity_history` |
| 15 | * log is sent to both the producer and consumer projects, whereas the |
| 16 | * `purchase_history` log is only sent to the producer project. |
| 17 | * monitored_resources: |
| 18 | * - type: library.googleapis.com/branch |
| 19 | * labels: |
| 20 | * - key: /city |
| 21 | * description: The city where the library branch is located in. |
| 22 | * - key: /name |
| 23 | * description: The name of the branch. |
| 24 | * logs: |
| 25 | * - name: activity_history |
| 26 | * labels: |
| 27 | * - key: /customer_id |
| 28 | * - name: purchase_history |
| 29 | * logging: |
| 30 | * producer_destinations: |
| 31 | * - monitored_resource: library.googleapis.com/branch |
| 32 | * logs: |
| 33 | * - activity_history |
| 34 | * - purchase_history |
| 35 | * consumer_destinations: |
| 36 | * - monitored_resource: library.googleapis.com/branch |
| 37 | * logs: |
| 38 | * - activity_history |
| 39 | * |
| 40 | * Generated from protobuf message <code>google.api.Logging</code> |
| 41 | */ |
| 42 | class Logging extends \Google\Protobuf\Internal\Message |
| 43 | { |
| 44 | /** |
| 45 | * Logging configurations for sending logs to the producer project. |
| 46 | * There can be multiple producer destinations, each one must have a |
| 47 | * different monitored resource type. A log can be used in at most |
| 48 | * one producer destination. |
| 49 | * |
| 50 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code> |
| 51 | */ |
| 52 | private $producer_destinations; |
| 53 | /** |
| 54 | * Logging configurations for sending logs to the consumer project. |
| 55 | * There can be multiple consumer destinations, each one must have a |
| 56 | * different monitored resource type. A log can be used in at most |
| 57 | * one consumer destination. |
| 58 | * |
| 59 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code> |
| 60 | */ |
| 61 | private $consumer_destinations; |
| 62 | |
| 63 | /** |
| 64 | * Constructor. |
| 65 | * |
| 66 | * @param array $data { |
| 67 | * Optional. Data for populating the Message object. |
| 68 | * |
| 69 | * @type \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $producer_destinations |
| 70 | * Logging configurations for sending logs to the producer project. |
| 71 | * There can be multiple producer destinations, each one must have a |
| 72 | * different monitored resource type. A log can be used in at most |
| 73 | * one producer destination. |
| 74 | * @type \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $consumer_destinations |
| 75 | * Logging configurations for sending logs to the consumer project. |
| 76 | * There can be multiple consumer destinations, each one must have a |
| 77 | * different monitored resource type. A log can be used in at most |
| 78 | * one consumer destination. |
| 79 | * } |
| 80 | */ |
| 81 | public function __construct($data = NULL) { |
| 82 | \GPBMetadata\Google\Api\Logging::initOnce(); |
| 83 | parent::__construct($data); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Logging configurations for sending logs to the producer project. |
| 88 | * There can be multiple producer destinations, each one must have a |
| 89 | * different monitored resource type. A log can be used in at most |
| 90 | * one producer destination. |
| 91 | * |
| 92 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code> |
| 93 | * @return \Google\Protobuf\Internal\RepeatedField |
| 94 | */ |
| 95 | public function getProducerDestinations() |
| 96 | { |
| 97 | return $this->producer_destinations; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Logging configurations for sending logs to the producer project. |
| 102 | * There can be multiple producer destinations, each one must have a |
| 103 | * different monitored resource type. A log can be used in at most |
| 104 | * one producer destination. |
| 105 | * |
| 106 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code> |
| 107 | * @param \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $var |
| 108 | * @return $this |
| 109 | */ |
| 110 | public function setProducerDestinations($var) |
| 111 | { |
| 112 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); |
| 113 | $this->producer_destinations = $arr; |
| 114 | |
| 115 | return $this; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Logging configurations for sending logs to the consumer project. |
| 120 | * There can be multiple consumer destinations, each one must have a |
| 121 | * different monitored resource type. A log can be used in at most |
| 122 | * one consumer destination. |
| 123 | * |
| 124 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code> |
| 125 | * @return \Google\Protobuf\Internal\RepeatedField |
| 126 | */ |
| 127 | public function getConsumerDestinations() |
| 128 | { |
| 129 | return $this->consumer_destinations; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Logging configurations for sending logs to the consumer project. |
| 134 | * There can be multiple consumer destinations, each one must have a |
| 135 | * different monitored resource type. A log can be used in at most |
| 136 | * one consumer destination. |
| 137 | * |
| 138 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code> |
| 139 | * @param \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $var |
| 140 | * @return $this |
| 141 | */ |
| 142 | public function setConsumerDestinations($var) |
| 143 | { |
| 144 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); |
| 145 | $this->consumer_destinations = $arr; |
| 146 | |
| 147 | return $this; |
| 148 | } |
| 149 | |
| 150 | } |
| 151 | |
| 152 |