googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
ConfigChange.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
ConfigChange.php
252 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/config_change.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 | * Output generated from semantically comparing two versions of a service |
| 13 | * configuration. |
| 14 | * Includes detailed information about a field that have changed with |
| 15 | * applicable advice about potential consequences for the change, such as |
| 16 | * backwards-incompatibility. |
| 17 | * |
| 18 | * Generated from protobuf message <code>google.api.ConfigChange</code> |
| 19 | */ |
| 20 | class ConfigChange extends \Google\Protobuf\Internal\Message |
| 21 | { |
| 22 | /** |
| 23 | * Object hierarchy path to the change, with levels separated by a '.' |
| 24 | * character. For repeated fields, an applicable unique identifier field is |
| 25 | * used for the index (usually selector, name, or id). For maps, the term |
| 26 | * 'key' is used. If the field has no unique identifier, the numeric index |
| 27 | * is used. |
| 28 | * Examples: |
| 29 | * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction |
| 30 | * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value |
| 31 | * - logging.producer_destinations[0] |
| 32 | * |
| 33 | * Generated from protobuf field <code>string element = 1;</code> |
| 34 | */ |
| 35 | private $element = ''; |
| 36 | /** |
| 37 | * Value of the changed object in the old Service configuration, |
| 38 | * in JSON format. This field will not be populated if ChangeType == ADDED. |
| 39 | * |
| 40 | * Generated from protobuf field <code>string old_value = 2;</code> |
| 41 | */ |
| 42 | private $old_value = ''; |
| 43 | /** |
| 44 | * Value of the changed object in the new Service configuration, |
| 45 | * in JSON format. This field will not be populated if ChangeType == REMOVED. |
| 46 | * |
| 47 | * Generated from protobuf field <code>string new_value = 3;</code> |
| 48 | */ |
| 49 | private $new_value = ''; |
| 50 | /** |
| 51 | * The type for this change, either ADDED, REMOVED, or MODIFIED. |
| 52 | * |
| 53 | * Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code> |
| 54 | */ |
| 55 | private $change_type = 0; |
| 56 | /** |
| 57 | * Collection of advice provided for this change, useful for determining the |
| 58 | * possible impact of this change. |
| 59 | * |
| 60 | * Generated from protobuf field <code>repeated .google.api.Advice advices = 5;</code> |
| 61 | */ |
| 62 | private $advices; |
| 63 | |
| 64 | /** |
| 65 | * Constructor. |
| 66 | * |
| 67 | * @param array $data { |
| 68 | * Optional. Data for populating the Message object. |
| 69 | * |
| 70 | * @type string $element |
| 71 | * Object hierarchy path to the change, with levels separated by a '.' |
| 72 | * character. For repeated fields, an applicable unique identifier field is |
| 73 | * used for the index (usually selector, name, or id). For maps, the term |
| 74 | * 'key' is used. If the field has no unique identifier, the numeric index |
| 75 | * is used. |
| 76 | * Examples: |
| 77 | * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction |
| 78 | * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value |
| 79 | * - logging.producer_destinations[0] |
| 80 | * @type string $old_value |
| 81 | * Value of the changed object in the old Service configuration, |
| 82 | * in JSON format. This field will not be populated if ChangeType == ADDED. |
| 83 | * @type string $new_value |
| 84 | * Value of the changed object in the new Service configuration, |
| 85 | * in JSON format. This field will not be populated if ChangeType == REMOVED. |
| 86 | * @type int $change_type |
| 87 | * The type for this change, either ADDED, REMOVED, or MODIFIED. |
| 88 | * @type \Google\Api\Advice[]|\Google\Protobuf\Internal\RepeatedField $advices |
| 89 | * Collection of advice provided for this change, useful for determining the |
| 90 | * possible impact of this change. |
| 91 | * } |
| 92 | */ |
| 93 | public function __construct($data = NULL) { |
| 94 | \GPBMetadata\Google\Api\ConfigChange::initOnce(); |
| 95 | parent::__construct($data); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Object hierarchy path to the change, with levels separated by a '.' |
| 100 | * character. For repeated fields, an applicable unique identifier field is |
| 101 | * used for the index (usually selector, name, or id). For maps, the term |
| 102 | * 'key' is used. If the field has no unique identifier, the numeric index |
| 103 | * is used. |
| 104 | * Examples: |
| 105 | * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction |
| 106 | * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value |
| 107 | * - logging.producer_destinations[0] |
| 108 | * |
| 109 | * Generated from protobuf field <code>string element = 1;</code> |
| 110 | * @return string |
| 111 | */ |
| 112 | public function getElement() |
| 113 | { |
| 114 | return $this->element; |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Object hierarchy path to the change, with levels separated by a '.' |
| 119 | * character. For repeated fields, an applicable unique identifier field is |
| 120 | * used for the index (usually selector, name, or id). For maps, the term |
| 121 | * 'key' is used. If the field has no unique identifier, the numeric index |
| 122 | * is used. |
| 123 | * Examples: |
| 124 | * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction |
| 125 | * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value |
| 126 | * - logging.producer_destinations[0] |
| 127 | * |
| 128 | * Generated from protobuf field <code>string element = 1;</code> |
| 129 | * @param string $var |
| 130 | * @return $this |
| 131 | */ |
| 132 | public function setElement($var) |
| 133 | { |
| 134 | GPBUtil::checkString($var, True); |
| 135 | $this->element = $var; |
| 136 | |
| 137 | return $this; |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Value of the changed object in the old Service configuration, |
| 142 | * in JSON format. This field will not be populated if ChangeType == ADDED. |
| 143 | * |
| 144 | * Generated from protobuf field <code>string old_value = 2;</code> |
| 145 | * @return string |
| 146 | */ |
| 147 | public function getOldValue() |
| 148 | { |
| 149 | return $this->old_value; |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Value of the changed object in the old Service configuration, |
| 154 | * in JSON format. This field will not be populated if ChangeType == ADDED. |
| 155 | * |
| 156 | * Generated from protobuf field <code>string old_value = 2;</code> |
| 157 | * @param string $var |
| 158 | * @return $this |
| 159 | */ |
| 160 | public function setOldValue($var) |
| 161 | { |
| 162 | GPBUtil::checkString($var, True); |
| 163 | $this->old_value = $var; |
| 164 | |
| 165 | return $this; |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Value of the changed object in the new Service configuration, |
| 170 | * in JSON format. This field will not be populated if ChangeType == REMOVED. |
| 171 | * |
| 172 | * Generated from protobuf field <code>string new_value = 3;</code> |
| 173 | * @return string |
| 174 | */ |
| 175 | public function getNewValue() |
| 176 | { |
| 177 | return $this->new_value; |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Value of the changed object in the new Service configuration, |
| 182 | * in JSON format. This field will not be populated if ChangeType == REMOVED. |
| 183 | * |
| 184 | * Generated from protobuf field <code>string new_value = 3;</code> |
| 185 | * @param string $var |
| 186 | * @return $this |
| 187 | */ |
| 188 | public function setNewValue($var) |
| 189 | { |
| 190 | GPBUtil::checkString($var, True); |
| 191 | $this->new_value = $var; |
| 192 | |
| 193 | return $this; |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * The type for this change, either ADDED, REMOVED, or MODIFIED. |
| 198 | * |
| 199 | * Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code> |
| 200 | * @return int |
| 201 | */ |
| 202 | public function getChangeType() |
| 203 | { |
| 204 | return $this->change_type; |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * The type for this change, either ADDED, REMOVED, or MODIFIED. |
| 209 | * |
| 210 | * Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code> |
| 211 | * @param int $var |
| 212 | * @return $this |
| 213 | */ |
| 214 | public function setChangeType($var) |
| 215 | { |
| 216 | GPBUtil::checkEnum($var, \Google\Api\ChangeType::class); |
| 217 | $this->change_type = $var; |
| 218 | |
| 219 | return $this; |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * Collection of advice provided for this change, useful for determining the |
| 224 | * possible impact of this change. |
| 225 | * |
| 226 | * Generated from protobuf field <code>repeated .google.api.Advice advices = 5;</code> |
| 227 | * @return \Google\Protobuf\Internal\RepeatedField |
| 228 | */ |
| 229 | public function getAdvices() |
| 230 | { |
| 231 | return $this->advices; |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Collection of advice provided for this change, useful for determining the |
| 236 | * possible impact of this change. |
| 237 | * |
| 238 | * Generated from protobuf field <code>repeated .google.api.Advice advices = 5;</code> |
| 239 | * @param \Google\Api\Advice[]|\Google\Protobuf\Internal\RepeatedField $var |
| 240 | * @return $this |
| 241 | */ |
| 242 | public function setAdvices($var) |
| 243 | { |
| 244 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Advice::class); |
| 245 | $this->advices = $arr; |
| 246 | |
| 247 | return $this; |
| 248 | } |
| 249 | |
| 250 | } |
| 251 | |
| 252 |